_setPriority

Sets the priority of the Appointment.

Parameters

id

The ID of the Appointment.

value

The new priority of the Appointment.

Example

FM_api('Appointment_setPriority', ['id' => '123', 'value' => '2']);

Result

On Success

{'ok':1}

If no priority is provided:

{'ok':1,'warning':'no value provided'}

On Failure

If the Appointment does not exist:

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

If the priority given is the same as the priority that the Appointment already possesses:

{'error':'value already set'}

Last updated