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

# \_setLocation

Sets the Location of the Asset.

### Parameters

#### id

The ID of the Asset.

#### type

The type id of the Asset.

#### location

The location id you want to set for the Asset.

### Example

```
FM_api('Asset_setLocation', ['id' => '23674', 'type' => '1', 'location' => '234']);
```

### Result

#### On Success

```
{'ok":1,"movement_id":16}
```
