# \_setLocationType

Assign a Location Type to an Asset.

### Parameters

#### id

The ID of the asset.

#### val

The ID of the Location Type to be assigned to the Asset.

### Example

```
FM_api('Asset_setLocationType', ['id' => '4', 'val' => '2']);
```

### Result

#### On Success

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