# Tasks

Tasks of every type (Epic, Story, Task, Bug, Subtask): list with the query language, read by id or key, create, change, move, clone, rank, run transitions, delete; bulk calls and the deleted-tasks feed.

## List tasks

`GET /orgs/{org}/tasks`

Scope: `tasks:read`

Every task the token's person can open, in every project: Advanced search over the API. Filter with q (the query language), filter (a saved filter's id) and updated_since; sort with sort= or ORDER BY in q. Archived tasks aren't listed (get one by its key). Paging is by cursor and stays right while tasks change.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `q` (string): A query in the query language of Advanced search, as in the app: fields, operators (=, !=, ~, in, is EMPTY, >, <=, …), AND, OR, NOT and brackets, functions such as currentUser() and startOfWeek(-1), relative dates such as -7d, and ORDER BY. For example: project = WEB AND status != Done AND assignee = currentUser() ORDER BY due ASC. Relative dates use the token's person's time zone. [at most 10000 characters]
- `filter` (string (uuid)): A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.
- `updated_since` (string (date-time)): Only items changed at or after this time (with Z or an offset).
- `sort` (string): Sort by one or more of key, created, updated, resolved, due, start, priority, status, summary, rank, type, assignee, reporter, project, comma-separated, - for descending (for example -updated,key). Replaces an ORDER BY in q. Without either: newest first. [at most 300 characters]
- `body_format` (string): How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown. [one of: document, markdown]
- `fields` (string): Only these fields, comma-separated: id, key, project, type, summary, status, priority, resolution, assignee, reporter, parent, labels, start, due, story_points, estimate, environment, team, sprint, fix_versions, affects_versions, components, time_spent_seconds, time_remaining_seconds, description, flagged, archived, rank, created_at, updated_at, resolved_at. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
      "key": "WEB-12",
      "project": {
        "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
        "key": "WEB",
        "name": "Website"
      },
      "type": {
        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
        "name": "Bug",
        "level": 0
      },
      "summary": "The sign-in button does nothing on Safari",
      "status": {
        "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
        "name": "In progress",
        "category": "in_progress"
      },
      "priority": {
        "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
        "name": "High"
      },
      "resolution": null,
      "assignee": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "reporter": {
        "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
        "name": "Arjun Mehta"
      },
      "parent": null,
      "labels": [
        "frontend",
        "safari"
      ],
      "start": null,
      "due": "2026-12-15",
      "story_points": 3,
      "estimate": 240,
      "environment": null,
      "team": null,
      "sprint": {
        "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
        "name": "Sprint 14"
      },
      "fix_versions": [
        {
          "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
          "name": "2.4"
        }
      ],
      "affects_versions": [],
      "components": [],
      "time_spent_seconds": 3600,
      "time_remaining_seconds": 10800,
      "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
      "flagged": false,
      "archived": false,
      "rank": "0|i0000g:",
      "created_at": "2026-12-01T09:30:00.000Z",
      "updated_at": "2026-12-02T11:05:00.000Z",
      "resolved_at": null,
      "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Count tasks

`GET /orgs/{org}/tasks/count`

Scope: `tasks:read`

