# \_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'}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/contract/_edit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
