_setHours

Sets the hours of the Appointment.

Parameters

id

The ID of the Appointment.

value

The hours of the Appointment.

Example

FM_api('Appointment_setHours', ['id' => '123', 'value' => '5.5']);

Result

On Success

{'ok':1}

If the Appointment already has the hours given:

{'ok':1,'warning':'value already set'}

On Failure

If no hours are provided:

{'error':'no value provided'}

If the Appointment does not exist:

{'error' => 'appointment does not exist'}

Last updated