How many tasks the person can open match q, filter and updated_since (the same as the list's total).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Query parameters

- `q` (string): A query in the query language of Advanced search, as in the app: fields, operators (=, !=, ~, in, is EMPTY, >, <=, …), AND, OR, NOT and brackets, functions such as currentUser() and startOfWeek(-1), relative dates such as -7d, and ORDER BY. For example: project = WEB AND status != Done AND assignee = currentUser() ORDER BY due ASC. Relative dates use the token's person's time zone. [at most 10000 characters]
- `filter` (string (uuid)): A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.
- `updated_since` (string (date-time)): Only items changed at or after this time (with Z or an offset).

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/count" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "count": 42
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## List a project's tasks

`GET /orgs/{org}/projects/{project}/tasks`

Scope: `tasks:read`

The project's tasks the person can open, with the same q, filter, updated_since, sort and paging as List tasks. A project the person can't open answers 404.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB) or id. [1 to 60 characters]

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `q` (string): A query in the query language of Advanced search, as in the app: fields, operators (=, !=, ~, in, is EMPTY, >, <=, …), AND, OR, NOT and brackets, functions such as currentUser() and startOfWeek(-1), relative dates such as -7d, and ORDER BY. For example: project = WEB AND status != Done AND assignee = currentUser() ORDER BY due ASC. Relative dates use the token's person's time zone. [at most 10000 characters]
- `filter` (string (uuid)): A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.
- `updated_since` (string (date-time)): Only items changed at or after this time (with Z or an offset).
- `sort` (string): Sort by one or more of key, created, updated, resolved, due, start, priority, status, summary, rank, type, assignee, reporter, project, comma-separated, - for descending (for example -updated,key). Replaces an ORDER BY in q. Without either: newest first. [at most 300 characters]
- `body_format` (string): How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown. [one of: document, markdown]
- `fields` (string): Only these fields, comma-separated: id, key, project, type, summary, status, priority, resolution, assignee, reporter, parent, labels, start, due, story_points, estimate, environment, team, sprint, fix_versions, affects_versions, components, time_spent_seconds, time_remaining_seconds, description, flagged, archived, rank, created_at, updated_at, resolved_at. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/projects/{project}/tasks" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
      "key": "WEB-12",
      "project": {
        "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
        "key": "WEB",
        "name": "Website"
      },
      "type": {
        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
        "name": "Bug",
        "level": 0
      },
      "summary": "The sign-in button does nothing on Safari",
      "status": {
        "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
        "name": "In progress",
        "category": "in_progress"
      },
      "priority": {
        "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
        "name": "High"
      },
      "resolution": null,
      "assignee": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "reporter": {
        "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
        "name": "Arjun Mehta"
      },
      "parent": null,
      "labels": [
        "frontend",
        "safari"
      ],
      "start": null,
      "due": "2026-12-15",
      "story_points": 3,
      "estimate": 240,
      "environment": null,
      "team": null,
      "sprint": {
        "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
        "name": "Sprint 14"
      },
      "fix_versions": [
        {
          "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
          "name": "2.4"
        }
      ],
      "affects_versions": [],
      "components": [],
      "time_spent_seconds": 3600,
      "time_remaining_seconds": 10800,
      "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
      "flagged": false,
      "archived": false,
      "rank": "0|i0000g:",
      "created_at": "2026-12-01T09:30:00.000Z",
      "updated_at": "2026-12-02T11:05:00.000Z",
      "resolved_at": null,
      "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Create a task

`POST /orgs/{org}/projects/{project}/tasks`

Scope: `tasks:write`

Creates a task of any of the project's types, as the create dialog does: the same permissions, required fields, History, watchers and notifications. Give fields by key (custom fields as cf_<key>); a Subtask needs its parent. The description takes a document or Markdown. Send an Idempotency-Key to make a retry safe.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB) or id. [1 to 60 characters]

### Query parameters

- `body_format` (string): How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown. [one of: document, markdown]

### Headers

- `Idempotency-Key` (string): A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422. [1 to 200 characters]

### Body

