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

# \_setNotes

Sets the Notes for a File.

### Parameters

#### fileId

The ID of the file

#### notes

The text you wish to include in the notes of a file, can be blank.

### Example

```
FM_api('File_setNotes',[
  'fileId'=>'427152',
  'notes'=>'test note
test note line 2'
]);
```

#### On Success

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

#### On Failure

If the "notes" parameter is not included:

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

If the "fileId" parameter is not included, or does not match the ID of an existing File:

```
{"error":"file not found"}
```
