_edit

Edits a specified Contract.

Parameters

id

The ID of the Contract to edit.

name

The name of the Contract to set or change.

number

The number of the Contract to set or change.

address

The address relating to the Contract to set or change.

manager

The name of the manager relating to the Contract to set or change.

budget

The budget of the Contract to set or change.

notes

Notes related to the Contract to set or change.

Example

FM_api('Contract_edit', ['id' => '123', 'name' => 'Contract One', 'number' => '1', 'address' => 'Belfast Road, Newry, Newry and Mourne, BT34 1QH', 'manager' => 'Joe Bloggs', 'budget' => '1000', 'notes' => 'This is a note.']);

Result

On Success

{'ok':1}

On Failure

If the User is not logged in:

{'error':'not logged in'}

If no Contract ID is supplied:

{'error':'no Contract ID supplied'}

If the specified Contract does not exist:

{'error':'Contract does not exist'}

Last updated