Sets the status of the Job.
The ID of the Job.
The new status of the Job. Set to 0 for Not Complete, 1 for Complete and 2 for Processed.
FM_api('Job_setStatus', ['id' => '123', 'value' => '1']);
{'ok':1}
If the Job ID is not given:
{'error':'no ID supplied'}
If the status is not given:
If the Job is not found:
If the status is changed to Processed when the Job is not completed:
Last updated 4 months ago
{'error':'no value supplied'}
{'error':'appointment does not exist'}
{'error':'This status update cannot be done until the appointment is completed'}