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


---

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