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

# \_setName

Edit the name of an existing Asset Maintenance

### Parameters

#### id

The ID of the Asset Maintenance you wish to set the name for.

#### val

The name you wish to set for the Asset Maintenance.

### Example

```
FM_api('AssetMaintenance_setName', ['id' => '15', 'val' => 'Service'])
```

### Result

If the Asset name is successfully updated, the result will be:

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