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

# \_setAssetTypes

Set an Asset Type for a Schedule of Rates.

### Parameters

#### id

The ID of the Schedule of Rates.

#### vals

The Asset IDs to set for the Schedule of Rates.

### Example

```
FM_api('ScheduleOfRates_setAssetTypes', ['id' => '4', 'vals' => ['2']])
```

### Result

#### On Success

```
{'ok':1}
```
