# Change a task

Edits one task: title, description, status, priority, assignee (assigneeAccountId from the roster, or assigneeUserId) and dueAt. An absent field leaves the column, and emptying a nullable one has its own flag — clearAssignee, clearDueAt. cancellationReason carries the sentence that rides with a cancel. Re-dating a task MOVES the meeting it mirrors rather than booking a second one.

Access class: `workspace`.

## Endpoint

`PATCH /v1/tasks/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "assigneeAccountId": "",
    "assigneeUserId": 1,
    "cancellationReason": "string",
    "clearAssignee": true,
    "clearDueAt": true,
    "description": "string",
    "dueAt": "string",
    "priority": "string",
    "status": "string",
    "title": "string"
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
