Assigns an Appointment to a User.

Parameters

id

The ID of the Appointment to assign the User to.

value

The ID of the User to be assigned.

Example

FM_api('Appointment_setUserId', ['id' => '123', 'value' => '987']);

Result

On Success

{'ok':1}

On Failure

If the Appointment ID is not given:

{'error':'no id parameter'}

If the User ID is not given:

{'error':'no value parameter'}

If the Appointment is not found:

{'error':'no such appointment exists'}