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