_setActive
Parameters
Example
FM_api(
'Contract_setActive',
array(
'id'=>'9',
'active'=>'0'
)
);Result
{"ok":1}{"error":"no ID provided"}Last updated
Set the status of a Contract - active or inactive
id - the id of the contract in question
active - the status of the contract: 1 for active, 0 for inactive (or "finished")
FM_api(
'Contract_setActive',
array(
'id'=>'9',
'active'=>'0'
)
);If the Contract status is successfully updated, the result will be:
{"ok":1}If a valid id parameter is not supplied, the following error is returned:
{"error":"no ID provided"}If the id parameter is supplied, but no status, then the following error is returned:
Last updated
{"error":"no active value provided"}