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

# \_setName

Set the Name for an Asset Type.

### Parameters

#### id

The ID of the Asset Type which the name will be changed for.

#### val

The new Name for the Asset Type which will be changed.

### Example

```
FM_api('AssetType_setName', ['id' => '10', 'val' => 'New Name']);
```

### Result

#### On Success

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