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

# \_setName

Edit the name of an existing Asset

### Parameters

* ID - the ID of the Asset you wish to set the name for.

### Example

```
FM_api('Asset_setName', ['id' => '100', 'val' => 'TEST' ]);
```

### Result

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

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

If a valid id parameter is not supplied, then the following error is returned:

```
{"error":"asset does not exist"}
```
