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

# \_setAssets

Set an Asset to a Department.

### Parameters

#### ID

The ID of the Department you wish to set an Asset to.

#### vals

The Asset ID you wish to set for the department.

### Example

FM\_api('Department\_setAsset', \['id' => '1', 'vals' => '23']);

### Result

#### On Success

```
"{"oldIds":["1"],"ok":1}"
```
