# \_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"}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/quote/_setnotes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
