> 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/contract/_setnotes.md).

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