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

# \_setCost

Set the Cost of a Schedule of Rates.

### Parameters

#### id

Integer ID for the Schedule of Rates.

#### val

The new cost for the Schedule of Rates.

### Example

```
FM_api('ScheduleOfRates_setCost', ['id' => '4', 'val' => '200'])
```

### Result

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