_setContractId

Assigns a Contract to an Appointment.

Parameters

id

The ID of the Appointment to assign the Contract to.

contract_id

The ID of the Contract to assign to the Appointment.

Example

FM_api('Appointment_setPriority', ['id' => '123', 'contract_id' => '234']);

Result

On Success

{'ok':1}

If the Contract ID given is already assigned to the Appointment:

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

On Failure

If no Appointment ID is provided:

{'error':'no ID supplied'}

If no Contract ID is provided:

{'error':'no contract_id supplied'}

If the Appointment does not exist:

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

Last updated