Edit the name of an existing Contract

Parameters

  • name - the new name of the Contract

Example

FM_api(
	'Contract_setName',
	array(
		'name'=>'Bi-monthly Contract'
	)
);

Result

If the Contract name is successfully updated, the result will be:

{"ok":1}

If a valid id parameter is not supplied, then the following error is returned:

{"error":"no ID provided"}

If the id parameter is supplied, but no name, then the following error is returned:

{"error":"no name provided"}