> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/task/_update.md).

# \_update

Updates a specified Task.

### Parameters

#### id

The ID of the Task to update.

### Example

```
FM_api('Task_update', ['id' => '1']);
```

### Results

#### On Success

A confirmation of success, followed by the previous Task ID and the new Task ID if a new ID was generated. For example: {'ok':1,'oldId':1,'newId':2}

#### On Failure

If the User is not logged in: {'error':'not logged in'}
