Sets the mileage of the Appointment.

Parameters

id

The ID of the Appointment.

value

The new mileage of the Appointment.

Example

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

Result

On Success

{'ok':1}

On Failure

If no Appointment ID is provided:

{'error':'no ID provided'}

If no mileage is provided:

{'error':'no value provided'}

If the Appointment does not exist:

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