Edit the name of an existing Contract
The ID of the Contract to be edited
The new name of the Contract
FM_api('Contract_setName',[ 'id'=>'34521', 'name'=>'test contract' ] );
If the Contract name is successfully updated, the result will be:
If the "id" parameter is not set or has an integer value less than 1:
If the "name" parameter has over 64 characters after being trimmed:
If the "name" parameter is empty:
If the "id" parameter does not match the ID of an existing Contract:
Last updated 27 days ago
{"ok":1}
{"error":"invalid or missing parameter: id"}
{"error":"parameter too long: name"}
{"error":"invalid or missing parameter: name"}
{"error":"contract does not exist"}