_new
Create a new Contract
Parameters
name - the name of the Contract
notes - (optional) description of the contract
custom - (optional) array of custom fields
Example
FM_api(
'Contract_new',
[
'name'=>'Monthly Contract',
'notes'=>'Here are some notes',
'custom'=>[
'custom field'=>'1',
'address thing'=>'2'
]
]
);
Result
The result will be the id of the newly-created Contract.
{"id":12}
If a valid name is not supplied, the following error will be returned:
{"error":"no name provided"}
Last updated