- `type` (string): A task type's id or name; the project's default without it. [at most 100 characters]
- `summary` (string, required): One line, 1 to 255 characters. [at most 1000 characters]
- `description` (one of 2 shapes or null)
- `priority` (string or null): A priority's id or name.
- `assignee` (string or null): A person's id or email.
- `reporter` (string): A person's id or email. [at most 320 characters]
- `parent` (string or null): The parent task's id or key.
- `labels` (one of 2 shapes): The labels, or { add, remove } to change some without reading them first.
- `start` (string (date) or null)
- `due` (string (date) or null)
- `story_points` (number or null)
- `estimate` (integer or null): In minutes.
- `environment` (string or null)
- `team` (string (uuid) or null): An organisation team's id.
- `fix_versions` (one of 2 shapes): Release ids, or { add, remove }.
- `affects_versions` (one of 2 shapes): Release ids, or { add, remove }.
- `components` (one of 2 shapes): Component ids, or { add, remove }.
- `status` (string): A status to start in (id or name): the first status, or one its workflow reaches in one step without a screen. [at most 100 characters]
- `watch` (boolean): The person watches it (true by default).
- `watchers` (array of string): Other people to add as watchers (ids or emails). [at most 50 items]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/projects/{project}/tasks" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "string",
  "summary": "string",
  "description": "string",
  "priority": "string",
  "assignee": "string",
  "reporter": "string",
  "parent": "string",
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 0,
  "environment": "string",
  "team": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "fix_versions": [
    "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
  ],
  "affects_versions": [
    "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
  ],
  "components": [
    "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
  ],
  "status": "string",
  "watch": true,
  "watchers": [
    "string"
  ]
}'
```

### Answer: 201

```json
{
  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
  "key": "WEB-12",
  "project": {
    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
    "key": "WEB",
    "name": "Website"
  },
  "type": {
    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
    "name": "Bug",
    "level": 0
  },
  "summary": "The sign-in button does nothing on Safari",
  "status": {
    "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
    "name": "In progress",
    "category": "in_progress"
  },
  "priority": {
    "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
    "name": "High"
  },
  "resolution": null,
  "assignee": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah"
  },
  "reporter": {
    "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
    "name": "Arjun Mehta"
  },
  "parent": null,
  "labels": [
    "frontend",
    "safari"
  ],
  "start": null,
  "due": "2026-12-15",
  "story_points": 3,
  "estimate": 240,
  "environment": null,
  "team": null,
  "sprint": {
    "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
    "name": "Sprint 14"
  },
  "fix_versions": [
    {
      "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
      "name": "2.4"
    }
  ],
  "affects_versions": [],
  "components": [],
  "time_spent_seconds": 3600,
  "time_remaining_seconds": 10800,
  "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
  "flagged": false,
  "archived": false,
  "rank": "0|i0000g:",
  "created_at": "2026-12-01T09:30:00.000Z",
  "updated_at": "2026-12-02T11:05:00.000Z",
  "resolved_at": null,
  "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
}
```

### Errors

- 400 `field_required`: field_required: A field the task's screen or workflow step requires is empty. invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 422 `idempotency_key_reused`: idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Count a project's tasks

`GET /orgs/{org}/projects/{project}/tasks/count`

Scope: `tasks:read`

How many of the project's tasks match q, filter and updated_since.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB) or id. [1 to 60 characters]

### Query parameters

- `q` (string): A query in the query language of Advanced search, as in the app: fields, operators (=, !=, ~, in, is EMPTY, >, <=, …), AND, OR, NOT and brackets, functions such as currentUser() and startOfWeek(-1), relative dates such as -7d, and ORDER BY. For example: project = WEB AND status != Done AND assignee = currentUser() ORDER BY due ASC. Relative dates use the token's person's time zone. [at most 10000 characters]
- `filter` (string (uuid)): A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.
- `updated_since` (string (date-time)): Only items changed at or after this time (with Z or an offset).

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/projects/{project}/tasks/count" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "count": 12
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## List deleted tasks

`GET /orgs/{org}/tasks/deleted`

Scope: `tasks:read`

Tasks deleted at or after since that the person could open when they were deleted, oldest first, so a client keeps its copy in step with updated_since and this feed. Deleting a task deletes its subtasks, which are listed too.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Query parameters

- `since` (string (date-time), required): Deleted at or after this time (with Z or an offset).
- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/deleted?since=2026-12-01T09%3A30%3A00Z" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
      "key": "WEB-12",
      "project_id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
      "deleted_at": "2026-12-02T10:00:00.000Z"
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Get a task

`GET /orgs/{org}/tasks/{task}`

Scope: `tasks:read`

A task by its id or its key. A moved task's old key finds it where it is now, as in the app. A task the person can't open answers 404, as one that doesn't exist.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Query parameters

- `body_format` (string): How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown. [one of: document, markdown]
- `fields` (string): Only these fields, comma-separated: id, key, project, type, summary, status, priority, resolution, assignee, reporter, parent, labels, start, due, story_points, estimate, environment, team, sprint, fix_versions, affects_versions, components, time_spent_seconds, time_remaining_seconds, description, flagged, archived, rank, created_at, updated_at, resolved_at. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
  "key": "WEB-12",
  "project": {
    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
    "key": "WEB",
    "name": "Website"
  },
  "type": {
    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
    "name": "Bug",
    "level": 0
  },
  "summary": "The sign-in button does nothing on Safari",
  "status": {
    "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
    "name": "In progress",
    "category": "in_progress"
  },
  "priority": {
    "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
    "name": "High"
  },
  "resolution": null,
  "assignee": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah"
  },
  "reporter": {
    "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
    "name": "Arjun Mehta"
  },
  "parent": null,
  "labels": [
    "frontend",
    "safari"
  ],
  "start": null,
  "due": "2026-12-15",
  "story_points": 3,
  "estimate": 240,
  "environment": null,
  "team": null,
  "sprint": {
    "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
    "name": "Sprint 14"
  },
  "fix_versions": [
    {
      "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
      "name": "2.4"
    }
  ],
  "affects_versions": [],
  "components": [],
  "time_spent_seconds": 3600,
  "time_remaining_seconds": 10800,
  "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
  "flagged": false,
  "archived": false,
  "rank": "0|i0000g:",
  "created_at": "2026-12-01T09:30:00.000Z",
  "updated_at": "2026-12-02T11:05:00.000Z",
  "resolved_at": null,
  "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Update a task

`PATCH /orgs/{org}/tasks/{task}`

Scope: `tasks:write`

Changes the fields given (by key; custom fields as cf_<key>), each as an edit in the app: the same permissions and field rules, History and notifications. Labels, releases and components take a list or { add, remove }. The status changes through a transition, the type and the project through their own calls. If any field is refused, nothing changes.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Query parameters

- `body_format` (string): How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown. [one of: document, markdown]

### Body

- `summary` (string): One line, 1 to 255 characters. [at most 1000 characters]
- `description` (one of 2 shapes or null)
- `priority` (string or null): A priority's id or name.
- `assignee` (string or null): A person's id or email.
- `reporter` (string): A person's id or email. [at most 320 characters]
- `parent` (string or null): The parent task's id or key.
- `labels` (one of 2 shapes): The labels, or { add, remove } to change some without reading them first.
- `start` (string (date) or null)
- `due` (string (date) or null)
- `story_points` (number or null)
- `estimate` (integer or null): In minutes.
- `environment` (string or null)
- `team` (string (uuid) or null): An organisation team's id.
- `fix_versions` (one of 2 shapes): Release ids, or { add, remove }.
- `affects_versions` (one of 2 shapes): Release ids, or { add, remove }.
- `components` (one of 2 shapes): Component ids, or { add, remove }.

### Request

```sh
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/tasks/{task}" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "summary": "string",
  "description": "string",
  "priority": "string",
  "assignee": "string",
  "reporter": "string",
  "parent": "string",
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 0,
  "environment": "string",
  "team": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "fix_versions": [
    "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
  ],
  "affects_versions": [
    "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
  ],
  "components": [
    "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
  ]
}'
```

### Answer: 200

```json
{
  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
  "key": "WEB-12",
  "project": {
    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
    "key": "WEB",
    "name": "Website"
  },
  "type": {
    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
    "name": "Bug",
    "level": 0
  },
  "summary": "The sign-in button does nothing on Safari",
  "status": {
    "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
    "name": "In progress",
    "category": "in_progress"
  },
  "priority": {
    "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
    "name": "High"
  },
  "resolution": null,
  "assignee": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah"
  },
  "reporter": {
    "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
    "name": "Arjun Mehta"
  },
  "parent": null,
  "labels": [
    "frontend",
    "safari"
  ],
  "start": null,
  "due": "2026-12-15",
  "story_points": 3,
  "estimate": 240,
  "environment": null,
  "team": null,
  "sprint": {
    "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
    "name": "Sprint 14"
  },
  "fix_versions": [
    {
      "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
      "name": "2.4"
    }
  ],
  "affects_versions": [],
  "components": [],
  "time_spent_seconds": 3600,
  "time_remaining_seconds": 10800,
  "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
  "flagged": false,
  "archived": false,
  "rank": "0|i0000g:",
  "created_at": "2026-12-01T09:30:00.000Z",
  "updated_at": "2026-12-02T11:05:00.000Z",
  "resolved_at": null,
  "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
}
```

### Errors

- 400 `field_required`: field_required: A field the task's screen or workflow step requires is empty. invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Delete a task

`DELETE /orgs/{org}/tasks/{task}`

Scope: `tasks:delete`

Deletes the task and its subtasks for good, as the app's Delete does (there is no trash for tasks; archive keeps them). Needs Delete tasks; refused when a subtask is hidden from the person. Each deleted task is in the deleted-tasks feed.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Request

```sh
curl -X DELETE "https://projqo.example/api/v1/orgs/{org}/tasks/{task}" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 204

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Create tasks in bulk

