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

# \_setEditNotesInPortal

Sets the "edit notes in customer portal" field.

### Parameters

#### id

The ID of the File being modified.

#### val

Integer value which decides if the field is enabled:\
0 => disabled\
1 => enabled

### Example

```
FM_api('File_setEditNotesInPortal',[
    'id'=>'427226',
    'value'=>'1'
  ]
);
```

#### On Success

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

#### On Failure

If the "id" parameter is less than 1 or not given a value:

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