# \_edit

Edit a task

### Parameters

#### ID

Task ID

#### details

Textual description of the tasks details

#### resolution

Outcome of the task when completed.

#### assignedTo

User ID of the user assigned to the task.

#### Status

New - 0, Open - 1, Closed - 2

#### customer

Customer ID of the customer related to the task.

#### due\_date

Date the Task is due to be completed by the latest.

#### privacy

Private - 0, Public - 1

### Example

```
FM_api('Task_edit', ['id' => '10',
                   'details' => 'TEST DETAILS',
                   'resolution' => 'TEST RESOLUTION',
                   'assigned_to' => '82878',
                   'status' => '1',
                   'customer' => '2',
                   'due_date' => '2018-10-20',
                   'privacy' => '1'])
```

### On Success

```
{"ok":1}
```
