# \_setNotes

Adds new notes to or edits existing notes of the Job.

### Parameters

#### id

The ID of the Job.

#### value

notes of the Job, in JSON format (see example)

### Examples

```
FM_api('Job_setNotes', [
  'id' => '123',
  'value' => json_encode([
    ['content'=>'This is a note.'],
    ['content'=>'This is another note']
  ])
]);
```

```
FM_api('Job_setNotes', [
  'id' => '123',
  'value' => json_encode([
    ['content'=>'This is a note.',
      'createdby'=>32,
      'noteTime'=>1770808774347
    ],
    ['content'=>'This is another note']
  ])
]);
```

### Result

#### On Success

```
{'ok':1}
```

#### On Failure

If no Job ID is provided:

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

If no notes are provided:

```
{'error':'no value provided'}
```

If the Job does not exist:

```
{'error':'appointment does not exist'}
```
