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

# \_setMileage

Sets the mileage of the Job.

### Parameters

#### id

The ID of the Job.

#### value

The new mileage of the Job.

### Example

```
FM_api('Job_setMileage', ['id' => '123', 'value' => '500']);
```

### Result

#### On Success

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

#### On Failure

If no Job ID is provided:

```
{'error':'no ID provided'}
```

If no mileage is provided:

```
{'error':'no value provided'}
```

If the Job does not exist:

```
{'error':'appointment does not exist'}
```
