> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/quote/_setnotes.md).

# \_setNotes

Sets the notes of a Quote.

### Parameters

#### id

The ID of the Quote.

#### notes

The notes which will be assigned to the Quote.

### Examples

```
FM_api('Quote_setNotes',[
  'id'=>'339009',
  'notes'=>'test note.'
]);
```

```
FM_api('Quote_setNotes',[
  'id'=>'339009',
  'notes'=>'This is
a test note.'
]);
```

### Results

#### On Success

```
{'ok':1}
```

If the string parameter "notes" has the exact same data as the current Quote notes:

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

#### On Failure

If the "id" parameter is missing or has a value less than 1:

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

If the "notes" parameter is missing:

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

If the "id" parameter value does not match the ID of any existing Quote:

```
{"error":"quote does not exist"}
```