`POST /orgs/{org}/projects/{project}/tasks/bulk`

Scope: `tasks:write`

Creates up to 100 tasks in the project, each as Create a task does, in its own step: a refused task changes nothing and the others are still made, each with its own events. The answer is 207 with one result per item, in order. Counts as one call per 10 tasks.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB) or id. [1 to 60 characters]

### Headers

- `Idempotency-Key` (string): A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422. [1 to 200 characters]

### Body

- `items` (array of object, required): 1 to 100 items. [1 to 100 items]
  - `type` (string): A task type's id or name; the project's default without it. [at most 100 characters]
  - `summary` (string, required): One line, 1 to 255 characters. [at most 1000 characters]
  - `description` (one of 2 shapes or null)
  - `priority` (string or null): A priority's id or name.
  - `assignee` (string or null): A person's id or email.
  - `reporter` (string): A person's id or email. [at most 320 characters]
  - `parent` (string or null): The parent task's id or key.
  - `labels` (one of 2 shapes): The labels, or { add, remove } to change some without reading them first.
  - `start` (string (date) or null)
  - `due` (string (date) or null)
  - `story_points` (number or null)
  - `estimate` (integer or null): In minutes.
  - `environment` (string or null)
  - `team` (string (uuid) or null): An organisation team's id.
  - `fix_versions` (one of 2 shapes): Release ids, or { add, remove }.
  - `affects_versions` (one of 2 shapes): Release ids, or { add, remove }.
  - `components` (one of 2 shapes): Component ids, or { add, remove }.
  - `status` (string): A status to start in (id or name): the first status, or one its workflow reaches in one step without a screen. [at most 100 characters]
  - `watch` (boolean): The person watches it (true by default).
  - `watchers` (array of string): Other people to add as watchers (ids or emails). [at most 50 items]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/projects/{project}/tasks/bulk" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    {
      "type": "string",
      "summary": "string",
      "description": "string",
      "priority": "string",
      "assignee": "string",
      "reporter": "string",
      "parent": "string",
      "labels": [
        "string"
      ],
      "start": "2026-12-01",
      "due": "2026-12-01",
      "story_points": 1.5,
      "estimate": 0,
      "environment": "string",
      "team": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "fix_versions": [
        "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
      ],
      "affects_versions": [
        "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
      ],
      "components": [
        "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
      ],
      "status": "string",
      "watch": true,
      "watchers": [
        "string"
      ]
    }
  ]
}'
```

### Answer: 207

```json
{
  "results": [
    {
      "index": 0,
      "status": 201,
      "item": {
        "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
        "key": "WEB-12",
        "project": {
          "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
          "key": "WEB",
          "name": "Website"
        },
        "type": {
          "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
          "name": "Bug",
          "level": 0
        },
        "summary": "The sign-in button does nothing on Safari",
        "status": {
          "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
          "name": "In progress",
          "category": "in_progress"
        },
        "priority": {
          "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
          "name": "High"
        },
        "resolution": null,
        "assignee": {
          "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
          "name": "Priya Shah"
        },
        "reporter": {
          "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
          "name": "Arjun Mehta"
        },
        "parent": null,
        "labels": [
          "frontend",
          "safari"
        ],
        "start": null,
        "due": "2026-12-15",
        "story_points": 3,
        "estimate": 240,
        "environment": null,
        "team": null,
        "sprint": {
          "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
          "name": "Sprint 14"
        },
        "fix_versions": [
          {
            "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
            "name": "2.4"
          }
        ],
        "affects_versions": [],
        "components": [],
        "time_spent_seconds": 3600,
        "time_remaining_seconds": 10800,
        "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
        "flagged": false,
        "archived": false,
        "rank": "0|i0000g:",
        "created_at": "2026-12-01T09:30:00.000Z",
        "updated_at": "2026-12-02T11:05:00.000Z",
        "resolved_at": null,
        "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
      }
    }
  ]
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 422 `idempotency_key_reused`: idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Update tasks in bulk

`PATCH /orgs/{org}/tasks/bulk`

Scope: `tasks:write`

Changes up to 100 tasks, in any projects the person may edit, each as Update a task does and in its own step: a refused task changes nothing and the others still change. The answer is 207 with one result per item, in order. Counts as one call per 10 tasks.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Body

- `items` (array of object, required): 1 to 100 items. [1 to 100 items]
  - `summary` (string): One line, 1 to 255 characters. [at most 1000 characters]
  - `description` (one of 2 shapes or null)
  - `priority` (string or null): A priority's id or name.
  - `assignee` (string or null): A person's id or email.
  - `reporter` (string): A person's id or email. [at most 320 characters]
  - `parent` (string or null): The parent task's id or key.
  - `labels` (one of 2 shapes): The labels, or { add, remove } to change some without reading them first.
  - `start` (string (date) or null)
  - `due` (string (date) or null)
  - `story_points` (number or null)
  - `estimate` (integer or null): In minutes.
  - `environment` (string or null)
  - `team` (string (uuid) or null): An organisation team's id.
  - `fix_versions` (one of 2 shapes): Release ids, or { add, remove }.
  - `affects_versions` (one of 2 shapes): Release ids, or { add, remove }.
  - `components` (one of 2 shapes): Component ids, or { add, remove }.
  - `task` (string, required): The task's id or key. [1 to 60 characters]

### Request

```sh
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/tasks/bulk" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    {
      "summary": "string",
      "description": "string",
      "priority": "string",
      "assignee": "string",
      "reporter": "string",
      "parent": "string",
      "labels": [
        "string"
      ],
      "start": "2026-12-01",
      "due": "2026-12-01",
      "story_points": 1.5,
      "estimate": 0,
      "environment": "string",
      "team": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "fix_versions": [
        "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
      ],
      "affects_versions": [
        "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
      ],
      "components": [
        "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
      ],
      "task": "string"
    }
  ]
}'
```

### Answer: 207

```json
{
  "results": [
    {
      "index": 0,
      "status": 200,
      "item": {
        "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
        "key": "WEB-12",
        "project": {
          "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
          "key": "WEB",
          "name": "Website"
        },
        "type": {
          "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
          "name": "Bug",
          "level": 0
        },
        "summary": "The sign-in button does nothing on Safari",
        "status": {
          "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
          "name": "In progress",
          "category": "in_progress"
        },
        "priority": {
          "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
          "name": "High"
        },
        "resolution": null,
        "assignee": {
          "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
          "name": "Priya Shah"
        },
        "reporter": {
          "id": "9e1f6a8b-2d3c-4e4f-9a0b-1c2d3e4f5a6b",
          "name": "Arjun Mehta"
        },
        "parent": null,
        "labels": [
          "frontend",
          "safari"
        ],
        "start": null,
        "due": "2026-12-15",
        "story_points": 3,
        "estimate": 240,
        "environment": null,
        "team": null,
        "sprint": {
          "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
          "name": "Sprint 14"
        },
        "fix_versions": [
          {
            "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
            "name": "2.4"
          }
        ],
        "affects_versions": [],
        "components": [],
        "time_spent_seconds": 3600,
        "time_remaining_seconds": 10800,
        "description": "Clicking **Sign in** on Safari 18 does nothing. Seen by [@Priya Shah](https://projqo.example/o/acme/people/8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a).\n",
        "flagged": false,
        "archived": false,
        "rank": "0|i0000g:",
        "created_at": "2026-12-01T09:30:00.000Z",
        "updated_at": "2026-12-02T11:05:00.000Z",
        "resolved_at": null,
        "cf_customer_tier": "7b8c9d0e-1f2a-4b3c-8d4e-6f7a8b9c0d1e"
      }
    }
  ]
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## List a task's transitions

`GET /orgs/{org}/tasks/{task}/transitions`

Scope: `tasks:read`

The transitions the person may run on the task now, as the status button offers them: the workflow's conditions and who may use each are applied. Each names the fields its screen asks for, by key. An archived task (or a task of an archived project) has none.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/transitions" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "status": {
    "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
    "name": "In review",
    "category": "in_progress"
  },
  "can_transition": true,
  "items": [
    {
      "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
      "name": "Close",
      "to": {
        "id": "8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e",
        "name": "Fixed",
        "category": "done"
      },
      "fields": [
        {
          "key": "cf_release_train",
          "name": "Release train",
          "type": "select",
          "required": true
        }
      ]
    }
  ]
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Run a transition

`POST /orgs/{org}/tasks/{task}/transitions/{transition}`

Scope: `tasks:write`

Moves the task through one of its open transitions, as the status button does: the workflow's conditions, checks and actions run, the screen's fields are written (by key), and History, notifications, automation and webhooks follow. A transition that isn't open now (or with from_status, a task that has moved on) answers transition_not_allowed; a failed check too, with the workflow's message; a required screen field left empty answers field_required.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `transition` (string (uuid), required): The transition's id.
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Body

- `fields` (object): The screen's fields by key (see the transition's fields).
- `from_status` (string (uuid)): The status you saw the task in: if it has moved since, nothing changes and the answer is transition_not_allowed.

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/transitions/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "fields": {},
  "from_status": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}'
```

### Answer: 200

```json
{
  "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "key": "string",
  "project": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "name": "string"
  },
  "type": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "level": 1
  },
  "summary": "string",
  "status": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "category": "todo"
  },
  "priority": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "resolution": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "assignee": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "reporter": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "parent": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "summary": "string"
  },
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 1.5,
  "environment": "string",
  "team": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "sprint": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "fix_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "affects_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "components": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "time_spent_seconds": 1,
  "time_remaining_seconds": 1,
  "description": "string",
  "flagged": true,
  "archived": true,
  "rank": "string",
  "created_at": "2026-12-01T09:30:00Z",
  "updated_at": "2026-12-01T09:30:00Z",
  "resolved_at": "2026-12-01T09:30:00Z"
}
```

### Errors

- 400 `field_required`: field_required: A field the task's screen or workflow step requires is empty. invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed. transition_not_allowed: The transition isn't open from the task's status now, or one of its conditions or checks isn't met; the message gives the workflow's reason.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Get a task job

`GET /orgs/{org}/task-jobs/{job}`

Scope: `tasks:read`

A move or clone job the token's person started: its state, progress and the outcome for each task (a moved task's new key, a copy's key). Follow it until its state is done or failed.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `job` (string (uuid), required): The job's id.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/task-jobs/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
  "kind": "move",
  "state": "done",
  "progress": 1,
  "total": 1,
  "outcomes": [
    {
      "key": "WEB-5",
      "ok": true,
      "new_key": "LAUNCH-3"
    }
  ],
  "result": {
    "new_key": "LAUNCH-3"
  },
  "error": null,
  "created_at": "2026-12-02T10:00:00.000Z",
  "finished_at": "2026-12-02T10:00:01.000Z"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Move a task to another project

`POST /orgs/{org}/tasks/{task}/move`

Scope: `tasks:write`

Moves the task (and its subtasks) to another project the person may create tasks in, as the app's Move does: it runs as a job (202; follow it with Get a task job). The task gets a key in the new project and its old key still finds it. Statuses the new workflow lacks need status_map; the type defaults to the one of the same name there.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Body

- `project` (string, required): The project's key or id. [1 to 60 characters]
- `type` (string): A task type there (id or name); without it the one of the same name, else its first at this level. [at most 100 characters]
- `status_map` (object): For each status the task (or a subtask) is in that the new workflow lacks: the status there (ids or names).
- `fields` (object): Values for fields the project requires there, by key.
- `notify` (boolean): Email the people the move tells (false by default).

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/move" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "project": "string",
  "type": "string",
  "status_map": {},
  "fields": {},
  "notify": true
}'
```

### Answer: 202

```json
{
  "id": "0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
  "kind": "move",
  "state": "queued",
  "progress": 0,
  "total": 1,
  "outcomes": [],
  "result": null,
  "error": null,
  "created_at": "2026-12-02T10:00:00.000Z",
  "finished_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Clone a task

`POST /orgs/{org}/tasks/{task}/clone`

Scope: `tasks:write`

Copies the task as the app's Clone does: it runs as a job (202; the copy's key comes in the job's result). Without a summary the copy is called as the app names it ("Copy of …" by default); the assignee stays and the person is the reporter unless given. include takes the parts to copy too (children, and those the app offers for the task, such as sprint, links or attachments).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Headers

- `Idempotency-Key` (string): A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422. [1 to 200 characters]

### Body

- `summary` (string) [at most 1000 characters]
- `assignee` (string or null): A person's id or email; null for nobody.
- `reporter` (string): A person's id or email. [at most 320 characters]
- `include` (array of string) [at most 20 items]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/clone" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "summary": "string",
  "assignee": "string",
  "reporter": "string",
  "include": [
    "string"
  ]
}'
```

### Answer: 202

```json
{
  "id": "0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
  "kind": "clone",
  "state": "queued",
  "progress": 0,
  "total": 1,
  "outcomes": [],
  "result": null,
  "error": null,
  "created_at": "2026-12-02T10:00:00.000Z",
  "finished_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 422 `idempotency_key_reused`: idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Rank a task

`POST /orgs/{org}/tasks/{task}/rank`

Scope: `tasks:write`

Puts the task just before or just after another task of its project in the one rank the backlog, boards and lists share (as the List view's drag does; Edit tasks). Give before, after, or both (the two tasks on either side).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Body

- `before` (string): Rank it just before this task (id or key). [at most 60 characters]
- `after` (string): Rank it just after this task (id or key). [at most 60 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/rank" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "before": "string",
  "after": "string"
}'
```

### Answer: 200

```json
{
  "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "key": "string",
  "project": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "name": "string"
  },
  "type": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "level": 1
  },
  "summary": "string",
  "status": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "category": "todo"
  },
  "priority": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "resolution": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "assignee": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "reporter": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "parent": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "summary": "string"
  },
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 1.5,
  "environment": "string",
  "team": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "sprint": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "fix_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "affects_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "components": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "time_spent_seconds": 1,
  "time_remaining_seconds": 1,
  "description": "string",
  "flagged": true,
  "archived": true,
  "rank": "string",
  "created_at": "2026-12-01T09:30:00Z",
  "updated_at": "2026-12-01T09:30:00Z",
  "resolved_at": "2026-12-01T09:30:00Z"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed. conflict: The thing changed since it was read, or the change clashes with its state.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Change a task's type

