Set a job reference on an Appointment.

Parameters

id

The ID of the job.

value

The job reference.

Example

FM_api('Appointment_setJobRef', ['id' => '123', 'value' => 'ExampleJobRef']);

Result

On Success

{'ok':1}

If the Appointment already has the job reference:

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

On Failure

If no Appointment ID is provided:

{'error':'no ID provided'}

If no job reference is provided:

{'error':'no value provided'}

If the Appointment does not exist:

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