# \_setNotes

Add notes to an existing Contract

### Parameters

* id - the id of the contract in question
* notes - a text string containing the content

### Example

```
FM_api(
	'Contract_setNotes', 
	array(
		'id'=>'9'
		'notes'=>'Some notes on this Contract'
	)
);
```

### Results

If the Contract notes are successfully updated, the result will be:

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

If a valid id parameter is not provided, the following error is returned:

```
{"error":"no ID provided"}
```

If the id parameter is supplied, but no notes, then the following error is returned:

```
{"error":"no notes provided"}
```


---

# 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/contract/_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.