`POST /orgs/{org}/tasks/{task}/type`

Scope: `tasks:write`

Gives the task another of its project's types, as the app's Change type does. A task becomes a subtask with a parent (a task of the same project, Organisation projects only), and a subtask turns back into a task. When the new type's workflow lacks the task's status, give status; without it the answer is conflict, naming the statuses to choose from.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Body

- `type` (string, required): The task type's id or name. [1 to 100 characters]
- `status` (string): A status of the new workflow (id or name). [at most 100 characters]
- `parent` (string or null): For a subtask: its parent (id or key), in the same project.

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/type" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "string",
  "status": "string",
  "parent": "string"
}'
```

### Answer: 200

```json
{
  "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "key": "string",
  "project": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "name": "string"
  },
  "type": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "level": 1
  },
  "summary": "string",
  "status": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "category": "todo"
  },
  "priority": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "resolution": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "assignee": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "reporter": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "parent": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "summary": "string"
  },
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 1.5,
  "environment": "string",
  "team": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "sprint": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "fix_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "affects_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "components": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "time_spent_seconds": 1,
  "time_remaining_seconds": 1,
  "description": "string",
  "flagged": true,
  "archived": true,
  "rank": "string",
  "created_at": "2026-12-01T09:30:00Z",
  "updated_at": "2026-12-01T09:30:00Z",
  "resolved_at": "2026-12-01T09:30:00Z"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed. conflict: The thing changed since it was read, or the change clashes with its state.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Archive a task

