# Mark a task done

Closes one task in a single step — "mark it done", "that one is finished" — and answers the task as it now stands. The meeting it mirrors on the calendar is settled the way the assignee's calendar settings say. To close it with a cancellation reason, or to reopen it, change its status with PATCH /v1/tasks/:id instead.

Access class: `workspace`.

## Endpoint

`POST /v1/tasks/{id}/complete`

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

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"
}
```
