# \_setNotes

Sets the notes within an instruction for how Customer Emails will be imported.

### Parameters

#### id

The ID of the instruction.

#### val

A string containing the desired notes for the instruction.

### Example

```
FM_api('ImportCustomersEmail_setNotes',[
    'id'=>'167',
    'val'=>'Test note.
This sentence is on a new line.'
    ]
);
```

### Results

#### On Success

```
{"ok":1}
```

If the "val" parameter already matches the current instruction's exact notes:

```
{"ok":"1","warning":"no change required"}
```

#### On Failure

If the "id" parameter is not set:

```
{"error":"missing or invalid parameter: id"}
```

If the "val" parameter is not set:

```
{"error":"missing or invalid parameter: val"}
```

If the "id" parameter does not match an existing instruction:

```
{"error":"import_filters is not existing."}
```