`POST /orgs/{org}/tasks/{task}/archive`

Scope: `tasks:write`

Archives the task and its subtasks, as the app does (Archive tasks): they leave boards and lists, keep their status and can't be changed until restored (changes answer archived).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/archive" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "key": "string",
  "project": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "name": "string"
  },
  "type": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "level": 1
  },
  "summary": "string",
  "status": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "category": "todo"
  },
  "priority": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "resolution": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "assignee": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "reporter": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "parent": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "summary": "string"
  },
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 1.5,
  "environment": "string",
  "team": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "sprint": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "fix_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "affects_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "components": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "time_spent_seconds": 1,
  "time_remaining_seconds": 1,
  "description": "string",
  "flagged": true,
  "archived": true,
  "rank": "string",
  "created_at": "2026-12-01T09:30:00Z",
  "updated_at": "2026-12-01T09:30:00Z",
  "resolved_at": "2026-12-01T09:30:00Z"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Restore an archived task

`POST /orgs/{org}/tasks/{task}/restore`

Scope: `tasks:write`

Restores an archived task and its subtasks (Restore tasks), as the app does. A task that isn't archived is answered as it is.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/restore" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "key": "string",
  "project": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "name": "string"
  },
  "type": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "level": 1
  },
  "summary": "string",
  "status": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string",
    "category": "todo"
  },
  "priority": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "resolution": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "assignee": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "reporter": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "parent": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "key": "string",
    "summary": "string"
  },
  "labels": [
    "string"
  ],
  "start": "2026-12-01",
  "due": "2026-12-01",
  "story_points": 1.5,
  "estimate": 1.5,
  "environment": "string",
  "team": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "sprint": {
    "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "name": "string"
  },
  "fix_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "affects_versions": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "components": [
    {
      "id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
      "name": "string"
    }
  ],
  "time_spent_seconds": 1,
  "time_remaining_seconds": 1,
  "description": "string",
  "flagged": true,
  "archived": true,
  "rank": "string",
  "created_at": "2026-12-01T09:30:00Z",
  "updated_at": "2026-12-01T09:30:00Z",
  "resolved_at": "2026-12-01T09:30:00Z"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `archived`: archived: The item (or its project) is archived, so it can't be changed.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).
