{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "projqo API",
    "version": "v1",
    "summary": "Projects, tasks and Docs of a projqo organisation.",
    "description": "The public REST API of projqo. Every answer is cut to what the token's person may open in the app, by the same roles and the same rules.\n\nAuthenticate with a personal API token (pqt_…, made in Personal settings > API tokens) or an OAuth app's access token (pqa_…, from /api/oauth/token), as Authorization: Bearer <token>. Each call needs one scope.\n\nLists are paged by cursor: limit (1 to 200, 50 by default) and the previous page's next_cursor. Bulk calls take up to 100 items and count one call per 10. Date-times are UTC with Z; dates are YYYY-MM-DD.\n\nEvery answer carries X-Request-Id and the RateLimit headers; every error has the one Error shape."
  },
  "servers": [
    {
      "url": "https://{domain}/api/v1",
      "description": "projqo, where your organisation lives.",
      "variables": {
        "domain": {
          "default": "projqo.example",
          "description": "projqo's address."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Organisation",
      "description": "The organisation the token belongs to, the token's person, what they may do, and the audit log."
    },
    {
      "name": "People",
      "description": "The organisation's people: list and read them; owners and admins invite, change roles, deactivate and remove. A person's projects and teams."
    },
    {
      "name": "Teams",
      "description": "Teams, their members and the projects they contribute to."
    },
    {
      "name": "Projects",
      "description": "Projects: list, read, create and change them; archive, trash, restore and delete; features and categories."
    },
    {
      "name": "Project people",
      "description": "Who holds which role in a project (invite only, D1), the project's roles and contributing teams, and what a person may do there."
    },
    {
      "name": "Releases",
      "description": "A project's releases: plan, change, release and archive them."
    },
    {
      "name": "Components",
      "description": "A project's components."
    },
    {
      "name": "Tasks",
      "description": "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."
    },
    {
      "name": "Comments",
      "description": "A task's comments, as projqo's document JSON or Markdown."
    },
    {
      "name": "Attachments",
      "description": "Files on a task or on a comment: upload (multipart), list, download and delete."
    },
    {
      "name": "Watchers",
      "description": "Who watches a task and gets its notifications."
    },
    {
      "name": "Links",
      "description": "Links between tasks (blocking links stand for dependencies), link types and web links."
    },
    {
      "name": "Work logs",
      "description": "Work logged on tasks: log, change, delete, bulk log; lists per task, project and organisation."
    },
    {
      "name": "Labels",
      "description": "Labels: the ones in use, and adding and removing them on a task."
    },
    {
      "name": "History",
      "description": "A task's change history, as its Activity shows it in the app."
    },
    {
      "name": "Metadata",
      "description": "Fields (system and custom, by key), task types, statuses, workflows, priorities, resolutions and time tracking: what a project's tasks can hold, read only."
    },
    {
      "name": "Boards",
      "description": "Boards: list and read them, their columns, the tasks on a board as its page shows them, and ranking a card."
    },
    {
      "name": "Backlog",
      "description": "A board's backlog in rank order: its sections, ranking tasks and moving them out of sprints."
    },
    {
      "name": "Sprints",
      "description": "A scrum board's sprints: plan, change, start and complete them, and move tasks into them."
    },
    {
      "name": "Docs spaces",
      "description": "Docs spaces: list, read, create, change, archive and restore them, and who holds a role in one."
    },
    {
      "name": "Docs pages",
      "description": "A space's page tree; pages read and written as projqo's document JSON or Markdown, with version checks and publishing; move, copy, the trash and restore, versions, and the deleted-pages feed."
    },
    {
      "name": "Docs comments",
      "description": "A page's comments: footer comments to read, add, edit and delete; inline ones to read."
    },
    {
      "name": "Docs attachments",
      "description": "Files on a page, with their versions: upload (multipart), list, download and delete."
    },
    {
      "name": "Docs labels",
      "description": "A page's labels: read, add and remove."
    },
    {
      "name": "Search",
      "description": "Quick search across tasks, pages, projects, spaces and people, cut to what the token's person and its scopes may open."
    },
    {
      "name": "Filters",
      "description": "Saved filters: list, read, create, change and delete, with their sharing."
    },
    {
      "name": "Webhooks",
      "description": "Webhook subscriptions of this token or app: subscribe an address to events, rotate its secret, send a test, read the delivery log and redeliver. Each event's delivery is under Webhook events."
    }
  ],
  "paths": {
    "/orgs": {
      "get": {
        "operationId": "listOrganisations",
        "summary": "List organisations",
        "description": "The organisations this token may use. A personal token belongs to one organisation, so the list has that one.",
        "tags": [
          "Organisation"
        ],
        "security": [
          {
            "personalToken": [
              "org:read"
            ]
          },
          {
            "oauth2": [
              "org:read"
            ]
          }
        ],
        "x-scope": "org:read",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Organisation"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "4f1c2a8e-3b7d-4e0a-9c55-0d6f1e2a3b4c",
                      "address": "acme",
                      "name": "Acme",
                      "time_zone": "Asia/Kolkata",
                      "week_start": "monday",
                      "date_format": "default",
                      "working_hours_per_day": 8,
                      "working_days_per_week": 5,
                      "created_at": "2026-11-17T09:30:00.000Z",
                      "plan": {
                        "tier": "standard",
                        "name": "Standard",
                        "status": "active",
                        "seats_used": 12,
                        "seats_max": 100000
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}": {
      "get": {
        "operationId": "getOrganisation",
        "summary": "Get an organisation",
        "description": "The organisation's name, address, time zone, week start and working time. Owners and admins also get its plan and seats.",
        "tags": [
          "Organisation"
        ],
        "security": [
          {
            "personalToken": [
              "org:read"
            ]
          },
          {
            "oauth2": [
              "org:read"
            ]
          }
        ],
        "x-scope": "org:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, address, name, time_zone, week_start, date_format, working_hours_per_day, working_days_per_week, created_at, plan. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organisation"
                },
                "example": {
                  "id": "4f1c2a8e-3b7d-4e0a-9c55-0d6f1e2a3b4c",
                  "address": "acme",
                  "name": "Acme",
                  "time_zone": "Asia/Kolkata",
                  "week_start": "monday",
                  "date_format": "default",
                  "working_hours_per_day": 8,
                  "working_days_per_week": 5,
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "plan": {
                    "tier": "standard",
                    "name": "Standard",
                    "status": "active",
                    "seats_used": 12,
                    "seats_max": 100000
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/me": {
      "get": {
        "operationId": "getMe",
        "summary": "Get me",
        "description": "The person the token acts for, their role in the token's organisation now, and the token's scopes and expiry.",
        "tags": [
          "Organisation"
        ],
        "security": [
          {
            "personalToken": [
              "org:read"
            ]
          },
          {
            "oauth2": [
              "org:read"
            ]
          }
        ],
        "x-scope": "org:read",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                },
                "example": {
                  "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                  "name": "Priya Shah",
                  "email": "priya@example.com",
                  "time_zone": "Asia/Kolkata",
                  "language": "en-GB",
                  "organisation": {
                    "id": "4f1c2a8e-3b7d-4e0a-9c55-0d6f1e2a3b4c",
                    "address": "acme",
                    "name": "Acme"
                  },
                  "role": "member",
                  "token": {
                    "kind": "personal",
                    "scopes": [
                      "org:read",
                      "tasks:read"
                    ],
                    "expires_at": "2027-03-01T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/me/permissions": {
      "get": {
        "operationId": "getMyPermissions",
        "summary": "Get my permissions",
        "description": "What the token's person may do in the organisation, and with project= (a key or an id) in that project, so an app can hide what it can't do. A project the person can't see answers 404, as one that doesn't exist.",
        "tags": [
          "Organisation"
        ],
        "security": [
          {
            "personalToken": [
              "org:read"
            ]
          },
          {
            "oauth2": [
              "org:read"
            ]
          }
        ],
        "x-scope": "org:read",
        "parameters": [
          {
            "name": "project",
            "in": "query",
            "required": false,
            "description": "A project's key (WEB) or id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyPermissions"
                },
                "example": {
                  "organisation": [
                    "browse_users",
                    "create_team_project"
                  ],
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "permissions": [
                      "browse",
                      "create_tasks",
                      "edit_tasks"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/audit-log": {
      "get": {
        "operationId": "listAuditLog",
        "summary": "List the audit log",
        "description": "The organisation's audit log, newest first, for its owners and admins: who did what, to what, when and from which address. Filter by person, action and time.",
        "tags": [
          "Organisation"
        ],
        "security": [
          {
            "personalToken": [
              "org:read"
            ]
          },
          {
            "oauth2": [
              "org:read"
            ]
          }
        ],
        "x-scope": "org:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "description": "Only events by this person (their id).",
            "x-id-from": "getMe",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "Only these actions, comma-separated (for example api_token_created,api_token_revoked).",
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Only events at or after this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "description": "Only events before this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, at, actor, action, category, summary, item, ip, details. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AuditEntry"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                      "at": "2026-12-01T10:15:00.000Z",
                      "actor": {
                        "kind": "person",
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "action": "api_token_created",
                      "category": "API",
                      "summary": "Made an API token",
                      "item": {
                        "kind": "api_token",
                        "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
                        "name": null
                      },
                      "ip": "203.0.113.7",
                      "details": {
                        "name": "Nightly report",
                        "scopes": [
                          "tasks:read"
                        ]
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/people": {
      "get": {
        "operationId": "listPeople",
        "summary": "List people",
        "description": "The people of the organisation the token's person may see, as the People directory shows them: everyone for owners and admins, and for others the people they share a project or space with (guests see no directory). Filter by role (guest for guests), text, project, team, job title, department and location. Email addresses follow the organisation's email visibility. This list is the people export: page through it.",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Text in the name, email, job title or department.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "role",
            "in": "query",
            "required": false,
            "description": "Only people with this organisation role.",
            "schema": {
              "type": "string",
              "enum": [
                "owner",
                "admin",
                "member",
                "guest"
              ]
            }
          },
          {
            "name": "project",
            "in": "query",
            "required": false,
            "description": "Only people who can open this project (key or id).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "team",
            "in": "query",
            "required": false,
            "description": "Only members of this team.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "job_title",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "department",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "location",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "name (the default), joined_at or id; - for descending; several with commas.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, email, status, role, job_title, department, location, time_zone, language, joined_at. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Person"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah",
                      "email": "priya@example.com",
                      "status": "active",
                      "role": "member",
                      "job_title": "Designer",
                      "department": "Product",
                      "location": "Pune",
                      "time_zone": "Asia/Kolkata",
                      "language": "en-GB",
                      "joined_at": "2026-11-17T09:30:00.000Z"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "invitePerson",
        "summary": "Invite a person",
        "description": "Invites someone to the organisation (owners and admins), as Organisation settings > People does: they join when they accept the emailed invitation. Someone already a member, or with a pending invitation, is a 409 conflict; past the plan's people (Free's 10) or a guest on Free is 409 limit_reached. This is also how a removed person comes back.",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "description": "The person's email address."
                  },
                  "role": {
                    "default": "member",
                    "description": "Their organisation role; only owners invite owners. Guests aren't in Free.",
                    "type": "string",
                    "enum": [
                      "owner",
                      "admin",
                      "member",
                      "guest"
                    ]
                  },
                  "product_access": {
                    "default": [
                      "projects",
                      "docs"
                    ],
                    "description": "Projects, Docs or both.",
                    "minItems": 1,
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "projects",
                        "docs"
                      ]
                    }
                  },
                  "projects": {
                    "default": [],
                    "description": "Projects to give them a role in when they join.",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "project": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60,
                          "description": "A project's id, or its key (WEB)."
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "admin",
                            "member",
                            "viewer",
                            "guest"
                          ]
                        }
                      },
                      "required": [
                        "project",
                        "role"
                      ]
                    }
                  },
                  "spaces": {
                    "default": [],
                    "description": "Docs spaces (by id) to give them a role in when they join.",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "space": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "admin",
                            "manager",
                            "collaborator",
                            "viewer"
                          ]
                        }
                      },
                      "required": [
                        "space",
                        "role"
                      ]
                    }
                  },
                  "notify": {
                    "default": true,
                    "description": "true (the default) emails the invitation; false makes it without an email (an admin can resend it from Organisation settings > People).",
                    "type": "boolean"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The invitation is made.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invitation"
                },
                "example": {
                  "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
                  "email": "new.person@example.com",
                  "role": "member",
                  "product_access": [
                    "docs",
                    "projects"
                  ],
                  "status": "pending",
                  "notified": true
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/people/{person}": {
      "get": {
        "operationId": "getPerson",
        "summary": "Get a person",
        "description": "One person, by id or email, as their person page shows them to the token's person. A former member (removed from the organisation) comes back with status former and their name only. Someone the caller can't see answers 404, as someone who doesn't exist.",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id, or their email address.",
            "x-id-from": "listPeople",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, email, status, role, job_title, department, location, time_zone, language, joined_at. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Person"
                },
                "example": {
                  "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                  "name": "Priya Shah",
                  "email": "priya@example.com",
                  "status": "active",
                  "role": "member",
                  "job_title": "Designer",
                  "department": "Product",
                  "location": "Pune",
                  "time_zone": "Asia/Kolkata",
                  "language": "en-GB",
                  "joined_at": "2026-11-17T09:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updatePerson",
        "summary": "Change a person's role",
        "description": "Changes a person's organisation role or product access (owners and admins; only an owner makes or changes an owner). The organisation keeps at least one owner (409 conflict).",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id, or their email address.",
            "x-id-from": "listPeople",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "admin",
                      "member",
                      "guest"
                    ]
                  },
                  "product_access": {
                    "minItems": 1,
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "projects",
                        "docs"
                      ]
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Person"
                },
                "example": {
                  "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                  "name": "Priya Shah",
                  "email": "priya@example.com",
                  "status": "active",
                  "role": "member",
                  "job_title": "Designer",
                  "department": "Product",
                  "location": "Pune",
                  "time_zone": "Asia/Kolkata",
                  "language": "en-GB",
                  "joined_at": "2026-11-17T09:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePerson",
        "summary": "Remove a person",
        "description": "Removes a person from the organisation (owners and admins; only an owner removes an owner; never the last owner). This is projqo's deactivation: their roles go, their work keeps their name as a former member, and their tokens stop working at once. Invite them again to bring them back.",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id, or their email address.",
            "x-id-from": "listPeople",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/people/{person}/projects": {
      "get": {
        "operationId": "listPersonProjects",
        "summary": "List a person's projects",
        "description": "The projects the person has a role in (directly or through a group) that the token's person can open; owners and admins see all of them.",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id, or their email address.",
            "x-id-from": "listPeople",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectRef"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                      "key": "WEB",
                      "name": "Website"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/people/{person}/teams": {
      "get": {
        "operationId": "listPersonTeams",
        "summary": "List a person's teams",
        "description": "The teams the person is on, archived ones last.",
        "tags": [
          "People"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id, or their email address.",
            "x-id-from": "listPeople",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Team"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams": {
      "get": {
        "operationId": "listTeams",
        "summary": "List teams",
        "description": "The organisation's teams, as the Teams directory lists them: active ones, or archived=true for the archived. Filter by text, type, a member or a project the team contributes to. Guests see no teams (403 refused).",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Text in the team's name.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "official",
                "team"
              ]
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "description": "true lists archived teams only.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "member",
            "in": "query",
            "required": false,
            "description": "Only teams this person is on (id or email).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "mine",
            "in": "query",
            "required": false,
            "description": "true: only teams the token's person is on.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "project",
            "in": "query",
            "required": false,
            "description": "Only teams contributing to this project.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "name (the default), created_at or id; - for descending.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, description, type, joining, icon, member_count, is_member, archived, archived_at, parent, created_at. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Team"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
                      "name": "Platform",
                      "description": "Keeps the lights on.",
                      "type": "official",
                      "joining": "invite",
                      "icon": "shield",
                      "member_count": 3,
                      "is_member": true,
                      "archived": false,
                      "archived_at": null,
                      "parent": null,
                      "created_at": "2026-11-20T08:00:00.000Z"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createTeam",
        "summary": "Create a team",
        "description": "Makes a team, as Teams > Create team does: any member may (official teams: owners and admins). The token's person is on it; members are added by id or email (no guests). A name already taken is 409 conflict.",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 1020
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 16000
                  },
                  "type": {
                    "description": "official: owners and admins only.",
                    "type": "string",
                    "enum": [
                      "official",
                      "team"
                    ]
                  },
                  "joining": {
                    "type": "string",
                    "enum": [
                      "open",
                      "invite"
                    ]
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "users",
                      "rocket",
                      "code",
                      "palette",
                      "megaphone",
                      "wrench",
                      "shield",
                      "heart",
                      "briefcase",
                      "globe",
                      "lightbulb",
                      "flask"
                    ]
                  },
                  "members": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320,
                      "description": "A person's id, or their email address."
                    }
                  },
                  "parent": {
                    "description": "The parent team's id.",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                },
                "example": {
                  "id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
                  "name": "Platform",
                  "description": "Keeps the lights on.",
                  "type": "official",
                  "joining": "invite",
                  "icon": "shield",
                  "member_count": 3,
                  "is_member": true,
                  "archived": false,
                  "archived_at": null,
                  "parent": null,
                  "created_at": "2026-11-20T08:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams/{team}": {
      "get": {
        "operationId": "getTeam",
        "summary": "Get a team",
        "description": "One team. Guests see no teams (403 refused).",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, description, type, joining, icon, member_count, is_member, archived, archived_at, parent, created_at. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                },
                "example": {
                  "id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
                  "name": "Platform",
                  "description": "Keeps the lights on.",
                  "type": "official",
                  "joining": "invite",
                  "icon": "shield",
                  "member_count": 3,
                  "is_member": true,
                  "archived": false,
                  "archived_at": null,
                  "parent": null,
                  "created_at": "2026-11-20T08:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateTeam",
        "summary": "Change a team",
        "description": "Changes a team's name, description, joining, icon or type: its members and organisation admins may (type: admins only). An archived team can't be changed (409 archived).",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 1020
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 16000
                  },
                  "type": {
                    "description": "official: owners and admins only.",
                    "type": "string",
                    "enum": [
                      "official",
                      "team"
                    ]
                  },
                  "joining": {
                    "type": "string",
                    "enum": [
                      "open",
                      "invite"
                    ]
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "users",
                      "rocket",
                      "code",
                      "palette",
                      "megaphone",
                      "wrench",
                      "shield",
                      "heart",
                      "briefcase",
                      "globe",
                      "lightbulb",
                      "flask"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                },
                "example": {
                  "id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
                  "name": "Platform",
                  "description": "Keeps the lights on.",
                  "type": "official",
                  "joining": "invite",
                  "icon": "shield",
                  "member_count": 3,
                  "is_member": true,
                  "archived": false,
                  "archived_at": null,
                  "parent": null,
                  "created_at": "2026-11-20T08:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteTeam",
        "summary": "Delete a team",
        "description": "Deletes a team for good (its members; an official team: admins). Tasks whose Team it was keep no team.",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams/{team}/archive": {
      "post": {
        "operationId": "archiveTeam",
        "summary": "Archive a team",
        "description": "Archives a team (its members; an official team: admins). An archived team can't be changed or picked.",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                },
                "example": {
                  "id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
                  "name": "Platform",
                  "description": "Keeps the lights on.",
                  "type": "official",
                  "joining": "invite",
                  "icon": "shield",
                  "member_count": 3,
                  "is_member": true,
                  "archived": false,
                  "archived_at": null,
                  "parent": null,
                  "created_at": "2026-11-20T08:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams/{team}/restore": {
      "post": {
        "operationId": "restoreTeam",
        "summary": "Restore a team",
        "description": "Restores an archived team (its members; an official team: admins).",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                },
                "example": {
                  "id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
                  "name": "Platform",
                  "description": "Keeps the lights on.",
                  "type": "official",
                  "joining": "invite",
                  "icon": "shield",
                  "member_count": 3,
                  "is_member": true,
                  "archived": false,
                  "archived_at": null,
                  "parent": null,
                  "created_at": "2026-11-20T08:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams/{team}/members": {
      "get": {
        "operationId": "listTeamMembers",
        "summary": "List a team's members",
        "description": "The team's members by name (every member of the organisation sees them).",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TeamMember"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah",
                      "added_at": "2026-11-20T08:00:00.000Z"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addTeamMembers",
        "summary": "Add people to a team",
        "description": "Adds people (by id or email; never guests) to a team: its members and organisation admins may. People already on it stay.",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "people": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320,
                      "description": "A person's id, or their email address."
                    }
                  }
                },
                "required": [
                  "people"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TeamMember"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams/{team}/members/{person}": {
      "delete": {
        "operationId": "removeTeamMember",
        "summary": "Remove someone from a team",
        "description": "Takes a person off a team: anyone may leave; its members and organisation admins take others off.",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:admin"
            ]
          },
          {
            "oauth2": [
              "people:admin"
            ]
          }
        ],
        "x-scope": "people:admin",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id, or their email address.",
            "x-id-from": "listPeople",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/teams/{team}/projects": {
      "get": {
        "operationId": "listTeamProjects",
        "summary": "List a team's projects",
        "description": "The projects the team contributes to that the token's person can open (others are left out, as if not there).",
        "tags": [
          "Teams"
        ],
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectRef"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/teams": {
      "get": {
        "operationId": "listProjectTeams",
        "summary": "List a project's contributing teams",
        "description": "The teams that contribute to the project, archived ones last.",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Team"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addProjectTeam",
        "summary": "Add a contributing team",
        "description": "Adds a team to the project's contributing teams (the project's administrators and organisation admins; not while the project is archived). A team gives no access.",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "team": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The team's id."
                  }
                },
                "required": [
                  "team"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Team"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/teams/{team}": {
      "delete": {
        "operationId": "removeProjectTeam",
        "summary": "Remove a contributing team",
        "description": "Takes a team off the project's contributing teams (the project's administrators and organisation admins).",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "team",
            "in": "path",
            "required": true,
            "description": "The team's id.",
            "x-id-from": "listTeams",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List projects",
        "description": "The projects the token's person can open (a project they hold no role in doesn't appear, D1), active by default. Filter by state, kind, category, lead and text; sort by name, key or created.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "active (default) or archived. The trash is GET /project-trash.",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "archived"
              ]
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "team",
                "organisation"
              ]
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "A category's id, or none for projects without one.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "lead",
            "in": "query",
            "required": false,
            "description": "The lead's id or email.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Text in the name or key.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "name (default), key or created; several comma-separated, - for descending.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, key, name, kind, state, family, lead, category, can_administer. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectSummary"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                      "key": "WEB",
                      "name": "Website",
                      "kind": "organisation",
                      "state": "active",
                      "family": "software",
                      "lead": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah",
                        "former": false
                      },
                      "category": {
                        "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                        "name": "Customer work"
                      },
                      "can_administer": true
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createProject",
        "summary": "Create a project",
        "description": "Creates a project from a template, as the app's wizard does: the person needs Create Team projects or Create Organisation projects; the creator becomes its admin. Keys and names are unique (409 conflict when taken). A category is an organisation admin's to give.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "key": {
                    "type": "string",
                    "maxLength": 20,
                    "description": "2 to 10 letters and digits, starting with a letter."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "team",
                      "organisation"
                    ],
                    "description": "team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes."
                  },
                  "template": {
                    "description": "The template's id (scrum, kanban, …); required unless custom_template is given.",
                    "type": "string",
                    "enum": [
                      "scrum",
                      "kanban",
                      "bug_tracking",
                      "blank",
                      "project_management",
                      "task_tracking",
                      "business",
                      "campaign",
                      "content",
                      "hiring",
                      "purchasing",
                      "contract_review",
                      "office_moves",
                      "event_planning",
                      "gtm_launch",
                      "email_campaigns",
                      "social_calendar",
                      "brand_assets",
                      "facilities",
                      "asset_tracking",
                      "process_control",
                      "vendor_management",
                      "onboarding",
                      "offboarding",
                      "performance_reviews",
                      "training",
                      "budget_planning",
                      "expenses",
                      "month_end",
                      "legal_requests",
                      "policy_reviews",
                      "document_approval"
                    ]
                  },
                  "custom_template": {
                    "description": "A saved project template's id.",
                    "type": "string",
                    "format": "uuid"
                  },
                  "share_settings_with": {
                    "description": "Organisation projects: share this Organisation project's settings.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "category": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "task_types": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 60
                        },
                        "icon": {
                          "type": "string",
                          "enum": [
                            "epic",
                            "story",
                            "task",
                            "bug",
                            "subtask"
                          ]
                        },
                        "level": {
                          "anyOf": [
                            {
                              "type": "number",
                              "const": -1
                            },
                            {
                              "type": "number",
                              "const": 0
                            },
                            {
                              "type": "number",
                              "const": 1
                            }
                          ],
                          "description": "1: above tasks (Epic), 0: a task, -1: a subtask."
                        }
                      },
                      "required": [
                        "name",
                        "icon",
                        "level"
                      ]
                    }
                  },
                  "statuses": {
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 60
                        },
                        "category": {
                          "type": "string",
                          "enum": [
                            "todo",
                            "in_progress",
                            "done"
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "category"
                      ]
                    }
                  },
                  "views": {
                    "maxItems": 15,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "summary",
                        "timeline",
                        "backlog",
                        "board",
                        "calendar",
                        "reports",
                        "list",
                        "releases",
                        "components",
                        "archived_tasks",
                        "docs",
                        "attachments",
                        "shortcuts",
                        "forms",
                        "approvals"
                      ]
                    }
                  }
                },
                "required": [
                  "name",
                  "key",
                  "kind"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                  "key": "WEB",
                  "name": "Website",
                  "kind": "organisation",
                  "state": "active",
                  "family": "software",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "former": false
                  },
                  "category": {
                    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                    "name": "Customer work"
                  },
                  "can_administer": true,
                  "description": "The public website.",
                  "url": "https://example.com",
                  "icon": "rocket",
                  "template": "scrum",
                  "default_assignee": "unassigned",
                  "features": {
                    "sprints": true,
                    "estimation": "story_points",
                    "standups": false,
                    "views": [
                      {
                        "kind": "board",
                        "name": "Board",
                        "is_default": true
                      },
                      {
                        "kind": "backlog",
                        "name": "Backlog",
                        "is_default": false
                      }
                    ]
                  },
                  "docs_space": null,
                  "my_roles": [
                    "Administrator"
                  ],
                  "my_permissions": [
                    "administer_project",
                    "browse_project",
                    "create_tasks"
                  ],
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "archived_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}": {
      "get": {
        "operationId": "getProject",
        "summary": "Get a project",
        "description": "One project by key, old key (after a key change) or id: its details, features, views, and the token's person's roles and permissions there. A project the person can't open answers 404, as one that doesn't exist.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, key, name, kind, state, family, lead, category, can_administer, description, url, icon, template, default_assignee, features, docs_space, my_roles, my_permissions, created_at, archived_at. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                  "key": "WEB",
                  "name": "Website",
                  "kind": "organisation",
                  "state": "active",
                  "family": "software",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "former": false
                  },
                  "category": {
                    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                    "name": "Customer work"
                  },
                  "can_administer": true,
                  "description": "The public website.",
                  "url": "https://example.com",
                  "icon": "rocket",
                  "template": "scrum",
                  "default_assignee": "unassigned",
                  "features": {
                    "sprints": true,
                    "estimation": "story_points",
                    "standups": false,
                    "views": [
                      {
                        "kind": "board",
                        "name": "Board",
                        "is_default": true
                      },
                      {
                        "kind": "backlog",
                        "name": "Backlog",
                        "is_default": false
                      }
                    ]
                  },
                  "docs_space": null,
                  "my_roles": [
                    "Administrator"
                  ],
                  "my_permissions": [
                    "administer_project",
                    "browse_project",
                    "create_tasks"
                  ],
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "archived_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateProject",
        "summary": "Update a project",
        "description": "Changes a project's details, as its Details settings do: name, key (the old key keeps working), category, lead, default assignee, description, address and icon. The project's admins only (others get 404, as the settings are hidden from them); an Organisation project's key and category are the organisation admins'.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "key": {
                    "type": "string",
                    "maxLength": 20
                  },
                  "category": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lead": {
                    "description": "The lead's id or email; null for none.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 320,
                        "description": "A person's id, or their email address."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "default_assignee": {
                    "type": "string",
                    "enum": [
                      "lead",
                      "unassigned"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 5000
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "rocket",
                      "spark",
                      "leaf",
                      "bolt",
                      "flag",
                      "compass",
                      "cube",
                      "heart",
                      "star",
                      "globe"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                  "key": "WEB",
                  "name": "Website",
                  "kind": "organisation",
                  "state": "active",
                  "family": "software",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "former": false
                  },
                  "category": {
                    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                    "name": "Customer work"
                  },
                  "can_administer": true,
                  "description": "The public website.",
                  "url": "https://example.com",
                  "icon": "rocket",
                  "template": "scrum",
                  "default_assignee": "unassigned",
                  "features": {
                    "sprints": true,
                    "estimation": "story_points",
                    "standups": false,
                    "views": [
                      {
                        "kind": "board",
                        "name": "Board",
                        "is_default": true
                      },
                      {
                        "kind": "backlog",
                        "name": "Backlog",
                        "is_default": false
                      }
                    ]
                  },
                  "docs_space": null,
                  "my_roles": [
                    "Administrator"
                  ],
                  "my_permissions": [
                    "administer_project",
                    "browse_project",
                    "create_tasks"
                  ],
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "archived_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteProject",
        "summary": "Delete a project for good",
        "description": "Deletes a project in the trash, with its tasks, for good (organisation owners and admins). A project that isn't in the trash answers 409: move it to the trash first.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/features": {
      "patch": {
        "operationId": "updateProjectFeatures",
        "summary": "Switch a project's features",
        "description": "Switches sprints, estimation and standups on or off, as the project's Features settings do (a Team project's admins; an Organisation project has only standups here, its board decides the rest). Sprints need the Backlog view. The project's views are read in features.views.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sprints": {
                    "type": "boolean"
                  },
                  "estimation": {
                    "type": "string",
                    "enum": [
                      "off",
                      "story_points",
                      "time"
                    ]
                  },
                  "standups": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                  "key": "WEB",
                  "name": "Website",
                  "kind": "organisation",
                  "state": "active",
                  "family": "software",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "former": false
                  },
                  "category": {
                    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                    "name": "Customer work"
                  },
                  "can_administer": true,
                  "description": "The public website.",
                  "url": "https://example.com",
                  "icon": "rocket",
                  "template": "scrum",
                  "default_assignee": "unassigned",
                  "features": {
                    "sprints": true,
                    "estimation": "story_points",
                    "standups": false,
                    "views": [
                      {
                        "kind": "board",
                        "name": "Board",
                        "is_default": true
                      },
                      {
                        "kind": "backlog",
                        "name": "Backlog",
                        "is_default": false
                      }
                    ]
                  },
                  "docs_space": null,
                  "my_roles": [
                    "Administrator"
                  ],
                  "my_permissions": [
                    "administer_project",
                    "browse_project",
                    "create_tasks"
                  ],
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "archived_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/archive": {
      "post": {
        "operationId": "archiveProject",
        "summary": "Archive a project",
        "description": "Archives an active project (organisation owners and admins): it stays readable and its tasks can't be changed until it is restored.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                  "key": "WEB",
                  "name": "Website",
                  "kind": "organisation",
                  "state": "archived",
                  "family": "software",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "former": false
                  },
                  "category": {
                    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                    "name": "Customer work"
                  },
                  "can_administer": true,
                  "description": "The public website.",
                  "url": "https://example.com",
                  "icon": "rocket",
                  "template": "scrum",
                  "default_assignee": "unassigned",
                  "features": {
                    "sprints": true,
                    "estimation": "story_points",
                    "standups": false,
                    "views": [
                      {
                        "kind": "board",
                        "name": "Board",
                        "is_default": true
                      },
                      {
                        "kind": "backlog",
                        "name": "Backlog",
                        "is_default": false
                      }
                    ]
                  },
                  "docs_space": null,
                  "my_roles": [
                    "Administrator"
                  ],
                  "my_permissions": [
                    "administer_project",
                    "browse_project",
                    "create_tasks"
                  ],
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "archived_at": "2026-12-02T10:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/trash": {
      "post": {
        "operationId": "trashProject",
        "summary": "Move a project to the trash",
        "description": "Moves a project to the trash (organisation owners and admins; a Team project's admins too). It and its tasks are hidden from everyone; organisation admins restore it within the trash's days, then it is deleted.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/restore": {
      "post": {
        "operationId": "restoreProject",
        "summary": "Restore a project",
        "description": "Brings a project back from the archive or the trash (organisation owners and admins). A trashed project is named by its id or key (the trash lists them).",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                  "key": "WEB",
                  "name": "Website",
                  "kind": "organisation",
                  "state": "active",
                  "family": "software",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "former": false
                  },
                  "category": {
                    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                    "name": "Customer work"
                  },
                  "can_administer": true,
                  "description": "The public website.",
                  "url": "https://example.com",
                  "icon": "rocket",
                  "template": "scrum",
                  "default_assignee": "unassigned",
                  "features": {
                    "sprints": true,
                    "estimation": "story_points",
                    "standups": false,
                    "views": [
                      {
                        "kind": "board",
                        "name": "Board",
                        "is_default": true
                      },
                      {
                        "kind": "backlog",
                        "name": "Backlog",
                        "is_default": false
                      }
                    ]
                  },
                  "docs_space": null,
                  "my_roles": [
                    "Administrator"
                  ],
                  "my_permissions": [
                    "administer_project",
                    "browse_project",
                    "create_tasks"
                  ],
                  "created_at": "2026-11-17T09:30:00.000Z",
                  "archived_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/project-trash": {
      "get": {
        "operationId": "listProjectTrash",
        "summary": "List the projects in the trash",
        "description": "The organisation's trashed projects, newest first, with when each is deleted for good (organisation owners and admins; anyone else gets 404, as the trash page is hidden from them).",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes.",
            "schema": {
              "type": "string",
              "enum": [
                "team",
                "organisation"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TrashedProject"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
                      "key": "BIN",
                      "name": "Retired intranet",
                      "kind": "team",
                      "trashed_at": "2026-11-22T10:00:00.000Z",
                      "trashed_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "deleted_at": "2027-01-21T10:00:00.000Z"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/project-categories": {
      "get": {
        "operationId": "listProjectCategories",
        "summary": "List project categories",
        "description": "The organisation's project categories, by name. Owners and admins also get each one's description and how many projects have it.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectCategory"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                      "name": "Customer work",
                      "description": "Projects for clients.",
                      "projects": 3
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createProjectCategory",
        "summary": "Create a project category",
        "description": "Adds a project category (organisation owners and admins; anyone else gets 404, as the categories page is hidden from them).",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 60
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCategory"
                },
                "example": {
                  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                  "name": "Customer work",
                  "description": "Projects for clients.",
                  "projects": 3
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/project-categories/{category}": {
      "get": {
        "operationId": "getProjectCategory",
        "summary": "Get a project category",
        "description": "One project category.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "category",
            "in": "path",
            "required": true,
            "x-id-from": "listProjectCategories",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCategory"
                },
                "example": {
                  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                  "name": "Customer work",
                  "description": "Projects for clients.",
                  "projects": 3
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateProjectCategory",
        "summary": "Update a project category",
        "description": "Renames a project category or changes its description (organisation owners and admins).",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "category",
            "in": "path",
            "required": true,
            "x-id-from": "listProjectCategories",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 60
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCategory"
                },
                "example": {
                  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                  "name": "Customer work",
                  "description": "Projects for clients.",
                  "projects": 3
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteProjectCategory",
        "summary": "Delete a project category",
        "description": "Deletes a project category (organisation owners and admins); its projects keep going without one.",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "category",
            "in": "path",
            "required": true,
            "x-id-from": "listProjectCategories",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/people": {
      "get": {
        "operationId": "listProjectPeople",
        "summary": "List a project's people",
        "description": "Who holds which role in the project, people and groups (groups first, then by name), as the project's access page shows them to anyone who can open it. Guests don't see email addresses.",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Text in the name or email.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "person (members), guest or group.",
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "guest",
                "group"
              ]
            }
          },
          {
            "name": "role",
            "in": "query",
            "required": false,
            "description": "A role's id or key.",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, kind, person, group, role. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectPerson"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "9e0f1a2b-3c4d-4e5f-8a6b-7c8d9e0f1a2b",
                      "kind": "person",
                      "person": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah",
                        "email": "priya@example.com",
                        "guest": false
                      },
                      "group": null,
                      "role": {
                        "id": "0b1c2d3e-4f5a-4b6c-8d7e-8f9a0b1c2d3e",
                        "key": "member",
                        "name": "Member"
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addProjectPeople",
        "summary": "Add people to a project",
        "description": "Gives people (by id or email) and groups a role in the project, as the access page's Add people does (the project's admins). An organisation admin's email for someone not yet in the organisation invites them with a built-in role. Who can't be added is listed in refused with the reason; a guest can only be Guest or Viewer.",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "description": "The role's id or key (admin, member, viewer, guest, …)."
                  },
                  "people": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320,
                      "description": "A person's id, or their email address."
                    }
                  },
                  "groups": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  }
                },
                "required": [
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPeopleAdded"
                },
                "example": {
                  "added": 1,
                  "invited": [],
                  "refused": []
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/people/{assignment}": {
      "patch": {
        "operationId": "updateProjectPerson",
        "summary": "Change a role in a project",
        "description": "Gives one person or group another role in the project (the project's admins).",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "assignment",
            "in": "path",
            "required": true,
            "x-id-from": "listProjectPeople",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "description": "The role's id or key."
                  }
                },
                "required": [
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPerson"
                },
                "example": {
                  "id": "9e0f1a2b-3c4d-4e5f-8a6b-7c8d9e0f1a2b",
                  "kind": "person",
                  "person": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah",
                    "email": "priya@example.com",
                    "guest": false
                  },
                  "group": null,
                  "role": {
                    "id": "0b1c2d3e-4f5a-4b6c-8d7e-8f9a0b1c2d3e",
                    "key": "member",
                    "name": "Member"
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeProjectPerson",
        "summary": "Remove someone from a project",
        "description": "Takes a person's or group's role in the project away (the project's admins).",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "assignment",
            "in": "path",
            "required": true,
            "x-id-from": "listProjectPeople",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/roles": {
      "get": {
        "operationId": "listProjectRoles",
        "summary": "List a project's roles",
        "description": "The roles of the project with their permissions and how many hold each (the project's admins, as its Roles settings). A Team project has its own roles; an Organisation project uses the organisation's, with the permissions its scheme gives. Read only: roles are changed in the app.",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectRole"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "0b1c2d3e-4f5a-4b6c-8d7e-8f9a0b1c2d3e",
                      "key": "member",
                      "name": "Member",
                      "description": "Works on tasks.",
                      "built_in": true,
                      "permissions": [
                        "browse_project",
                        "create_tasks",
                        "edit_tasks"
                      ],
                      "holders": 4
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/permissions/{person}": {
      "get": {
        "operationId": "getProjectPersonPermissions",
        "summary": "Get a person's permissions in a project",
        "description": "What one person may do in the project, from every role they hold there directly or through a group (the project's admins; read only). A person the caller can't see answers 404.",
        "tags": [
          "Project people"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "The person's id or email.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPersonPermissions"
                },
                "example": {
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "person": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "roles": [
                    "Member"
                  ],
                  "permissions": [
                    "browse_project",
                    "create_tasks",
                    "edit_tasks"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/releases": {
      "get": {
        "operationId": "listReleases",
        "summary": "List a project's releases",
        "description": "The project's releases in their order (as the Releases view lists them), with progress. Filter by status and archived.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "unreleased",
                "released"
              ]
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "description": "true: archived only; false: not archived; left out: both.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, project, name, description, start_date, release_date, status, archived, released_on, driver, stage, approvals_required, progress, stages, approvers, can_manage. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Release"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                      "project": {
                        "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                        "key": "WEB",
                        "name": "Website"
                      },
                      "name": "Version 1.2",
                      "description": "The checkout redesign.",
                      "start_date": "2026-11-01",
                      "release_date": "2026-12-15",
                      "status": "unreleased",
                      "archived": false,
                      "released_on": null,
                      "driver": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "stage": {
                        "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                        "name": "In progress",
                        "kind": "in_progress"
                      },
                      "approvals_required": false,
                      "progress": {
                        "todo": 3,
                        "in_progress": 2,
                        "done": 7,
                        "total": 12,
                        "unresolved": 5
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createRelease",
        "summary": "Create a release",
        "description": "Adds a release at the end of the project's list (Manage releases). Names are unique in a project, whatever their case; the release date can't be before the start date.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "start_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "release_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "driver": {
                    "description": "The driver's id or email; the creator when left out.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 320,
                        "description": "A person's id, or their email address."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvals_required": {
                    "type": "boolean"
                  },
                  "stages": {
                    "description": "Stage names, in order.",
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "approvers": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320,
                      "description": "A person's id, or their email address."
                    }
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "unreleased",
                  "archived": false,
                  "released_on": null,
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/releases/{release}": {
      "get": {
        "operationId": "getRelease",
        "summary": "Get a release",
        "description": "One release with its stages and approvers. A release in a project the person can't open answers 404.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, project, name, description, start_date, release_date, status, archived, released_on, driver, stage, approvals_required, progress, stages, approvers, can_manage. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "unreleased",
                  "archived": false,
                  "released_on": null,
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  },
                  "stages": [
                    {
                      "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                      "name": "In progress",
                      "kind": "in_progress"
                    }
                  ],
                  "approvers": [],
                  "can_manage": true
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateRelease",
        "summary": "Update a release",
        "description": "Changes a release's name, description, dates, driver, stage or whether approvals are required (Manage releases).",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "start_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "release_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "driver": {
                    "description": "The driver's id or email; the creator when left out.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 320,
                        "description": "A person's id, or their email address."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stage": {
                    "description": "One of the release's stages (get a release lists them).",
                    "type": "string",
                    "format": "uuid"
                  },
                  "approvals_required": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "unreleased",
                  "archived": false,
                  "released_on": null,
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteRelease",
        "summary": "Delete a release",
        "description": "Deletes a release (Manage releases). Its tasks move to move_to (another release of the project) or lose it.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "move_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/releases/{release}/release": {
      "post": {
        "operationId": "releaseRelease",
        "summary": "Release a release",
        "description": "Marks the release released (Manage releases), on a date (today by default). Its unresolved tasks move to move_unresolved_to (another release of the project) or stay. With approvals required, every approver must have approved (409 conflict otherwise).",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "move_unresolved_to": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "date": {
                    "type": "string",
                    "format": "date"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "released",
                  "archived": false,
                  "released_on": "2026-12-15",
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/releases/{release}/unrelease": {
      "post": {
        "operationId": "unreleaseRelease",
        "summary": "Unrelease a release",
        "description": "Marks a released release as not released again (Manage releases); 409 conflict when it isn't released.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "unreleased",
                  "archived": false,
                  "released_on": null,
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/releases/{release}/archive": {
      "post": {
        "operationId": "archiveRelease",
        "summary": "Archive a release",
        "description": "Archives a release (Manage releases): it leaves pickers and lists. 409 archived when it is archived already.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "unreleased",
                  "archived": true,
                  "released_on": null,
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/releases/{release}/unarchive": {
      "post": {
        "operationId": "unarchiveRelease",
        "summary": "Unarchive a release",
        "description": "Brings an archived release back, with the status it had (Manage releases). 409 conflict when it isn't archived.",
        "tags": [
          "Releases"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "release",
            "in": "path",
            "required": true,
            "x-id-from": "listReleases",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                },
                "example": {
                  "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Version 1.2",
                  "description": "The checkout redesign.",
                  "start_date": "2026-11-01",
                  "release_date": "2026-12-15",
                  "status": "unreleased",
                  "archived": false,
                  "released_on": null,
                  "driver": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "stage": {
                    "id": "4f5a6b7c-8d9e-4f0a-8b1c-2d3e4f5a6b7c",
                    "name": "In progress",
                    "kind": "in_progress"
                  },
                  "approvals_required": false,
                  "progress": {
                    "todo": 3,
                    "in_progress": 2,
                    "done": 7,
                    "total": 12,
                    "unresolved": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state. archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict",
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/components": {
      "get": {
        "operationId": "listComponents",
        "summary": "List a project's components",
        "description": "An Organisation project's components by name, with how many of their tasks the person can open. A Team project has no components (404, as its view isn't there).",
        "tags": [
          "Components"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, project, name, description, lead, default_assignee, tasks. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Component"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
                      "project": {
                        "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                        "key": "WEB",
                        "name": "Website"
                      },
                      "name": "Checkout",
                      "description": "Basket and payment pages.",
                      "lead": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "default_assignee": "component_lead",
                      "tasks": 9
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createComponent",
        "summary": "Create a component",
        "description": "Adds a component to an Organisation project (its admins and organisation admins). Names are unique in the project.",
        "tags": [
          "Components"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "lead": {
                    "description": "The lead's id or email; null for none.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 320,
                        "description": "A person's id, or their email address."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "default_assignee": {
                    "type": "string",
                    "enum": [
                      "component_lead",
                      "project_default",
                      "project_lead",
                      "unassigned"
                    ]
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Component"
                },
                "example": {
                  "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Checkout",
                  "description": "Basket and payment pages.",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "default_assignee": "component_lead",
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/components/{component}": {
      "get": {
        "operationId": "getComponent",
        "summary": "Get a component",
        "description": "One component. A component of a project the person can't open answers 404.",
        "tags": [
          "Components"
        ],
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "component",
            "in": "path",
            "required": true,
            "x-id-from": "listComponents",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, project, name, description, lead, default_assignee, tasks. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Component"
                },
                "example": {
                  "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Checkout",
                  "description": "Basket and payment pages.",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "default_assignee": "component_lead",
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateComponent",
        "summary": "Update a component",
        "description": "Changes a component's name, description, lead or default assignee.",
        "tags": [
          "Components"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "component",
            "in": "path",
            "required": true,
            "x-id-from": "listComponents",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "lead": {
                    "description": "The lead's id or email; null for none.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 320,
                        "description": "A person's id, or their email address."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "default_assignee": {
                    "type": "string",
                    "enum": [
                      "component_lead",
                      "project_default",
                      "project_lead",
                      "unassigned"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Component"
                },
                "example": {
                  "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "name": "Checkout",
                  "description": "Basket and payment pages.",
                  "lead": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "default_assignee": "component_lead",
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteComponent",
        "summary": "Delete a component",
        "description": "Deletes a component; its tasks move to move_to (another component of the project) or lose it.",
        "tags": [
          "Components"
        ],
        "security": [
          {
            "personalToken": [
              "projects:write"
            ]
          },
          {
            "oauth2": [
              "projects:write"
            ]
          }
        ],
        "x-scope": "projects:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "component",
            "in": "path",
            "required": true,
            "x-id-from": "listComponents",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "move_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks": {
      "get": {
        "operationId": "listTasks",
        "summary": "List tasks",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "maxLength": 10000
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Task"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/count": {
      "get": {
        "operationId": "countTasks",
        "summary": "Count tasks",
        "description": "How many tasks the person can open match q, filter and updated_since (the same as the list's total).",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "maxLength": 10000
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCount"
                },
                "example": {
                  "count": 42
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/tasks": {
      "get": {
        "operationId": "listProjectTasks",
        "summary": "List a project's tasks",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "maxLength": 10000
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Task"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createTask",
        "summary": "Create a task",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "description": "A task type's id or name; the project's default without it.",
                    "type": "string",
                    "maxLength": 100
                  },
                  "summary": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "One line, 1 to 255 characters."
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000000
                          },
                          {
                            "$ref": "#/components/schemas/Document"
                          }
                        ],
                        "description": "A document (projqo's document JSON), or Markdown as a string."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priority": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A priority's id or name."
                  },
                  "assignee": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 320
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A person's id or email."
                  },
                  "reporter": {
                    "type": "string",
                    "maxLength": 320,
                    "description": "A person's id or email."
                  },
                  "parent": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 60
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The parent task's id or key."
                  },
                  "labels": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "The labels, or { add, remove } to change some without reading them first."
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "due": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "story_points": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "estimate": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "In minutes."
                  },
                  "environment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 32000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "team": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "An organisation team's id."
                  },
                  "fix_versions": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Release ids, or { add, remove }."
                  },
                  "affects_versions": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Release ids, or { add, remove }."
                  },
                  "components": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Component ids, or { add, remove }."
                  },
                  "status": {
                    "description": "A status to start in (id or name): the first status, or one its workflow reaches in one step without a screen.",
                    "type": "string",
                    "maxLength": 100
                  },
                  "watch": {
                    "description": "The person watches it (true by default).",
                    "type": "boolean"
                  },
                  "watchers": {
                    "description": "Other people to add as watchers (ids or emails).",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  }
                },
                "required": [
                  "summary"
                ],
                "additionalProperties": {}
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                },
                "example": {
                  "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"
                }
              }
            }
          },
          "400": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "field_required",
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "field_required": {
                    "summary": "A field the task's screen or workflow step requires is empty.",
                    "value": {
                      "error": {
                        "code": "field_required",
                        "message": "A field the task's screen or workflow step requires is empty.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/tasks/count": {
      "get": {
        "operationId": "countProjectTasks",
        "summary": "Count a project's tasks",
        "description": "How many of the project's tasks match q, filter and updated_since.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "maxLength": 10000
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A saved filter's id: its query runs (as the app runs a saved filter), joined with q by AND.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCount"
                },
                "example": {
                  "count": 12
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/deleted": {
      "get": {
        "operationId": "listDeletedTasks",
        "summary": "List deleted tasks",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": true,
            "description": "Deleted at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DeletedTask"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}": {
      "get": {
        "operationId": "getTask",
        "summary": "Get a task",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                },
                "example": {
                  "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"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateTask",
        "summary": "Update a task",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "summary": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "One line, 1 to 255 characters."
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000000
                          },
                          {
                            "$ref": "#/components/schemas/Document"
                          }
                        ],
                        "description": "A document (projqo's document JSON), or Markdown as a string."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priority": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A priority's id or name."
                  },
                  "assignee": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 320
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A person's id or email."
                  },
                  "reporter": {
                    "type": "string",
                    "maxLength": 320,
                    "description": "A person's id or email."
                  },
                  "parent": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 60
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The parent task's id or key."
                  },
                  "labels": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "The labels, or { add, remove } to change some without reading them first."
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "due": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "story_points": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "estimate": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "In minutes."
                  },
                  "environment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 32000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "team": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "An organisation team's id."
                  },
                  "fix_versions": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Release ids, or { add, remove }."
                  },
                  "affects_versions": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Release ids, or { add, remove }."
                  },
                  "components": {
                    "anyOf": [
                      {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "add": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "remove": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Component ids, or { add, remove }."
                  }
                },
                "additionalProperties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                },
                "example": {
                  "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"
                }
              }
            }
          },
          "400": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "field_required",
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "field_required": {
                    "summary": "A field the task's screen or workflow step requires is empty.",
                    "value": {
                      "error": {
                        "code": "field_required",
                        "message": "A field the task's screen or workflow step requires is empty.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteTask",
        "summary": "Delete a task",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:delete"
            ]
          },
          {
            "oauth2": [
              "tasks:delete"
            ]
          }
        ],
        "x-scope": "tasks:delete",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/tasks/bulk": {
      "post": {
        "operationId": "createTasks",
        "summary": "Create tasks in bulk",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB) or id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "description": "A task type's id or name; the project's default without it.",
                          "type": "string",
                          "maxLength": 100
                        },
                        "summary": {
                          "type": "string",
                          "maxLength": 1000,
                          "description": "One line, 1 to 255 characters."
                        },
                        "description": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000000
                                },
                                {
                                  "$ref": "#/components/schemas/Document"
                                }
                              ],
                              "description": "A document (projqo's document JSON), or Markdown as a string."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "priority": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A priority's id or name."
                        },
                        "assignee": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 320
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A person's id or email."
                        },
                        "reporter": {
                          "type": "string",
                          "maxLength": 320,
                          "description": "A person's id or email."
                        },
                        "parent": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 60
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The parent task's id or key."
                        },
                        "labels": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "The labels, or { add, remove } to change some without reading them first."
                        },
                        "start": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "due": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "story_points": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "estimate": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "In minutes."
                        },
                        "environment": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 32000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "team": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "An organisation team's id."
                        },
                        "fix_versions": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "Release ids, or { add, remove }."
                        },
                        "affects_versions": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "Release ids, or { add, remove }."
                        },
                        "components": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "Component ids, or { add, remove }."
                        },
                        "status": {
                          "description": "A status to start in (id or name): the first status, or one its workflow reaches in one step without a screen.",
                          "type": "string",
                          "maxLength": 100
                        },
                        "watch": {
                          "description": "The person watches it (true by default).",
                          "type": "boolean"
                        },
                        "watchers": {
                          "description": "Other people to add as watchers (ids or emails).",
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 320
                          }
                        }
                      },
                      "required": [
                        "summary"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "1 to 100 items."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "207": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The item's place in the request, from 0."
                          },
                          "status": {
                            "type": "integer",
                            "description": "The status this item alone would have had."
                          },
                          "item": {
                            "$ref": "#/components/schemas/Task"
                          },
                          "error": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "invalid",
                                  "field_required",
                                  "invalid_token",
                                  "not_in_plan",
                                  "insufficient_scope",
                                  "refused",
                                  "api_off",
                                  "read_only",
                                  "suspended",
                                  "not_found",
                                  "method_not_allowed",
                                  "conflict",
                                  "archived",
                                  "transition_not_allowed",
                                  "limit_reached",
                                  "too_large",
                                  "unsupported_media_type",
                                  "idempotency_key_reused",
                                  "rate_limited",
                                  "internal"
                                ],
                                "description": "What went wrong; the errors guide lists each code's cause and fix."
                              },
                              "message": {
                                "type": "string",
                                "description": "In plain words, for a person to read."
                              },
                              "status": {
                                "type": "integer"
                              },
                              "request_id": {
                                "type": "string",
                                "description": "Also in the X-Request-Id header; quote it to support."
                              },
                              "details": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ErrorDetail"
                                }
                              }
                            },
                            "required": [
                              "code",
                              "message",
                              "status",
                              "request_id"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "index",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "results"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "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"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/bulk": {
      "patch": {
        "operationId": "updateTasks",
        "summary": "Update tasks in bulk",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "summary": {
                          "type": "string",
                          "maxLength": 1000,
                          "description": "One line, 1 to 255 characters."
                        },
                        "description": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000000
                                },
                                {
                                  "$ref": "#/components/schemas/Document"
                                }
                              ],
                              "description": "A document (projqo's document JSON), or Markdown as a string."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "priority": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A priority's id or name."
                        },
                        "assignee": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 320
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A person's id or email."
                        },
                        "reporter": {
                          "type": "string",
                          "maxLength": 320,
                          "description": "A person's id or email."
                        },
                        "parent": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 60
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The parent task's id or key."
                        },
                        "labels": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "The labels, or { add, remove } to change some without reading them first."
                        },
                        "start": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "due": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "story_points": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "estimate": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "In minutes."
                        },
                        "environment": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 32000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "team": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "An organisation team's id."
                        },
                        "fix_versions": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "Release ids, or { add, remove }."
                        },
                        "affects_versions": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "Release ids, or { add, remove }."
                        },
                        "components": {
                          "anyOf": [
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "add": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "remove": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "Component ids, or { add, remove }."
                        },
                        "task": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60,
                          "description": "The task's id or key.",
                          "x-id-from": "listTasks"
                        }
                      },
                      "required": [
                        "task"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "1 to 100 items."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "207": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The item's place in the request, from 0."
                          },
                          "status": {
                            "type": "integer",
                            "description": "The status this item alone would have had."
                          },
                          "item": {
                            "$ref": "#/components/schemas/Task"
                          },
                          "error": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "invalid",
                                  "field_required",
                                  "invalid_token",
                                  "not_in_plan",
                                  "insufficient_scope",
                                  "refused",
                                  "api_off",
                                  "read_only",
                                  "suspended",
                                  "not_found",
                                  "method_not_allowed",
                                  "conflict",
                                  "archived",
                                  "transition_not_allowed",
                                  "limit_reached",
                                  "too_large",
                                  "unsupported_media_type",
                                  "idempotency_key_reused",
                                  "rate_limited",
                                  "internal"
                                ],
                                "description": "What went wrong; the errors guide lists each code's cause and fix."
                              },
                              "message": {
                                "type": "string",
                                "description": "In plain words, for a person to read."
                              },
                              "status": {
                                "type": "integer"
                              },
                              "request_id": {
                                "type": "string",
                                "description": "Also in the X-Request-Id header; quote it to support."
                              },
                              "details": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ErrorDetail"
                                }
                              }
                            },
                            "required": [
                              "code",
                              "message",
                              "status",
                              "request_id"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "index",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "results"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "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"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/transitions": {
      "get": {
        "operationId": "listTaskTransitions",
        "summary": "List a task's transitions",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskTransitions"
                },
                "example": {
                  "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
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/transitions/{transition}": {
      "post": {
        "operationId": "runTaskTransition",
        "summary": "Run a transition",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "transition",
            "in": "path",
            "required": true,
            "description": "The transition's id.",
            "x-id-from": "listTaskTransitions",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fields": {
                    "description": "The screen's fields by key (see the transition's fields).",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "from_status": {
                    "description": "The status you saw the task in: if it has moved since, nothing changes and the answer is transition_not_allowed.",
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "field_required",
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "field_required": {
                    "summary": "A field the task's screen or workflow step requires is empty.",
                    "value": {
                      "error": {
                        "code": "field_required",
                        "message": "A field the task's screen or workflow step requires is empty.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "transition_not_allowed"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "transition_not_allowed": {
                    "summary": "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.",
                    "value": {
                      "error": {
                        "code": "transition_not_allowed",
                        "message": "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.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/task-jobs/{job}": {
      "get": {
        "operationId": "getTaskJob",
        "summary": "Get a task job",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "job",
            "in": "path",
            "required": true,
            "description": "The job's id.",
            "x-id-from": "moveTask",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskJob"
                },
                "example": {
                  "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"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/move": {
      "post": {
        "operationId": "moveTask",
        "summary": "Move a task to another project",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "description": "The project's key or id."
                  },
                  "type": {
                    "description": "A task type there (id or name); without it the one of the same name, else its first at this level.",
                    "type": "string",
                    "maxLength": 100
                  },
                  "status_map": {
                    "description": "For each status the task (or a subtask) is in that the new workflow lacks: the status there (ids or names).",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 100
                    }
                  },
                  "fields": {
                    "description": "Values for fields the project requires there, by key.",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "notify": {
                    "description": "Email the people the move tells (false by default).",
                    "type": "boolean"
                  }
                },
                "required": [
                  "project"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskJob"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/clone": {
      "post": {
        "operationId": "cloneTask",
        "summary": "Clone a task",
        "description": "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).",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "summary": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "assignee": {
                    "description": "A person's id or email; null for nobody.",
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 320
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reporter": {
                    "description": "A person's id or email.",
                    "type": "string",
                    "maxLength": 320
                  },
                  "include": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskJob"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/rank": {
      "post": {
        "operationId": "rankTask",
        "summary": "Rank a task",
        "description": "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).",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "before": {
                    "description": "Rank it just before this task (id or key).",
                    "type": "string",
                    "maxLength": 60
                  },
                  "after": {
                    "description": "Rank it just after this task (id or key).",
                    "type": "string",
                    "maxLength": 60
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/type": {
      "post": {
        "operationId": "changeTaskType",
        "summary": "Change a task's type",
        "description": "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.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "The task type's id or name."
                  },
                  "status": {
                    "description": "A status of the new workflow (id or name).",
                    "type": "string",
                    "maxLength": 100
                  },
                  "parent": {
                    "description": "For a subtask: its parent (id or key), in the same project.",
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 60
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/archive": {
      "post": {
        "operationId": "archiveTask",
        "summary": "Archive a task",
        "description": "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).",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/restore": {
      "post": {
        "operationId": "restoreTask",
        "summary": "Restore an archived task",
        "description": "Restores an archived task and its subtasks (Restore tasks), as the app does. A task that isn't archived is answered as it is.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/comments": {
      "get": {
        "operationId": "listTaskComments",
        "summary": "List a task's comments",
        "description": "The task's comments the token's person can see, oldest first (sort=-created for newest first), replies with their thread_id. A comment limited to a project role or a group is left out for people outside it, as in the app. Bodies come as projqo's document JSON, or as Markdown with body_format=markdown.",
        "tags": [
          "Comments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "created or -created.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, task, thread_id, author, body, created_at, edited_at, edited_by, visibility, via, reactions, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Comment"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "task": {
                        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                        "key": "WEB-12",
                        "summary": "Fix the sign-in page"
                      },
                      "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "author": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "body": "Checked on the [@Sam Lee](https://projqo.example/o/acme/people/7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f) build: done.\n",
                      "created_at": "2026-12-01T10:15:00.000Z",
                      "edited_at": null,
                      "edited_by": null,
                      "visibility": null,
                      "via": "app",
                      "reactions": [
                        {
                          "emoji": "👍",
                          "count": 2,
                          "mine": false
                        }
                      ],
                      "can": {
                        "reply": true,
                        "edit": true,
                        "delete": true
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addTaskComment",
        "summary": "Add a comment",
        "description": "Adds a comment to the task, or a reply with reply_to, as the token's person: it needs \"Add comments\" in the project, as in the app. The body is projqo's document JSON or Markdown; people mentioned (as mention nodes, or in Markdown as [@Name](<the person's address>)) are told when they can see the comment. Commenting watches the task while the person's auto-watch is on.",
        "tags": [
          "Comments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  },
                  "reply_to": {
                    "description": "Reply to this comment (its thread); replies are one level deep.",
                    "x-id-from": "listTaskComments",
                    "type": "string",
                    "format": "uuid"
                  },
                  "role_id": {
                    "description": "Organisation projects: limit the comment to a project role the person holds (not for replies: a reply keeps its thread's).",
                    "type": "string",
                    "format": "uuid"
                  },
                  "group_id": {
                    "description": "With the organisation's \"Groups and roles\" comment setting: limit it to a group the person is in.",
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                },
                "example": {
                  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "task": {
                    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                    "key": "WEB-12",
                    "summary": "Fix the sign-in page"
                  },
                  "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "body": "Checked on the [@Sam Lee](https://projqo.example/o/acme/people/7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f) build: done.\n",
                  "created_at": "2026-12-01T10:15:00.000Z",
                  "edited_at": null,
                  "edited_by": null,
                  "visibility": null,
                  "via": "app",
                  "reactions": [
                    {
                      "emoji": "👍",
                      "count": 2,
                      "mine": false
                    }
                  ],
                  "can": {
                    "reply": true,
                    "edit": true,
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/comments/{comment}": {
      "get": {
        "operationId": "getTaskComment",
        "summary": "Get a comment",
        "description": "One comment of the task. A comment the person can't see (limited to a role or group they're outside) answers 404, as a missing one.",
        "tags": [
          "Comments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listTaskComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, task, thread_id, author, body, created_at, edited_at, edited_by, visibility, via, reactions, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                },
                "example": {
                  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "task": {
                    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                    "key": "WEB-12",
                    "summary": "Fix the sign-in page"
                  },
                  "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "body": "Checked on the [@Sam Lee](https://projqo.example/o/acme/people/7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f) build: done.\n",
                  "created_at": "2026-12-01T10:15:00.000Z",
                  "edited_at": null,
                  "edited_by": null,
                  "visibility": null,
                  "via": "app",
                  "reactions": [
                    {
                      "emoji": "👍",
                      "count": 2,
                      "mine": false
                    }
                  ],
                  "can": {
                    "reply": true,
                    "edit": true,
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateTaskComment",
        "summary": "Edit a comment",
        "description": "Changes the comment's body: your own with \"Edit own comments\", anyone's with \"Edit all comments\", as in the app. Newly mentioned people are told.",
        "tags": [
          "Comments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listTaskComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  }
                },
                "required": [
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                },
                "example": {
                  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "task": {
                    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                    "key": "WEB-12",
                    "summary": "Fix the sign-in page"
                  },
                  "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "body": "Checked on the [@Sam Lee](https://projqo.example/o/acme/people/7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f) build: done.\n",
                  "created_at": "2026-12-01T10:15:00.000Z",
                  "edited_at": null,
                  "edited_by": null,
                  "visibility": null,
                  "via": "app",
                  "reactions": [
                    {
                      "emoji": "👍",
                      "count": 2,
                      "mine": false
                    }
                  ],
                  "can": {
                    "reply": true,
                    "edit": true,
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteTaskComment",
        "summary": "Delete a comment",
        "description": "Deletes the comment (a thread's first comment goes with its replies): your own with \"Delete own comments\", anyone's with \"Delete all comments\", as in the app.",
        "tags": [
          "Comments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listTaskComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/attachments": {
      "get": {
        "operationId": "listTaskAttachments",
        "summary": "List a task's files",
        "description": "The task's files, newest first: uploaded to the task, and in comments the token's person can see (with comment_id). Read a file's bytes at its content_url.",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, mime, kind, size, created_at, added_by, via, comment_id, content_url, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Attachment"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                      "name": "screenshot.png",
                      "mime": "image/png",
                      "kind": "image",
                      "size": 48213,
                      "created_at": "2026-12-01T10:20:00.000Z",
                      "added_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "via": "upload",
                      "comment_id": null,
                      "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                      "can": {
                        "delete": true
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addTaskAttachments",
        "summary": "Upload files to a task",
        "description": "Uploads 1 to 10 files to the task's Attachments, as multipart/form-data. It needs \"Add files\" in the project, as in the app (a Viewer adds files too). Each file must be within the organisation's file size limit (413 too_large names it); projqo decides each file's type from its name and first bytes and refuses kinds it doesn't keep. One refused file refuses the whole call. The files are streamed to the file store as they arrive: the organisation's file size limit and its storage limit are checked as the bytes come, and the call answers 413 too_large as soon as one is passed (the rest of the body isn't read, and nothing of the call is kept).",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "multipart/form-data with 1 to 10 files, each a part named file (or files) with its file name. Each file must be within the organisation's file size limit.",
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "1 to 10 files, each as a part named file (or files).",
                    "items": {
                      "type": "string",
                      "contentMediaType": "application/octet-stream"
                    }
                  }
                }
              },
              "encoding": {
                "file": {
                  "contentType": "application/octet-stream"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentsAdded"
                },
                "example": {
                  "items": [
                    {
                      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                      "name": "screenshot.png",
                      "mime": "image/png",
                      "kind": "image",
                      "size": 48213,
                      "created_at": "2026-12-01T10:20:00.000Z",
                      "added_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "via": "upload",
                      "comment_id": null,
                      "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                      "can": {
                        "delete": true
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/comments/{comment}/attachments": {
      "post": {
        "operationId": "addCommentAttachments",
        "summary": "Upload files into a comment",
        "description": "Uploads 1 to 10 files into one of your comments, as multipart/form-data: the files are added at the end of the comment (images as images, other files as file cards), as editing it in the app does. It needs \"Add comments\" and \"Add files\" in the project and the right to edit the comment. The files belong to the comment: they are removed by editing it. The files are streamed to the file store as they arrive: the organisation's file size limit and its storage limit are checked as the bytes come, and the call answers 413 too_large as soon as one is passed (the rest of the body isn't read, and nothing of the call is kept).",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listTaskComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "multipart/form-data with 1 to 10 files, each a part named file (or files) with its file name. Each file must be within the organisation's file size limit.",
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "1 to 10 files, each as a part named file (or files).",
                    "items": {
                      "type": "string",
                      "contentMediaType": "application/octet-stream"
                    }
                  }
                }
              },
              "encoding": {
                "file": {
                  "contentType": "application/octet-stream"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentsAdded"
                },
                "example": {
                  "items": [
                    {
                      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                      "name": "screenshot.png",
                      "mime": "image/png",
                      "kind": "image",
                      "size": 48213,
                      "created_at": "2026-12-01T10:20:00.000Z",
                      "added_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "via": "comment",
                      "comment_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                      "can": {
                        "delete": false
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/attachments/{attachment}": {
      "get": {
        "operationId": "getTaskAttachment",
        "summary": "Get a file's details",
        "description": "One of the task's files: its name, type, size, who added it and where.",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "description": "The file's id.",
            "x-id-from": "listTaskAttachments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, mime, kind, size, created_at, added_by, via, comment_id, content_url, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                },
                "example": {
                  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                  "name": "screenshot.png",
                  "mime": "image/png",
                  "kind": "image",
                  "size": 48213,
                  "created_at": "2026-12-01T10:20:00.000Z",
                  "added_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "via": "upload",
                  "comment_id": null,
                  "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                  "can": {
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteTaskAttachment",
        "summary": "Delete a file",
        "description": "Deletes one of the task's files: your own with \"Delete own files\", anyone's with \"Delete anyone's files\", as in the app. A file inside a comment belongs to the comment (409 conflict): edit the comment to take it out.",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "description": "The file's id.",
            "x-id-from": "listTaskAttachments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/attachments/{attachment}/content": {
      "get": {
        "operationId": "downloadTaskAttachment",
        "summary": "Download a file",
        "description": "The file's bytes, with its type and a Content-Disposition naming it (attachment, or inline for images and video unless the organisation says always download), and the app's headers that keep a browser from running anything in it.",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "A task's id, or its key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "description": "The file's id.",
            "x-id-from": "listTaskAttachments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file's bytes.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "application/octet-stream"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/watchers": {
      "get": {
        "operationId": "listTaskWatchers",
        "summary": "List a task's watchers",
        "description": "Who watches the task, with whether you do. Needs View watchers (or Manage watchers) in the task's project; the whole list comes in one page.",
        "tags": [
          "Watchers"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WatcherList"
                },
                "example": {
                  "items": [
                    {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah",
                      "guest": false
                    }
                  ],
                  "next_cursor": null,
                  "watching": true,
                  "can_manage": true
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "watchTask",
        "summary": "Watch a task, or add a watcher",
        "description": "Without person, the token's person watches the task. With person (an id or an email), that person is added; that needs Manage watchers, and the person must be able to open the task. Watching twice is no change.",
        "tags": [
          "Watchers"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "person": {
                    "description": "A person's id or email; leave out (or me) for yourself.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Watching.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/watchers/{person}": {
      "delete": {
        "operationId": "unwatchTask",
        "summary": "Stop watching, or remove a watcher",
        "description": "person is me, an id or an email. Removing someone else needs Manage watchers. A person who wasn't watching is no change.",
        "tags": [
          "Watchers"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "person",
            "in": "path",
            "required": true,
            "description": "me, or a person's id or email.",
            "x-id-from": "listTaskWatchers",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Not watching.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/link-types": {
      "get": {
        "operationId": "listLinkTypes",
        "summary": "List link types",
        "description": "The organisation's link types, each with its outward and inward wording. linking is false when the organisation has switched linking off (existing links stay; new ones are refused). Organisation admins change link types in the app.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/LinkType"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    },
                    "linking": {
                      "type": "boolean",
                      "description": "Whether linking is switched on."
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor",
                    "linking"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
                      "name": "Blocks",
                      "outward": "blocks",
                      "inward": "is blocked by",
                      "key": "blocks"
                    }
                  ],
                  "next_cursor": null,
                  "linking": true
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/links": {
      "get": {
        "operationId": "listTaskLinks",
        "summary": "List a task's links",
        "description": "The task's links to other tasks, oldest first, only those whose other task you can open. Blocking links (dependencies) say blocks or blocked_by; the whole list comes in one page.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TaskLink"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                      "type": {
                        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
                        "name": "Blocks"
                      },
                      "direction": "outward",
                      "phrase": "blocks",
                      "blocking": "blocks",
                      "task": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                        "key": "WEB-14",
                        "summary": "Publish the pricing page",
                        "status": {
                          "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                          "name": "To do",
                          "category": "todo"
                        },
                        "archived": false
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "linkTasks",
        "summary": "Link a task to others",
        "description": "Links the task to one or more tasks (by id or key) with one link type, as Link in the app: you need Link tasks in both tasks' projects, neither may be archived, and two tasks link once per type. One change in the task's History. All or nothing: if one task can't be linked, none is.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "description": "A link type's id, its key (blocks) or its name.",
                    "x-id-from": "listLinkTypes"
                  },
                  "direction": {
                    "default": "outward",
                    "description": "outward (the default): this task → the others (this task blocks them); inward: the others → this task.",
                    "type": "string",
                    "enum": [
                      "outward",
                      "inward"
                    ]
                  },
                  "tasks": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "The other tasks, by id or key: 1 to 50."
                  }
                },
                "required": [
                  "type",
                  "tasks"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TaskLink"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                      "type": {
                        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
                        "name": "Blocks"
                      },
                      "direction": "outward",
                      "phrase": "blocks",
                      "blocking": "blocks",
                      "task": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                        "key": "WEB-14",
                        "summary": "Publish the pricing page",
                        "status": {
                          "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                          "name": "To do",
                          "category": "todo"
                        },
                        "archived": false
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/links/{link}": {
      "patch": {
        "operationId": "updateTaskLink",
        "summary": "Change a link's type or direction",
        "description": "Changes the link's type (or turns it round), as unlinking and linking again in the app: both are written in the task's History, in one change. The link gets a new id.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "link",
            "in": "path",
            "required": true,
            "x-id-from": "listTaskLinks",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "description": "A link type's id, its key (blocks) or its name.",
                    "x-id-from": "listLinkTypes"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "outward",
                      "inward"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskLink"
                },
                "example": {
                  "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                  "type": {
                    "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
                    "name": "Blocks"
                  },
                  "direction": "outward",
                  "phrase": "blocks",
                  "blocking": "blocks",
                  "task": {
                    "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                    "key": "WEB-14",
                    "summary": "Publish the pricing page",
                    "status": {
                      "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                      "name": "To do",
                      "category": "todo"
                    },
                    "archived": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unlinkTasks",
        "summary": "Remove a link",
        "description": "Removes the link between the two tasks, as Unlink in the app (written in History).",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "link",
            "in": "path",
            "required": true,
            "x-id-from": "listTaskLinks",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Unlinked.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/web-links": {
      "get": {
        "operationId": "listTaskWebLinks",
        "summary": "List a task's web links",
        "description": "Web addresses and Docs pages linked to the task, oldest first. A Docs page you can't open shows without its title or address.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebLink"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "5f6a7b8c-9d0e-4f1a-8b2c-3d4e5f6a7b8c",
                      "kind": "web",
                      "text": "Design notes",
                      "url": "https://example.com/notes"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addTaskWebLink",
        "summary": "Add a web link",
        "description": "Adds a web address (http or https, with its text) or a Docs page (by id) to the task. Needs Link tasks.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "description": "An http or https address.",
                    "type": "string",
                    "maxLength": 2000
                  },
                  "text": {
                    "description": "The link's text.",
                    "type": "string",
                    "maxLength": 255
                  },
                  "page": {
                    "description": "A Docs page's id, instead of url.",
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebLink"
                },
                "example": {
                  "id": "5f6a7b8c-9d0e-4f1a-8b2c-3d4e5f6a7b8c",
                  "kind": "web",
                  "text": "Design notes",
                  "url": "https://example.com/notes"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/web-links/{link}": {
      "delete": {
        "operationId": "removeTaskWebLink",
        "summary": "Remove a web link",
        "description": "Removes the web link from the task. Needs Link tasks.",
        "tags": [
          "Links"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "link",
            "in": "path",
            "required": true,
            "x-id-from": "listTaskWebLinks",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Removed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/worklogs": {
      "get": {
        "operationId": "listWorklogs",
        "summary": "List work logs across the organisation",
        "description": "Work logged on every task you can open. Newest first by when the work started, cursor paged. Only work on tasks you can open, and a group-limited log only if you're in its group. Filter by person, start time and updated_since (to keep a copy in step).",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of started, -started (the default: newest first), updated, -updated; ties by id.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "description": "Only work logged by this person (me, an id or an email).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "started_since",
            "in": "query",
            "required": false,
            "description": "Only work started at or after this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "started_before",
            "in": "query",
            "required": false,
            "description": "Only work started before this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, task, author, started_at, seconds, description, visibility_group, created_at, updated_at, edited_by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Worklog"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                      "task": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                        "key": "WEB-14",
                        "summary": "Publish the pricing page"
                      },
                      "author": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "started_at": "2026-12-01T04:30:00.000Z",
                      "seconds": 5400,
                      "description": "Wrote the copy and checked it with sales.\n",
                      "visibility_group": null,
                      "created_at": "2026-12-01T06:05:00.000Z",
                      "updated_at": "2026-12-01T06:05:00.000Z",
                      "edited_by": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/worklogs": {
      "get": {
        "operationId": "listProjectWorklogs",
        "summary": "List work logs in a project",
        "description": "Work logged on the project's tasks. Newest first by when the work started, cursor paged. Only work on tasks you can open, and a group-limited log only if you're in its group. Filter by person, start time and updated_since (to keep a copy in step).",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's id or key.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of started, -started (the default: newest first), updated, -updated; ties by id.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "description": "Only work logged by this person (me, an id or an email).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "started_since",
            "in": "query",
            "required": false,
            "description": "Only work started at or after this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "started_before",
            "in": "query",
            "required": false,
            "description": "Only work started before this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, task, author, started_at, seconds, description, visibility_group, created_at, updated_at, edited_by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Worklog"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                      "task": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                        "key": "WEB-14",
                        "summary": "Publish the pricing page"
                      },
                      "author": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "started_at": "2026-12-01T04:30:00.000Z",
                      "seconds": 5400,
                      "description": "Wrote the copy and checked it with sales.\n",
                      "visibility_group": null,
                      "created_at": "2026-12-01T06:05:00.000Z",
                      "updated_at": "2026-12-01T06:05:00.000Z",
                      "edited_by": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/worklogs": {
      "get": {
        "operationId": "listTaskWorklogs",
        "summary": "List a task's work logs",
        "description": "Work logged on the task. Newest first by when the work started, cursor paged. Only work on tasks you can open, and a group-limited log only if you're in its group. Filter by person, start time and updated_since (to keep a copy in step).",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of started, -started (the default: newest first), updated, -updated; ties by id.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "description": "Only work logged by this person (me, an id or an email).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "started_since",
            "in": "query",
            "required": false,
            "description": "Only work started at or after this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "started_before",
            "in": "query",
            "required": false,
            "description": "Only work started before this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "description": "Only items changed at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, task, author, started_at, seconds, description, visibility_group, created_at, updated_at, edited_by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Worklog"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                      "task": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                        "key": "WEB-14",
                        "summary": "Publish the pricing page"
                      },
                      "author": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "started_at": "2026-12-01T04:30:00.000Z",
                      "seconds": 5400,
                      "description": "Wrote the copy and checked it with sales.\n",
                      "visibility_group": null,
                      "created_at": "2026-12-01T06:05:00.000Z",
                      "updated_at": "2026-12-01T06:05:00.000Z",
                      "edited_by": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "logWork",
        "summary": "Log work on a task",
        "description": "Logs time on the task, as Log work in the app: needs Log work, the task not archived and time tracking switched on. The task's time remaining moves (or takes remaining_seconds), History records it and watchers are told.",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:write"
            ]
          },
          {
            "oauth2": [
              "worklogs:write"
            ]
          }
        ],
        "x-scope": "worklogs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "seconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000,
                    "description": "Time spent, in seconds (1 to 31536000)."
                  },
                  "started_at": {
                    "description": "When the work started (with Z or an offset); now when left out. Not in the future.",
                    "type": "string",
                    "format": "date-time"
                  },
                  "remaining_seconds": {
                    "description": "The task's time remaining afterwards, in seconds. Left out: worked out as the app does (the remaining, or the estimate, less the time logged).",
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 315360000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  },
                  "visibility_group": {
                    "description": "Limit who sees the log to a group you're in (when the organisation's comment visibility is Groups and roles).",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "seconds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Worklog"
                },
                "example": {
                  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                  "task": {
                    "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                    "key": "WEB-14",
                    "summary": "Publish the pricing page"
                  },
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "started_at": "2026-12-01T04:30:00.000Z",
                  "seconds": 5400,
                  "description": "Wrote the copy and checked it with sales.\n",
                  "visibility_group": null,
                  "created_at": "2026-12-01T06:05:00.000Z",
                  "updated_at": "2026-12-01T06:05:00.000Z",
                  "edited_by": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/worklogs/{worklog}": {
      "get": {
        "operationId": "getWorklog",
        "summary": "Get a work log",
        "description": "One work log, if you can open its task (and are among its readers).",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "worklog",
            "in": "path",
            "required": true,
            "x-id-from": "listWorklogs",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, task, author, started_at, seconds, description, visibility_group, created_at, updated_at, edited_by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Worklog"
                },
                "example": {
                  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                  "task": {
                    "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                    "key": "WEB-14",
                    "summary": "Publish the pricing page"
                  },
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "started_at": "2026-12-01T04:30:00.000Z",
                  "seconds": 5400,
                  "description": "Wrote the copy and checked it with sales.\n",
                  "visibility_group": null,
                  "created_at": "2026-12-01T06:05:00.000Z",
                  "updated_at": "2026-12-01T06:05:00.000Z",
                  "edited_by": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateWorklog",
        "summary": "Change a work log",
        "description": "Changes the time, start or description, as editing in the app: needs Edit own work logs (yours) or Edit all work logs. The task's time remaining moves by the difference unless remaining_seconds is given.",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:write"
            ]
          },
          {
            "oauth2": [
              "worklogs:write"
            ]
          }
        ],
        "x-scope": "worklogs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "worklog",
            "in": "path",
            "required": true,
            "x-id-from": "listWorklogs",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "seconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000,
                    "description": "Time spent, in seconds (1 to 31536000)."
                  },
                  "started_at": {
                    "description": "When the work started (with Z or an offset); now when left out. Not in the future.",
                    "type": "string",
                    "format": "date-time"
                  },
                  "remaining_seconds": {
                    "description": "The task's time remaining afterwards, in seconds. Left out: worked out as the app does (the remaining, or the estimate, less the time logged).",
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 315360000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000000
                          },
                          {
                            "$ref": "#/components/schemas/Document"
                          }
                        ],
                        "description": "A document (projqo's document JSON), or Markdown as a string."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Worklog"
                },
                "example": {
                  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                  "task": {
                    "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                    "key": "WEB-14",
                    "summary": "Publish the pricing page"
                  },
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "started_at": "2026-12-01T04:30:00.000Z",
                  "seconds": 5400,
                  "description": "Wrote the copy and checked it with sales.\n",
                  "visibility_group": null,
                  "created_at": "2026-12-01T06:05:00.000Z",
                  "updated_at": "2026-12-01T06:05:00.000Z",
                  "edited_by": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWorklog",
        "summary": "Delete a work log",
        "description": "Deletes the work log, as in the app: needs Delete own work logs (yours) or Delete all work logs. The deleted time goes back onto the task's time remaining; adjust_remaining=leave keeps it, remaining_seconds sets it.",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:write"
            ]
          },
          {
            "oauth2": [
              "worklogs:write"
            ]
          }
        ],
        "x-scope": "worklogs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "worklog",
            "in": "path",
            "required": true,
            "x-id-from": "listWorklogs",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "adjust_remaining",
            "in": "query",
            "required": false,
            "description": "auto (the default) adds the deleted time back; leave keeps it.",
            "schema": {
              "type": "string",
              "enum": [
                "auto",
                "leave"
              ]
            }
          },
          {
            "name": "remaining_seconds",
            "in": "query",
            "required": false,
            "description": "Set the task's time remaining to this, in seconds.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 315360000
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/worklogs/bulk": {
      "post": {
        "operationId": "bulkLogWork",
        "summary": "Log work on many tasks",
        "description": "Logs up to 100 entries, each on its task (by id or key) as Log work does. Each item is done or refused on its own (207, one result per item in order); the call counts one call per 10 items.",
        "tags": [
          "Work logs"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:write"
            ]
          },
          {
            "oauth2": [
              "worklogs:write"
            ]
          }
        ],
        "x-scope": "worklogs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "seconds": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31536000,
                          "description": "Time spent, in seconds (1 to 31536000)."
                        },
                        "started_at": {
                          "description": "When the work started (with Z or an offset); now when left out. Not in the future.",
                          "type": "string",
                          "format": "date-time"
                        },
                        "remaining_seconds": {
                          "description": "The task's time remaining afterwards, in seconds. Left out: worked out as the app does (the remaining, or the estimate, less the time logged).",
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 315360000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 1000000
                            },
                            {
                              "$ref": "#/components/schemas/Document"
                            }
                          ],
                          "description": "A document (projqo's document JSON), or Markdown as a string."
                        },
                        "visibility_group": {
                          "description": "Limit who sees the log to a group you're in (when the organisation's comment visibility is Groups and roles).",
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "task": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        }
                      },
                      "required": [
                        "seconds",
                        "task"
                      ],
                      "additionalProperties": false
                    },
                    "description": "1 to 100 items."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "207": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The item's place in the request, from 0."
                          },
                          "status": {
                            "type": "integer",
                            "description": "The status this item alone would have had."
                          },
                          "item": {
                            "$ref": "#/components/schemas/Worklog"
                          },
                          "error": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "invalid",
                                  "field_required",
                                  "invalid_token",
                                  "not_in_plan",
                                  "insufficient_scope",
                                  "refused",
                                  "api_off",
                                  "read_only",
                                  "suspended",
                                  "not_found",
                                  "method_not_allowed",
                                  "conflict",
                                  "archived",
                                  "transition_not_allowed",
                                  "limit_reached",
                                  "too_large",
                                  "unsupported_media_type",
                                  "idempotency_key_reused",
                                  "rate_limited",
                                  "internal"
                                ],
                                "description": "What went wrong; the errors guide lists each code's cause and fix."
                              },
                              "message": {
                                "type": "string",
                                "description": "In plain words, for a person to read."
                              },
                              "status": {
                                "type": "integer"
                              },
                              "request_id": {
                                "type": "string",
                                "description": "Also in the X-Request-Id header; quote it to support."
                              },
                              "details": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ErrorDetail"
                                }
                              }
                            },
                            "required": [
                              "code",
                              "message",
                              "status",
                              "request_id"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "index",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "results"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "results": [
                    {
                      "index": 0,
                      "status": 201,
                      "item": {
                        "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
                        "task": {
                          "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
                          "key": "WEB-14",
                          "summary": "Publish the pricing page"
                        },
                        "author": {
                          "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                          "name": "Priya Shah"
                        },
                        "started_at": "2026-12-01T04:30:00.000Z",
                        "seconds": 5400,
                        "description": "Wrote the copy and checked it with sales.\n",
                        "visibility_group": null,
                        "created_at": "2026-12-01T06:05:00.000Z",
                        "updated_at": "2026-12-01T06:05:00.000Z",
                        "edited_by": null
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/labels": {
      "get": {
        "operationId": "listLabels",
        "summary": "List labels",
        "description": "The labels in use on tasks you can open, in alphabetical order, each with how many of those tasks carry it. q narrows them to labels containing the text.",
        "tags": [
          "Labels"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Only labels containing this text.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Label"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "name": "pricing",
                      "tasks": 4
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/labels": {
      "get": {
        "operationId": "getTaskLabels",
        "summary": "Get a task's labels",
        "description": "The labels on the task.",
        "tags": [
          "Labels"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskLabels"
                },
                "example": {
                  "labels": [
                    "pricing",
                    "q1"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "changeTaskLabels",
        "summary": "Add and remove a task's labels",
        "description": "Adds and removes labels without reading them first, as editing the Labels field in the app: needs Edit tasks, the Labels field on the task's type, and the task not archived. Written in History; watchers are told.",
        "tags": [
          "Labels"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:write"
            ]
          },
          {
            "oauth2": [
              "tasks:write"
            ]
          }
        ],
        "x-scope": "tasks:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "add": {
                    "description": "Labels to add.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "remove": {
                    "description": "Labels to remove.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskLabels"
                },
                "example": {
                  "labels": [
                    "pricing",
                    "q1"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/tasks/{task}/history": {
      "get": {
        "operationId": "listTaskHistory",
        "summary": "List a task's history",
        "description": "Every change to the task as its History tab shows it: the creation, each field's change with the value before and after, and each status change. Oldest first (sort=-at for newest first), cursor paged.",
        "tags": [
          "History"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "task",
            "in": "path",
            "required": true,
            "description": "The task's id or key (WEB-12).",
            "x-id-from": "listTasks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "at (the default) or -at.",
            "schema": {
              "type": "string",
              "enum": [
                "at",
                "-at"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, kind, field, field_name, how, at, actor, from_status, to_status, old_value, new_value, old_text, new_text. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HistoryEntry"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "9b0c1d2e-3f4a-4b5c-8d6e-7f8a9b0c1d2e",
                      "kind": "change",
                      "field": "priority",
                      "field_name": "Priority",
                      "how": "edit",
                      "at": "2026-12-01T09:12:00.000Z",
                      "actor": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah",
                        "former": false
                      },
                      "old_value": "0e1f2a3b-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
                      "new_value": "1f2a3b4c-5d6e-4f7a-8b9c-0d1e2f3a4b5c",
                      "old_text": "Medium",
                      "new_text": "High"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/fields": {
      "get": {
        "operationId": "listFields",
        "summary": "List fields",
        "description": "Every field of the organisation's tasks the token's person can see: projqo's own fields and custom ones, each with its key (cf_<key> for a custom field), name and type. Which fields a project's task types have, and their options, are in the project's fields calls.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Field"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "key": "cf_customer_tier",
                      "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                      "name": "Customer tier",
                      "type": "select",
                      "custom": true,
                      "description": "The customer's support plan.",
                      "writable": true,
                      "project": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/task-types": {
      "get": {
        "operationId": "listProjectTaskTypes",
        "summary": "List a project's task types",
        "description": "The task types of the project's type scheme, in its order (Epic, Story, Task, Bug, Subtask and the organisation's own), each with its level, its workflow and whether the token's person may create tasks of it.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TaskType"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                      "name": "Bug",
                      "icon": "bug",
                      "level": 0,
                      "description": "A problem that stops something working.",
                      "default": false,
                      "can_create": true,
                      "workflow": {
                        "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
                        "name": "Software workflow"
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/fields": {
      "get": {
        "operationId": "listProjectFields",
        "summary": "List a project's fields",
        "description": "Every field the project's tasks have, system and custom, each with its key and type and, per task type, whether it is required and on the create screen. A project with its own field scheme (or a Team project's own fields) answers its own. The options of a list field are in the type's fields call.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectField"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "key": "cf_customer_tier",
                      "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                      "name": "Customer tier",
                      "type": "select",
                      "custom": true,
                      "description": "The customer's support plan.",
                      "writable": true,
                      "task_types": [
                        {
                          "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                          "name": "Bug",
                          "required": true,
                          "on_create_screen": true
                        }
                      ]
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/task-types/{type}/fields": {
      "get": {
        "operationId": "listTaskTypeFields",
        "summary": "List a task type's fields",
        "description": "The fields a task of this type has in the project, in the order the project arranges them: each with its key, type, whether it is required and on the create screen, its default, and a list field's options in this project and type. Use the keys and option ids in POST /projects/{project}/tasks and PATCH /tasks/{task}.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "type",
            "in": "path",
            "required": true,
            "description": "The task type's id or its name (Bug).",
            "x-id-from": "listProjectTaskTypes",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TaskTypeField"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "key": "cf_customer_tier",
                      "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                      "name": "Customer tier",
                      "type": "select",
                      "custom": true,
                      "description": "The customer's support plan.",
                      "writable": true,
                      "required": true,
                      "on_create_screen": true,
                      "default_value": null,
                      "options": [
                        {
                          "id": "3f2a9c1e-7b4d-4e8a-9c2f-1a2b3c4d5e6f",
                          "value": "Gold",
                          "parent_id": null,
                          "disabled": false
                        }
                      ],
                      "config": {}
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/statuses": {
      "get": {
        "operationId": "listStatuses",
        "summary": "List statuses",
        "description": "The statuses of the organisation's workflows and of the Team projects the token's person can open (as Advanced search offers them), each with its category (todo, in_progress, done) and colour.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Status"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                      "name": "In progress",
                      "category": "in_progress",
                      "colour": "blue",
                      "icon": "circle_half",
                      "description": "Someone is working on it.",
                      "project": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/statuses": {
      "get": {
        "operationId": "listProjectStatuses",
        "summary": "List a project's statuses",
        "description": "The statuses the project's tasks can be in: those of its task types' workflows, in workflow order, each once.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Status"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                      "name": "In progress",
                      "category": "in_progress",
                      "colour": "blue",
                      "icon": "circle_half",
                      "description": "Someone is working on it.",
                      "project": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/workflows": {
      "get": {
        "operationId": "listProjectWorkflows",
        "summary": "List a project's workflows",
        "description": "The workflows the project's task types use, each with its statuses and transitions, as a task's View workflow shows them. Needs View workflow in the project (403 refused without it). The transitions a task may run now, after its rules, are in GET /tasks/{task}/transitions.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Workflow"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
                      "name": "Software workflow",
                      "description": "",
                      "kind": "organisation",
                      "task_types": [
                        {
                          "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                          "name": "Bug"
                        }
                      ],
                      "statuses": [
                        {
                          "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                          "name": "In progress",
                          "category": "in_progress",
                          "colour": "blue"
                        }
                      ],
                      "transitions": [
                        {
                          "id": "6f7a8b9c-0d1e-4f2a-9b3c-4d5e6f7a8b9c",
                          "name": "Start work",
                          "to": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                          "from": [],
                          "from_any": true,
                          "initial": false,
                          "screen": false
                        }
                      ]
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/priorities": {
      "get": {
        "operationId": "listPriorities",
        "summary": "List priorities",
        "description": "Every priority of the organisation, highest first. A project's tasks take the priorities of its scheme (the project's priorities call).",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Priority"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
                      "name": "High",
                      "icon": "arrow_up",
                      "colour": "#d04437"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/projects/{project}/priorities": {
      "get": {
        "operationId": "listProjectPriorities",
        "summary": "List a project's priorities",
        "description": "The priorities the project's tasks may have (its priority scheme's), highest first, with the one a new task gets.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project's key (WEB), an old key, or its id.",
            "x-id-from": "listProjects",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectPriority"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
                      "name": "High",
                      "icon": "arrow_up",
                      "colour": "#d04437",
                      "default": false
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/resolutions": {
      "get": {
        "operationId": "listResolutions",
        "summary": "List resolutions",
        "description": "The organisation's resolutions, in its order. A task's resolution is set by the workflow when it is closed (a transition's screen or step), as in the app.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Resolution"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
                      "name": "Done"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/time-tracking": {
      "get": {
        "operationId": "getTimeTracking",
        "summary": "Get the time tracking settings",
        "description": "The organisation's time tracking: whether it is on (when off, new work logs are refused), the hours in a working day and the days in a working week (what a day and a week of an estimate mean), how times are shown and the unit a bare number means in the app. Work logs and estimates in the API are always seconds and minutes. Organisation admins change these in the app.",
        "tags": [
          "Metadata"
        ],
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeTracking"
                },
                "example": {
                  "enabled": true,
                  "hours_per_day": 8,
                  "days_per_week": 5,
                  "format": "pretty",
                  "unit": "minute",
                  "copy_comment": true
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards": {
      "get": {
        "operationId": "listBoards",
        "summary": "List boards",
        "description": "The boards the token's person can see (as the boards directory lists them), outside archived and trashed projects: by name, project or administrator.",
        "tags": [
          "Boards"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Part of the board's name.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "project",
            "in": "query",
            "required": false,
            "description": "Only this project's boards (its key or id).",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "admin",
            "in": "query",
            "required": false,
            "description": "Only boards this person administers (their id).",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "name (the default) or -name.",
            "schema": {
              "type": "string",
              "maxLength": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoardSummary"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                      "name": "WEB board",
                      "kind": "scrum",
                      "team_board": false,
                      "project": {
                        "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                        "key": "WEB",
                        "name": "Website"
                      },
                      "owner": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}": {
      "get": {
        "operationId": "getBoard",
        "summary": "Get a board",
        "description": "A board with its saved filter and sub-filter, custom filters, the swimlanes it can show, and what the token's person may do on it.",
        "tags": [
          "Boards"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Board"
                },
                "example": {
                  "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                  "name": "WEB board",
                  "kind": "scrum",
                  "team_board": false,
                  "project": {
                    "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                    "key": "WEB",
                    "name": "Website"
                  },
                  "owner": null,
                  "filter": {
                    "id": "0f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                    "name": "Filter for WEB board",
                    "query": "project = WEB ORDER BY Rank ASC",
                    "problem": null
                  },
                  "sub_filter": "fixVersion in unreleasedVersions() OR fixVersion is EMPTY",
                  "ranked": true,
                  "estimation": "story_points",
                  "group_by": "none",
                  "group_by_options": [
                    {
                      "key": "assignee",
                      "label": "Assignees"
                    }
                  ],
                  "custom_filters": [
                    {
                      "id": "1e2d3c4b-5a69-4877-8665-4b3c2d1e0f6a",
                      "name": "Only my tasks",
                      "query": "assignee = currentUser()",
                      "description": ""
                    }
                  ],
                  "rights": {
                    "administer": false,
                    "manage_sprints": true,
                    "parallel_sprints": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/columns": {
      "get": {
        "operationId": "listBoardColumns",
        "summary": "List a board's columns",
        "description": "The board's columns left to right, each with the statuses it shows. A task is in the column holding its status; unmapped lists the board's projects' statuses no column holds (their tasks aren't on the board).",
        "tags": [
          "Boards"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoardColumn"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    },
                    "unmapped": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "todo",
                              "in_progress",
                              "done"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "category"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor",
                    "unmapped"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "4b5c6d7e-8f9a-4b0c-8d1e-2f3a4b5c6d7e",
                      "name": "In progress",
                      "position": 1,
                      "min": null,
                      "max": 5,
                      "kanban_backlog": false,
                      "statuses": [
                        {
                          "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                          "name": "In progress",
                          "category": "in_progress"
                        }
                      ]
                    }
                  ],
                  "next_cursor": null,
                  "unmapped": []
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/tasks": {
      "get": {
        "operationId": "listBoardTasks",
        "summary": "List the tasks on a board",
        "description": "The board's tasks through its filter and sub-filter (a scrum board: its active sprints), in board order, as the board page shows them to the token's person: per column, and per swimlane with group_by, the count and the first 50 cards. Counts are over every task the person can open. Read more of a column with GET /boards/{board}/columns/{column}/tasks and the same parameters.",
        "tags": [
          "Boards"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "More conditions in the query language, as the board's filter panel adds them (the board's own filter always applies).",
            "schema": {
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "custom_filters",
            "in": "query",
            "required": false,
            "description": "Custom filter ids, comma-separated; all must match. Without it, the board's saved view's; empty for none.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "people",
            "in": "query",
            "required": false,
            "description": "People's ids (or unassigned), comma-separated: tasks of any of them. Without it, the board's saved view's.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Part of a summary, or a task key (as the board's search box).",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "description": "Swimlanes: none, or one of the board's group_by_options (GET /boards/{board}). Without it, the board's saved view's.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "sprints",
            "in": "query",
            "required": false,
            "description": "A scrum board with parallel sprints: the active sprints to show (ids, comma-separated); every active sprint without it.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardTasks"
                },
                "example": {
                  "total": 1,
                  "ranked": true,
                  "columns": [
                    {
                      "id": "4b5c6d7e-8f9a-4b0c-8d1e-2f3a4b5c6d7e",
                      "name": "In progress",
                      "total": 1,
                      "limit": null,
                      "items": [
                        {
                          "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                          "key": "WEB-12",
                          "summary": "The sign-in button does nothing on Safari",
                          "rank": "0|i0000g:",
                          "column": "4b5c6d7e-8f9a-4b0c-8d1e-2f3a4b5c6d7e",
                          "type": {
                            "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                            "name": "Bug",
                            "level": 0
                          },
                          "status": {
                            "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                            "name": "In progress",
                            "category": "in_progress"
                          },
                          "priority": {
                            "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
                            "name": "High"
                          },
                          "assignee": {
                            "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                            "name": "Priya Shah"
                          },
                          "parent": null,
                          "labels": [
                            "safari"
                          ],
                          "due": "2026-12-15",
                          "overdue": false,
                          "estimate": 3,
                          "subtasks": null,
                          "flagged": false,
                          "done": false
                        }
                      ],
                      "next_cursor": null
                    }
                  ],
                  "lanes": null,
                  "broken_filters": [],
                  "empty_reason": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/columns/{column}/tasks": {
      "get": {
        "operationId": "listBoardColumnTasks",
        "summary": "List a board column's tasks",
        "description": "One column's tasks (in one swimlane with lane=) in board order, 50 a page: the first page without a cursor, then each next_cursor. Give the same view parameters as the tasks call.",
        "tags": [
          "Boards"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "column",
            "in": "path",
            "required": true,
            "x-id-from": "listBoardColumns",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "More conditions in the query language, as the board's filter panel adds them (the board's own filter always applies).",
            "schema": {
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "custom_filters",
            "in": "query",
            "required": false,
            "description": "Custom filter ids, comma-separated; all must match. Without it, the board's saved view's; empty for none.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "people",
            "in": "query",
            "required": false,
            "description": "People's ids (or unassigned), comma-separated: tasks of any of them. Without it, the board's saved view's.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Part of a summary, or a task key (as the board's search box).",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "description": "Swimlanes: none, or one of the board's group_by_options (GET /boards/{board}). Without it, the board's saved view's.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "sprints",
            "in": "query",
            "required": false,
            "description": "A scrum board with parallel sprints: the active sprints to show (ids, comma-separated); every active sprint without it.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "lane",
            "in": "query",
            "required": false,
            "description": "With group_by: the swimlane's key (\"\" for the catch-all lane).",
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoardCard"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "key": "WEB-12",
                      "summary": "The sign-in button does nothing on Safari",
                      "rank": "0|i0000g:",
                      "column": "4b5c6d7e-8f9a-4b0c-8d1e-2f3a4b5c6d7e",
                      "type": {
                        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                        "name": "Bug",
                        "level": 0
                      },
                      "status": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                        "name": "In progress",
                        "category": "in_progress"
                      },
                      "priority": {
                        "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
                        "name": "High"
                      },
                      "assignee": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "parent": null,
                      "labels": [
                        "safari"
                      ],
                      "due": "2026-12-15",
                      "overdue": false,
                      "estimate": 3,
                      "subtasks": null,
                      "flagged": false,
                      "done": false
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/rank": {
      "post": {
        "operationId": "rankBoardTask",
        "summary": "Rank a card on a board",
        "description": "Moves a card up or down its column, as dragging it on the board does: just before or after another card, or to the top or bottom of its column, in the one rank the board, backlog and lists share. The board must be ordered by rank (409 otherwise); the task needs Edit tasks. Its History says Ranked higher or Ranked lower.",
        "tags": [
          "Boards"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "task": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "description": "The task to move (id or key)."
                  },
                  "before": {
                    "description": "Just before this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "after": {
                    "description": "Just after this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "at": {
                    "description": "The top or the bottom of the column or section.",
                    "type": "string",
                    "enum": [
                      "top",
                      "bottom"
                    ]
                  }
                },
                "required": [
                  "task"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RankedTasks"
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "key": "WEB-12",
                      "rank": "0|i0000h:",
                      "sprint": {
                        "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                        "name": "Sprint 14"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/backlog": {
      "get": {
        "operationId": "getBacklog",
        "summary": "Get a board's backlog",
        "description": "The backlog as its page shows it to the token's person: a scrum board's active and future sprints and then the backlog (tasks in no open sprint and not done), a kanban board's board and backlog sections; each with its counts and the first 100 tasks above subtask level in rank order. Read more of a section with its section call. The filters are the backlog toolbar's.",
        "tags": [
          "Backlog"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "More conditions in the query language, as the board's filter panel adds them (the board's own filter always applies).",
            "schema": {
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "custom_filters",
            "in": "query",
            "required": false,
            "description": "Custom filter ids, comma-separated; all must match. Without it, the board's saved view's; empty for none.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "people",
            "in": "query",
            "required": false,
            "description": "People's ids (or unassigned), comma-separated: tasks of any of them. Without it, the board's saved view's.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Part of a summary, or a task key (as the board's search box).",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Backlog"
                },
                "example": {
                  "kind": "scrum",
                  "filtered": false,
                  "estimation": {
                    "method": "story_points",
                    "label": "Story points"
                  },
                  "sections": [
                    {
                      "id": "backlog",
                      "kind": "backlog",
                      "sprint": null,
                      "total": 1,
                      "shown": 1,
                      "counts": {
                        "todo": 1,
                        "in_progress": 0,
                        "done": 0
                      },
                      "items": [
                        {
                          "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                          "key": "WEB-12",
                          "summary": "The sign-in button does nothing on Safari",
                          "rank": "0|i0000g:",
                          "column": "4b5c6d7e-8f9a-4b0c-8d1e-2f3a4b5c6d7e",
                          "type": {
                            "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                            "name": "Bug",
                            "level": 0
                          },
                          "status": {
                            "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                            "name": "In progress",
                            "category": "in_progress"
                          },
                          "priority": {
                            "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
                            "name": "High"
                          },
                          "assignee": {
                            "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                            "name": "Priya Shah"
                          },
                          "parent": null,
                          "labels": [
                            "safari"
                          ],
                          "due": "2026-12-15",
                          "overdue": false,
                          "estimate": 3,
                          "subtasks": null,
                          "flagged": false,
                          "done": false
                        }
                      ],
                      "next_cursor": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/backlog/sections/{section}/tasks": {
      "get": {
        "operationId": "listBacklogSectionTasks",
        "summary": "List a backlog section's tasks",
        "description": "One section of the backlog (a sprint by its id, backlog, or a kanban board's board) in rank order, 100 a page: the first page without a cursor, then each next_cursor. Give the same filters as the backlog call.",
        "tags": [
          "Backlog"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "A sprint's id, backlog, or board.",
            "x-id-from": "getBacklog",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "More conditions in the query language, as the board's filter panel adds them (the board's own filter always applies).",
            "schema": {
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "custom_filters",
            "in": "query",
            "required": false,
            "description": "Custom filter ids, comma-separated; all must match. Without it, the board's saved view's; empty for none.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "people",
            "in": "query",
            "required": false,
            "description": "People's ids (or unassigned), comma-separated: tasks of any of them. Without it, the board's saved view's.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Part of a summary, or a task key (as the board's search box).",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoardCard"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "key": "WEB-12",
                      "summary": "The sign-in button does nothing on Safari",
                      "rank": "0|i0000g:",
                      "column": "4b5c6d7e-8f9a-4b0c-8d1e-2f3a4b5c6d7e",
                      "type": {
                        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                        "name": "Bug",
                        "level": 0
                      },
                      "status": {
                        "id": "3d4e5f6a-7b8c-4d9e-8f0a-2b3c4d5e6f7a",
                        "name": "In progress",
                        "category": "in_progress"
                      },
                      "priority": {
                        "id": "4e5f6a7b-8c9d-4e0f-9a1b-3c4d5e6f7a8b",
                        "name": "High"
                      },
                      "assignee": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "parent": null,
                      "labels": [
                        "safari"
                      ],
                      "due": "2026-12-15",
                      "overdue": false,
                      "estimate": 3,
                      "subtasks": null,
                      "flagged": false,
                      "done": false
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/backlog/rank": {
      "post": {
        "operationId": "rankBacklogTasks",
        "summary": "Rank tasks in the backlog",
        "description": "Moves tasks (one or several, in the order given) within their backlog section, as dragging them on the backlog does: just before or after a task, or to the top or bottom of their section, in the one rank. Needs Edit tasks on each.",
        "tags": [
          "Backlog"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tasks": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60,
                      "description": "A task's id, or its key (WEB-12)."
                    },
                    "description": "The tasks (ids or keys), in the order they land."
                  },
                  "before": {
                    "description": "Just before this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "after": {
                    "description": "Just after this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "at": {
                    "description": "The top or the bottom of the column or section.",
                    "type": "string",
                    "enum": [
                      "top",
                      "bottom"
                    ]
                  }
                },
                "required": [
                  "tasks"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RankedTasks"
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "key": "WEB-12",
                      "rank": "0|i0000h:",
                      "sprint": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/backlog/tasks": {
      "post": {
        "operationId": "moveTasksToBacklog",
        "summary": "Move tasks to the backlog",
        "description": "Takes tasks out of their sprint into the backlog, as dragging them there does, optionally at a place (before or after a task, or the top or bottom of the backlog). Needs Edit tasks on each; a task leaving an active sprint is recorded in the sprint's report.",
        "tags": [
          "Backlog"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tasks": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60,
                      "description": "A task's id, or its key (WEB-12)."
                    },
                    "description": "The tasks (ids or keys), in the order they land."
                  },
                  "before": {
                    "description": "Just before this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "after": {
                    "description": "Just after this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "at": {
                    "description": "The top or the bottom of the column or section.",
                    "type": "string",
                    "enum": [
                      "top",
                      "bottom"
                    ]
                  }
                },
                "required": [
                  "tasks"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RankedTasks"
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "key": "WEB-12",
                      "rank": "0|i0000h:",
                      "sprint": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/boards/{board}/sprints": {
      "get": {
        "operationId": "listBoardSprints",
        "summary": "List a board's sprints",
        "description": "The board's sprints: open ones (active, then future in their order) by default; closed (newest first) or all with state. With what the token's person may do: can_manage (create, change, start, complete) and whether several sprints may be active at once.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "open (active and future, the default), closed or all.",
            "schema": {
              "default": "open",
              "type": "string",
              "enum": [
                "open",
                "closed",
                "all"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sprint"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    },
                    "can_manage": {
                      "type": "boolean"
                    },
                    "parallel": {
                      "type": "boolean",
                      "description": "Several sprints may be active at once."
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor",
                    "can_manage",
                    "parallel"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                      "board": {
                        "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                        "name": "WEB board"
                      },
                      "name": "WEB Sprint 14",
                      "goal": "Checkout works on every browser.",
                      "state": "active",
                      "position": "a3",
                      "duration": "2w",
                      "start": "2026-12-01T09:00:00.000Z",
                      "end": "2026-12-15T09:00:00.000Z",
                      "planned_start": "2026-12-01T09:00:00.000Z",
                      "planned_end": "2026-12-15T09:00:00.000Z",
                      "auto_start": false,
                      "auto_complete": false,
                      "started_at": "2026-12-01T09:12:00.000Z",
                      "completed_at": null,
                      "tasks": 9
                    }
                  ],
                  "next_cursor": null,
                  "can_manage": true,
                  "parallel": false
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSprint",
        "summary": "Plan a sprint",
        "description": "Adds a future sprint at the end of the board's sprints, as the backlog's Create sprint does: without a name, the next by the board's naming (WEB Sprint 8); without dates, after the last sprint with its length. Needs Manage sprints.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "board",
            "in": "path",
            "required": true,
            "description": "The board's id.",
            "x-id-from": "listBoards",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 1020,
                    "description": "1 to 255 characters."
                  },
                  "goal": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "At most 1000 characters."
                  },
                  "duration": {
                    "type": "string",
                    "enum": [
                      "1w",
                      "2w",
                      "3w",
                      "4w",
                      "custom"
                    ],
                    "description": "1w, 2w, 3w or 4w (the end follows the start), or custom."
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "With duration custom; else worked out."
                  },
                  "auto_start": {
                    "type": "boolean",
                    "description": "A future sprint starts by itself at its start."
                  },
                  "auto_complete": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sprint"
                },
                "example": {
                  "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                  "board": {
                    "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                    "name": "WEB board"
                  },
                  "name": "WEB Sprint 14",
                  "goal": "Checkout works on every browser.",
                  "state": "future",
                  "position": "a3",
                  "duration": "2w",
                  "start": "2026-12-01T09:00:00.000Z",
                  "end": "2026-12-15T09:00:00.000Z",
                  "planned_start": null,
                  "planned_end": null,
                  "auto_start": false,
                  "auto_complete": false,
                  "started_at": null,
                  "completed_at": null,
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/sprints/{sprint}": {
      "get": {
        "operationId": "getSprint",
        "summary": "Get a sprint",
        "description": "One sprint, with the number of its tasks the token's person can open.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sprint",
            "in": "path",
            "required": true,
            "description": "The sprint's id.",
            "x-id-from": "listBoardSprints",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sprint"
                },
                "example": {
                  "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                  "board": {
                    "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                    "name": "WEB board"
                  },
                  "name": "WEB Sprint 14",
                  "goal": "Checkout works on every browser.",
                  "state": "active",
                  "position": "a3",
                  "duration": "2w",
                  "start": "2026-12-01T09:00:00.000Z",
                  "end": "2026-12-15T09:00:00.000Z",
                  "planned_start": "2026-12-01T09:00:00.000Z",
                  "planned_end": "2026-12-15T09:00:00.000Z",
                  "auto_start": false,
                  "auto_complete": false,
                  "started_at": "2026-12-01T09:12:00.000Z",
                  "completed_at": null,
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateSprint",
        "summary": "Change a sprint",
        "description": "Changes the fields given, as the sprint's Edit dialog does: an active sprint keeps a start and an end; a fixed duration works the end out from the start; a completed sprint can't change (409). Needs Manage sprints.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sprint",
            "in": "path",
            "required": true,
            "description": "The sprint's id.",
            "x-id-from": "listBoardSprints",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 1020,
                    "description": "1 to 255 characters."
                  },
                  "goal": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "At most 1000 characters."
                  },
                  "duration": {
                    "type": "string",
                    "enum": [
                      "1w",
                      "2w",
                      "3w",
                      "4w",
                      "custom"
                    ],
                    "description": "1w, 2w, 3w or 4w (the end follows the start), or custom."
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "With duration custom; else worked out."
                  },
                  "auto_start": {
                    "type": "boolean",
                    "description": "A future sprint starts by itself at its start."
                  },
                  "auto_complete": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sprint"
                },
                "example": {
                  "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                  "board": {
                    "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                    "name": "WEB board"
                  },
                  "name": "WEB Sprint 14",
                  "goal": "Checkout works on every browser.",
                  "state": "active",
                  "position": "a3",
                  "duration": "2w",
                  "start": "2026-12-01T09:00:00.000Z",
                  "end": "2026-12-15T09:00:00.000Z",
                  "planned_start": "2026-12-01T09:00:00.000Z",
                  "planned_end": "2026-12-15T09:00:00.000Z",
                  "auto_start": false,
                  "auto_complete": false,
                  "started_at": "2026-12-01T09:12:00.000Z",
                  "completed_at": null,
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/sprints/{sprint}/start": {
      "post": {
        "operationId": "startSprint",
        "summary": "Start a sprint",
        "description": "Starts a future sprint, as the backlog's Start sprint dialog does: with its start (and its end, or a duration), optionally a new name and goal. A sprint needs tasks; an Organisation project's board runs one sprint at a time unless parallel sprints are on (409 conflict with the app's words). Needs Manage sprints.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sprint",
            "in": "path",
            "required": true,
            "description": "The sprint's id.",
            "x-id-from": "listBoardSprints",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it starts (with Z or an offset)."
                  },
                  "end": {
                    "description": "With duration custom.",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "duration": {
                    "type": "string",
                    "enum": [
                      "1w",
                      "2w",
                      "3w",
                      "4w",
                      "custom"
                    ],
                    "description": "1w, 2w, 3w or 4w (the end follows the start), or custom."
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 1020,
                    "description": "1 to 255 characters."
                  },
                  "goal": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "At most 1000 characters."
                  },
                  "auto_complete": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "start"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sprint"
                },
                "example": {
                  "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                  "board": {
                    "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                    "name": "WEB board"
                  },
                  "name": "WEB Sprint 14",
                  "goal": "Checkout works on every browser.",
                  "state": "active",
                  "position": "a3",
                  "duration": "2w",
                  "start": "2026-12-01T09:00:00.000Z",
                  "end": "2026-12-15T09:00:00.000Z",
                  "planned_start": "2026-12-01T09:00:00.000Z",
                  "planned_end": "2026-12-15T09:00:00.000Z",
                  "auto_start": false,
                  "auto_complete": false,
                  "started_at": "2026-12-01T09:12:00.000Z",
                  "completed_at": null,
                  "tasks": 9
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/sprints/{sprint}/completion": {
      "get": {
        "operationId": "getSprintCompletion",
        "summary": "What completing a sprint would do",
        "description": "As the Complete sprint dialog shows it: how many of its tasks are completed (in the board's last column) and open, as the token's person can see them, the future sprints the open tasks can go to, and where they go by default.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sprint",
            "in": "path",
            "required": true,
            "description": "The sprint's id.",
            "x-id-from": "listBoardSprints",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintCompletion"
                },
                "example": {
                  "completed": 7,
                  "open": 2,
                  "destinations": [
                    {
                      "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
                      "name": "WEB Sprint 15"
                    }
                  ],
                  "default": {
                    "to": "sprint",
                    "sprint": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d"
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/sprints/{sprint}/complete": {
      "post": {
        "operationId": "completeSprint",
        "summary": "Complete a sprint",
        "description": "Completes an active sprint, as the Complete sprint dialog does. Its open tasks (every one, also those the token's person can't open) go to a future sprint of the board (to sprint, with sprint), a new sprint (to new) or the backlog (to backlog, at its end). Completed tasks are those in the board's last column. Needs Manage sprints.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sprint",
            "in": "path",
            "required": true,
            "description": "The sprint's id.",
            "x-id-from": "listBoardSprints",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "to": {
                    "type": "string",
                    "enum": [
                      "sprint",
                      "new",
                      "backlog"
                    ],
                    "description": "Where the open tasks go: sprint, new or backlog."
                  },
                  "sprint": {
                    "description": "With to sprint: a future sprint of the same board.",
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "to"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintCompleted"
                },
                "example": {
                  "sprint": {
                    "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                    "board": {
                      "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
                      "name": "WEB board"
                    },
                    "name": "WEB Sprint 14",
                    "goal": "Checkout works on every browser.",
                    "state": "closed",
                    "position": "a3",
                    "duration": "2w",
                    "start": "2026-12-01T09:00:00.000Z",
                    "end": "2026-12-15T09:00:00.000Z",
                    "planned_start": "2026-12-01T09:00:00.000Z",
                    "planned_end": "2026-12-15T09:00:00.000Z",
                    "auto_start": false,
                    "auto_complete": false,
                    "started_at": "2026-12-01T09:12:00.000Z",
                    "completed_at": "2026-12-15T09:05:00.000Z",
                    "tasks": 9
                  },
                  "completed": 7,
                  "open": 2,
                  "to": "sprint",
                  "moved_to": {
                    "id": "6a7b8c9d-0e1f-4a2b-9c3d-5e6f7a8b9c0d",
                    "name": "WEB Sprint 15"
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/sprints/{sprint}/tasks": {
      "post": {
        "operationId": "moveTasksToSprint",
        "summary": "Move tasks into a sprint",
        "description": "Moves tasks into an active or future sprint of the board, as dragging them there on the backlog does, optionally at a place (before or after a task, or the top or bottom of the sprint). Needs Edit tasks on each; a completed sprint takes none (409). A task joining an active sprint after its start is marked so in the sprint's report. Take tasks out with POST /boards/{board}/backlog/tasks.",
        "tags": [
          "Sprints"
        ],
        "security": [
          {
            "personalToken": [
              "boards:write"
            ]
          },
          {
            "oauth2": [
              "boards:write"
            ]
          }
        ],
        "x-scope": "boards:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sprint",
            "in": "path",
            "required": true,
            "description": "The sprint's id.",
            "x-id-from": "listBoardSprints",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tasks": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60,
                      "description": "A task's id, or its key (WEB-12)."
                    },
                    "description": "The tasks (ids or keys), in the order they land."
                  },
                  "before": {
                    "description": "Just before this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "after": {
                    "description": "Just after this task (id or key).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "at": {
                    "description": "The top or the bottom of the column or section.",
                    "type": "string",
                    "enum": [
                      "top",
                      "bottom"
                    ]
                  }
                },
                "required": [
                  "tasks"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RankedTasks"
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "key": "WEB-12",
                      "rank": "0|i0000h:",
                      "sprint": {
                        "id": "5f6a7b8c-9d0e-4f1a-8b2c-4d5e6f7a8b9c",
                        "name": "WEB Sprint 14"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces": {
      "get": {
        "operationId": "listSpaces",
        "summary": "List spaces",
        "description": "The Docs spaces the token's person can open, by name, as the spaces directory lists them: filter (all current spaces, the ones they watch or starred, team or personal spaces, archived ones, or trashed ones for people who can restore them), q (words in the name or key) and category.",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "all (the default) and the others.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "watching",
                "starred",
                "team",
                "personal",
                "archived",
                "trashed"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, key, name, icon, personal, categories, owner, status, status_at, starred, watching. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SpaceSummary"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                      "key": "HANDBOOK",
                      "name": "Handbook",
                      "icon": "📘",
                      "personal": false,
                      "categories": [
                        "team"
                      ],
                      "owner": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "status": "current",
                      "status_at": null,
                      "starred": true,
                      "watching": false
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSpace",
        "summary": "Create a space",
        "description": "Creates a Docs space as the token's person, as the app's Create space does: it needs the organisation's \"Create spaces\", and the person gets the creator's role the organisation set (Admin by default). Without a key, one is made from the name. The space starts with its home page and the purpose's features unless features are given.",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "key": {
                    "description": "2 to 10 letters or digits, starting with a letter.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 10
                  },
                  "icon": {
                    "description": "An emoji; 📘 by default.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 16
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "collaboration",
                      "knowledge_base",
                      "custom"
                    ]
                  },
                  "features": {
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "blogs",
                        "calendars",
                        "live_docs",
                        "databases",
                        "smart_links",
                        "folders",
                        "shortcuts"
                      ]
                    }
                  },
                  "only_me": {
                    "description": "Organisation admins: give access to no one else (the default groups aren't added).",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "purpose"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "key": "HANDBOOK",
                  "name": "Handbook",
                  "icon": "📘",
                  "purpose": "knowledge_base",
                  "personal": false,
                  "description": "How we work.",
                  "categories": [
                    "team"
                  ],
                  "home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "status": "current",
                  "status_at": null,
                  "features": [
                    "blogs",
                    "folders",
                    "live_docs"
                  ],
                  "created_at": "2026-11-19T09:00:00.000Z",
                  "permissions": [
                    "add_comments",
                    "create_content",
                    "edit_content",
                    "view_space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}": {
      "get": {
        "operationId": "getSpace",
        "summary": "Get a space",
        "description": "One space, by its key (an old key still finds it) or id, with what the token's person may do in it. A space they can't open answers 404, as a missing one.",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, key, name, icon, purpose, personal, description, categories, home_page_id, owner, status, status_at, features, created_at, permissions. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "key": "HANDBOOK",
                  "name": "Handbook",
                  "icon": "📘",
                  "purpose": "knowledge_base",
                  "personal": false,
                  "description": "How we work.",
                  "categories": [
                    "team"
                  ],
                  "home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "status": "current",
                  "status_at": null,
                  "features": [
                    "blogs",
                    "folders",
                    "live_docs"
                  ],
                  "created_at": "2026-11-19T09:00:00.000Z",
                  "permissions": [
                    "add_comments",
                    "create_content",
                    "edit_content",
                    "view_space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateSpace",
        "summary": "Change a space",
        "description": "Changes the space's details, as its Space details settings do: it needs \"Manage space features\" in the space. A new key keeps the old one as an alias; the owner must be someone with access to the space; the home page must be a page of the space. Key and owner changes are in the audit log.",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "icon": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 16
                  },
                  "key": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 10
                  },
                  "owner": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320,
                    "description": "A person's id, or their email address."
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "categories": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  },
                  "home_page_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "key": "HANDBOOK",
                  "name": "Handbook",
                  "icon": "📘",
                  "purpose": "knowledge_base",
                  "personal": false,
                  "description": "How we work.",
                  "categories": [
                    "team"
                  ],
                  "home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "status": "current",
                  "status_at": null,
                  "features": [
                    "blogs",
                    "folders",
                    "live_docs"
                  ],
                  "created_at": "2026-11-19T09:00:00.000Z",
                  "permissions": [
                    "add_comments",
                    "create_content",
                    "edit_content",
                    "view_space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/archive": {
      "post": {
        "operationId": "archiveSpace",
        "summary": "Archive a space",
        "description": "Archives the space, as its settings do: it needs \"Archive the space\". An archived space is read-only and leaves the sidebar and the create lists until it is restored. Archiving an archived space changes nothing.",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "key": "HANDBOOK",
                  "name": "Handbook",
                  "icon": "📘",
                  "purpose": "knowledge_base",
                  "personal": false,
                  "description": "How we work.",
                  "categories": [
                    "team"
                  ],
                  "home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "status": "archived",
                  "status_at": null,
                  "features": [
                    "blogs",
                    "folders",
                    "live_docs"
                  ],
                  "created_at": "2026-11-19T09:00:00.000Z",
                  "permissions": [
                    "add_comments",
                    "create_content",
                    "edit_content",
                    "view_space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/restore": {
      "post": {
        "operationId": "restoreSpace",
        "summary": "Restore a space",
        "description": "Restores an archived space (\"Archive the space\"), or a space in the trash (\"Delete the space\"), as its settings and the directory's trash do.",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "key": "HANDBOOK",
                  "name": "Handbook",
                  "icon": "📘",
                  "purpose": "knowledge_base",
                  "personal": false,
                  "description": "How we work.",
                  "categories": [
                    "team"
                  ],
                  "home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "status": "current",
                  "status_at": null,
                  "features": [
                    "blogs",
                    "folders",
                    "live_docs"
                  ],
                  "created_at": "2026-11-19T09:00:00.000Z",
                  "permissions": [
                    "add_comments",
                    "create_content",
                    "edit_content",
                    "view_space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/people": {
      "get": {
        "operationId": "listSpacePeople",
        "summary": "List a space's people",
        "description": "Who holds a role or custom access in the space, as its Users page shows it to anyone who can open the space: groups first, then people, by name. type picks people, guests or groups; q looks in names (and emails, which guests don't see).",
        "tags": [
          "Docs spaces"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "guest",
                "group"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: kind, id, name, email, guest, members, role, permissions. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SpaceHolder"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "kind": "group",
                      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
                      "name": "Designers",
                      "email": null,
                      "guest": false,
                      "members": 4,
                      "role": {
                        "id": "4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f7a",
                        "key": "viewer",
                        "name": "Viewer"
                      },
                      "permissions": [
                        "view_space"
                      ]
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/pages": {
      "get": {
        "operationId": "listSpacePages",
        "summary": "List a level of a space's tree",
        "description": "The space's tree, one level at a time in its order, as the sidebar shows it: the top level, or the children of parent. Drafts are listed for their author only; archived items and blog posts aren't in the tree; a page a view restriction keeps from the person isn't listed, nor anything under it.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "parent",
            "in": "query",
            "required": false,
            "description": "A page of the space: its children. Leave it out for the top level.",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, kind, title, emoji, draft, parent_id, has_children, updated_at, created_by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PageSummary"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                      "kind": "page",
                      "title": "Release checklist",
                      "emoji": "✅",
                      "draft": false,
                      "parent_id": null,
                      "has_children": true,
                      "updated_at": "2026-12-01T10:15:00.000Z",
                      "created_by": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPage",
        "summary": "Create a page",
        "description": "Creates a page (or a live doc, folder or smart link, where the space's features allow them) as the token's person, under parent_id or at the top of the space: it needs \"Add pages\" in the space. A page is published as its version 1 unless publish is false, which keeps it a draft only its author sees. The body is projqo's document JSON or Markdown.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "page",
                      "live_doc",
                      "folder",
                      "smart_link"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "parent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  },
                  "url": {
                    "description": "A smart link's address.",
                    "type": "string",
                    "maxLength": 2048
                  },
                  "publish": {
                    "description": "Pages: publish it now (true by default), or keep it as your draft.",
                    "type": "boolean"
                  },
                  "comment": {
                    "description": "What changed, for the version history (at most 500 characters).",
                    "type": "string",
                    "maxLength": 500
                  },
                  "notify": {
                    "description": "Tell the page's watchers (true by default, as the publish dialog).",
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/deleted": {
      "get": {
        "operationId": "listDeletedPages",
        "summary": "List deleted pages",
        "description": "Pages and other items moved to their space's trash since a time (with everything that went with them), and items restored from it, oldest first: a client keeping a copy drops and adds them. Each row reaches the people who could open the item then (organisation owners and admins read every row). Items purged from the trash were already listed when they went to it.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Only rows at or after this time (with Z or an offset).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: page_id, space_id, kind, title, action, at, by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DeletedPage"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                      "space_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                      "kind": "page",
                      "title": "Old notes",
                      "action": "trashed",
                      "at": "2026-12-01T10:15:00.000Z",
                      "by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}": {
      "get": {
        "operationId": "getPage",
        "summary": "Get a page",
        "description": "A page with its body, as the page view shows it: the published version (a live doc's live body), or with status=draft the draft it is being edited in (people who can edit it). Bodies come as projqo's document JSON, or as Markdown with body_format=markdown. A page the person can't open (a view restriction, someone else's draft) answers 404, as a missing one.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "published (the default) or draft (the draft being edited; editors only).",
            "schema": {
              "type": "string",
              "enum": [
                "published",
                "draft"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, kind, title, emoji, space, parent_id, state, archived, version, published, unpublished_changes, owner, created_by, created_at, updated_at, labels, restrictions, url, body, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updatePage",
        "summary": "Change a page",
        "description": "Changes the page's title and body from the version you read, and publishes it as the next version (unless publish is false, which leaves it as unpublished changes). version is the version you read (0 for a page never published): when the page has been published since, or its editor holds changes nobody has published yet (someone may be editing it now), the answer is 409 conflict and nothing changes, so your update never writes over anyone's text. The change goes through live editing: people with the page open in the editor see it at once. It needs edit rights on the page, as in the app (an edit restriction lists who may). A live doc changes in its editor only. Folders and smart links take a title (and emoji).",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "version": {
                    "description": "The version you read (0 for a page never published). Needed when the title or body changes.",
                    "type": "integer",
                    "minimum": 0
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "emoji": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  },
                  "publish": {
                    "description": "Publish the change as the next version (true by default).",
                    "type": "boolean"
                  },
                  "comment": {
                    "description": "What changed, for the version history (at most 500 characters).",
                    "type": "string",
                    "maxLength": 500
                  },
                  "notify": {
                    "description": "Tell the page's watchers (true by default, as the publish dialog).",
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deletePage",
        "summary": "Delete a page",
        "description": "Moves the page and everything under it to its space's trash, as the app's Delete does: your own with \"Delete own pages\", anyone's with \"Delete any page\". The space's home page can't be deleted. Space admins restore it from the trash or delete it for good; the deleted-pages feed lists it.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:delete"
            ]
          },
          {
            "oauth2": [
              "docs:delete"
            ]
          }
        ],
        "x-scope": "docs:delete",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/publish": {
      "post": {
        "operationId": "publishPage",
        "summary": "Publish a page",
        "description": "Publishes the page's draft as its next version, as the editor's Publish does: a draft page for the first time (parent_id places it), or a published page's unpublished changes. It needs edit rights on the page; a space that requires approval publishes only after one (409 conflict).",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "comment": {
                    "description": "What changed, for the version history (at most 500 characters).",
                    "type": "string",
                    "maxLength": 500
                  },
                  "notify": {
                    "description": "Tell the page's watchers (true by default, as the publish dialog).",
                    "type": "boolean"
                  },
                  "parent_id": {
                    "description": "A first publish only: where the page goes (null: the top).",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/move": {
      "post": {
        "operationId": "movePage",
        "summary": "Move a page",
        "description": "Moves the page and everything under it, as dragging it in the tree or Move does: under parent_id (null: the top of the space), before before_id or last, and into another space with space (\"Add pages\" there; \"Edit pages\" in both).",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "space": {
                    "description": "Another space to move it to.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "x-id-from": "listSpaces"
                  },
                  "parent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "before_id": {
                    "description": "Place it just before this item of the same level; last when left out.",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "parent_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/copy": {
      "post": {
        "operationId": "copyPage",
        "summary": "Copy a page",
        "description": "Copies the page (with its children when asked, up to 500 items) under parent_id in space (this one when left out), as the app's Copy does: it needs \"Add pages\" there. The copy is published, sits first under its parent and is called \"Copy of …\" unless a title is given; with include_restrictions, the pages' restrictions come too where the person manages access.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "space": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "description": "A space's key (an old key still finds it) or id.",
                    "x-id-from": "listSpaces"
                  },
                  "parent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "include_children": {
                    "type": "boolean"
                  },
                  "include_restrictions": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "parent_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/versions": {
      "get": {
        "operationId": "listPageVersions",
        "summary": "List a page's versions",
        "description": "The page's published versions, newest first, as its version history shows them: who published each and when, its comment, and the version a restore came from.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, number, title, published_at, published_by, comment, restored_from, current. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PageVersion"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
                      "number": 3,
                      "title": "Release checklist",
                      "published_at": "2026-12-01T10:15:00.000Z",
                      "published_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "comment": "Added the tagging step",
                      "restored_from": null,
                      "current": true
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/versions/{version}": {
      "get": {
        "operationId": "getPageVersion",
        "summary": "Get a version of a page",
        "description": "One published version of the page, by its number or id, with its title and body.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "The version's number (3) or id.",
            "x-id-from": "listPageVersions",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, number, title, published_at, published_by, comment, restored_from, current, body. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageVersionWithBody"
                },
                "example": {
                  "id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
                  "number": 3,
                  "title": "Release checklist",
                  "published_at": "2026-12-01T10:15:00.000Z",
                  "published_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "comment": "Added the tagging step",
                  "restored_from": null,
                  "current": true,
                  "body": "# Release checklist\n"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/versions/{version}/restore": {
      "post": {
        "operationId": "restorePageVersion",
        "summary": "Restore a version",
        "description": "Makes a new current version with that version's title and body, as Restore in the version history does (edit rights on the page). Access settings stay as they are.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "The version's number (3) or id.",
            "x-id-from": "listPageVersions",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "comment": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/trash": {
      "get": {
        "operationId": "listSpaceTrash",
        "summary": "List a space's trash",
        "description": "The items deleted on their own in the space, newest first (each with what went with it), as the space's Trash settings page shows them: for space admins (\"Manage all content\"); to anyone else it answers 404, as the app hides the page.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, kind, title, trashed_at, trashed_by. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TrashedPage"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                      "kind": "page",
                      "title": "Old notes",
                      "trashed_at": "2026-12-01T10:15:00.000Z",
                      "trashed_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/trash/{page}/restore": {
      "post": {
        "operationId": "restorePageFromTrash",
        "summary": "Restore from the trash",
        "description": "Restores a trashed item and what went with it, back where it was (or at the top of the space when its parent is gone), as the Trash page's Restore does: space admins. The deleted-pages feed lists it as restored.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A trashed item's id.",
            "x-id-from": "listSpaceTrash",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "example": {
                  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                  "kind": "page",
                  "title": "Release checklist",
                  "emoji": "✅",
                  "space": {
                    "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                    "key": "HANDBOOK",
                    "name": "Handbook"
                  },
                  "parent_id": null,
                  "state": "published",
                  "archived": false,
                  "version": 3,
                  "published": {
                    "at": "2026-12-01T10:15:00.000Z",
                    "by": {
                      "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                      "name": "Priya Shah"
                    }
                  },
                  "unpublished_changes": false,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "created_at": "2026-11-20T09:00:00.000Z",
                  "updated_at": "2026-12-01T10:15:00.000Z",
                  "labels": [
                    "release"
                  ],
                  "restrictions": {
                    "view": false,
                    "edit": false
                  },
                  "url": null,
                  "body": "# Release checklist\n\n- [ ] Tag the build\n",
                  "can": {
                    "edit": true,
                    "delete": true,
                    "comment": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/spaces/{space}/trash/{page}": {
      "delete": {
        "operationId": "purgePageFromTrash",
        "summary": "Delete for good",
        "description": "Deletes a trashed item and what went with it for good, with their files, as the Trash page's Delete does: space admins. It can't be undone.",
        "tags": [
          "Docs pages"
        ],
        "security": [
          {
            "personalToken": [
              "docs:delete"
            ]
          },
          {
            "oauth2": [
              "docs:delete"
            ]
          }
        ],
        "x-scope": "docs:delete",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "space",
            "in": "path",
            "required": true,
            "description": "A space's key (an old key still finds it) or id.",
            "x-id-from": "listSpaces",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A trashed item's id.",
            "x-id-from": "listSpaceTrash",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/comments": {
      "get": {
        "operationId": "listPageComments",
        "summary": "List a page's comments",
        "description": "The page's comments, oldest first: footer comments and inline ones (kind), replies with their thread_id. Bodies come as projqo's document JSON, or as Markdown with body_format=markdown. A page the person can't open answers 404.",
        "tags": [
          "Docs comments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "footer",
                "inline"
              ]
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, page, thread_id, kind, quote, anchor_gone, author, text, body, resolved, created_at, edited_at, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PageComment"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "page": {
                        "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                        "title": "Release checklist"
                      },
                      "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                      "kind": "footer",
                      "quote": null,
                      "anchor_gone": false,
                      "author": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "text": "Looks good to me.",
                      "body": "Looks good to me.\n",
                      "resolved": false,
                      "created_at": "2026-12-01T10:15:00.000Z",
                      "edited_at": null,
                      "can": {
                        "reply": true,
                        "edit": true,
                        "delete": true
                      }
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addPageComment",
        "summary": "Add a comment",
        "description": "Adds a footer comment to the page, or a reply in a footer thread with reply_to, as the token's person: it needs \"Add comments\" in the space and a published page, as in the app. People mentioned are told when they can open the page; the page's watchers hear of it; commenting watches the page while the person's auto-watch is on.",
        "tags": [
          "Docs comments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  },
                  "reply_to": {
                    "description": "Reply in this comment's thread (a footer thread).",
                    "x-id-from": "listPageComments",
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageComment"
                },
                "example": {
                  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "page": {
                    "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                    "title": "Release checklist"
                  },
                  "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "kind": "footer",
                  "quote": null,
                  "anchor_gone": false,
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "text": "Looks good to me.",
                  "body": "Looks good to me.\n",
                  "resolved": false,
                  "created_at": "2026-12-01T10:15:00.000Z",
                  "edited_at": null,
                  "can": {
                    "reply": true,
                    "edit": true,
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/comments/{comment}": {
      "get": {
        "operationId": "getPageComment",
        "summary": "Get a comment",
        "description": "One comment of the page, footer or inline.",
        "tags": [
          "Docs comments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listPageComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, page, thread_id, kind, quote, anchor_gone, author, text, body, resolved, created_at, edited_at, can. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageComment"
                },
                "example": {
                  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "page": {
                    "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                    "title": "Release checklist"
                  },
                  "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "kind": "footer",
                  "quote": null,
                  "anchor_gone": false,
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "text": "Looks good to me.",
                  "body": "Looks good to me.\n",
                  "resolved": false,
                  "created_at": "2026-12-01T10:15:00.000Z",
                  "edited_at": null,
                  "can": {
                    "reply": true,
                    "edit": true,
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updatePageComment",
        "summary": "Edit a comment",
        "description": "Changes a footer comment's body: its author, while they may still comment on the page, as in the app. Newly mentioned people are told. Inline comments are read only here (409 conflict).",
        "tags": [
          "Docs comments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listPageComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "body_format",
            "in": "query",
            "required": false,
            "description": "How rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "markdown"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000000
                      },
                      {
                        "$ref": "#/components/schemas/Document"
                      }
                    ],
                    "description": "A document (projqo's document JSON), or Markdown as a string."
                  }
                },
                "required": [
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageComment"
                },
                "example": {
                  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "page": {
                    "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                    "title": "Release checklist"
                  },
                  "thread_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
                  "kind": "footer",
                  "quote": null,
                  "anchor_gone": false,
                  "author": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "text": "Looks good to me.",
                  "body": "Looks good to me.\n",
                  "resolved": false,
                  "created_at": "2026-12-01T10:15:00.000Z",
                  "edited_at": null,
                  "can": {
                    "reply": true,
                    "edit": true,
                    "delete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deletePageComment",
        "summary": "Delete a comment",
        "description": "Deletes a footer comment (a thread's first comment goes with its replies): your own with \"Delete own comments\", anyone's with \"Delete any comments\", as in the app. Inline comments are read only here (409 conflict).",
        "tags": [
          "Docs comments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "comment",
            "in": "path",
            "required": true,
            "description": "The comment's id.",
            "x-id-from": "listPageComments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/attachments": {
      "get": {
        "operationId": "listPageAttachments",
        "summary": "List a page's files",
        "description": "The page's files by name, each with its versions (a file uploaded again under the same name is its next version), as the page's Files show them.",
        "tags": [
          "Docs attachments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "true adds total, the number of items in the whole list.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, mime, size, version, comment, labels, created_at, added_by, content_url, versions. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PageAttachment"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                      "name": "plan.pdf",
                      "mime": "application/pdf",
                      "size": 48213,
                      "version": 2,
                      "comment": "",
                      "labels": [],
                      "created_at": "2026-12-01T10:20:00.000Z",
                      "added_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "content_url": "/api/v1/orgs/acme/pages/1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                      "versions": []
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addPageAttachments",
        "summary": "Upload files to a page",
        "description": "Uploads 1 to 10 files to the page, as multipart/form-data, as the page's Files do: it needs edit rights on the page and \"Add attachments\" in the space. A file with the name of one already there becomes its next version. Each file must be within the organisation's file size limit (413 too_large); one refused file refuses the whole call. The files are streamed to the file store as they arrive: the organisation's file size limit and its storage limit are checked as the bytes come, and the call answers 413 too_large as soon as one is passed (the rest of the body isn't read, and nothing of the call is kept).",
        "tags": [
          "Docs attachments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "multipart/form-data with 1 to 10 files, each a part named file with its file name, and an optional comment field.",
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "1 to 10 files, each as a part named file (or files).",
                    "items": {
                      "type": "string",
                      "contentMediaType": "application/octet-stream"
                    }
                  },
                  "comment": {
                    "type": "string",
                    "description": "A note kept with the files (at most 500 characters)."
                  }
                }
              },
              "encoding": {
                "file": {
                  "contentType": "application/octet-stream"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageAttachmentsAdded"
                },
                "example": {
                  "items": [
                    {
                      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                      "name": "plan.pdf",
                      "mime": "application/pdf",
                      "size": 48213,
                      "version": 2,
                      "comment": "",
                      "labels": [],
                      "created_at": "2026-12-01T10:20:00.000Z",
                      "added_by": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "content_url": "/api/v1/orgs/acme/pages/1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                      "versions": []
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/attachments/{attachment}": {
      "get": {
        "operationId": "getPageAttachment",
        "summary": "Get a file's details",
        "description": "One of the page's files (by the id of any of its versions), with its versions.",
        "tags": [
          "Docs attachments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "description": "A file's id (any of its versions).",
            "x-id-from": "listPageAttachments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, mime, size, version, comment, labels, created_at, added_by, content_url, versions. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageAttachment"
                },
                "example": {
                  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                  "name": "plan.pdf",
                  "mime": "application/pdf",
                  "size": 48213,
                  "version": 2,
                  "comment": "",
                  "labels": [],
                  "created_at": "2026-12-01T10:20:00.000Z",
                  "added_by": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "content_url": "/api/v1/orgs/acme/pages/1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
                  "versions": []
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deletePageAttachment",
        "summary": "Delete a file",
        "description": "Moves the file (every version) to the space's file trash, as the page's Files do: with edit rights on the page or \"Delete attachments\" in the space. With version=true, deletes only that version for good (\"Delete attachments\").",
        "tags": [
          "Docs attachments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "description": "A file's id (any of its versions).",
            "x-id-from": "listPageAttachments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "true: delete only this version, for good.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/attachments/{attachment}/content": {
      "get": {
        "operationId": "downloadPageAttachment",
        "summary": "Download a file",
        "description": "The bytes of that version of the file, with its type and the app's download headers (a Content-Disposition naming it, and the headers that keep a browser from running anything in it).",
        "tags": [
          "Docs attachments"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "description": "A file's id (any of its versions).",
            "x-id-from": "listPageAttachments",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file's bytes.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "application/octet-stream"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/labels": {
      "get": {
        "operationId": "listPageLabels",
        "summary": "List a page's labels",
        "description": "The page's labels, by name (lower case, as projqo keeps them).",
        "tags": [
          "Docs labels"
        ],
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageLabels"
                },
                "example": {
                  "labels": [
                    "release",
                    "team"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "addPageLabels",
        "summary": "Add labels to a page",
        "description": "Adds labels to the page (edit rights on it, as in the app): each is made lower case, one word, at most 50 on a page. A label it has already is left as it is.",
        "tags": [
          "Docs labels"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "labels": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  }
                },
                "required": [
                  "labels"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageLabels"
                },
                "example": {
                  "labels": [
                    "release",
                    "team"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/pages/{page}/labels/{label}": {
      "delete": {
        "operationId": "removePageLabel",
        "summary": "Remove a label from a page",
        "description": "Takes the label (by name) off the page (edit rights on it, as in the app).",
        "tags": [
          "Docs labels"
        ],
        "security": [
          {
            "personalToken": [
              "docs:write"
            ]
          },
          {
            "oauth2": [
              "docs:write"
            ]
          }
        ],
        "x-scope": "docs:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "A page's id (any item of the tree: page, live doc, folder, smart link).",
            "x-id-from": "listSpacePages",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "label",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "archived: The item (or its project) is archived, so it can't be changed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "archived"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archived": {
                    "summary": "The item (or its project) is archived, so it can't be changed.",
                    "value": {
                      "error": {
                        "code": "archived",
                        "message": "The item (or its project) is archived, so it can't be changed.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/search": {
      "get": {
        "operationId": "search",
        "summary": "Quick search",
        "description": "Searches the organisation as quick search does, cut to what the token's person may open (a restricted page, a task they can't see and someone else's draft are never found) and to the token's scopes: tasks need tasks:read, pages and spaces docs:read, projects projects:read, people people:read. q holds the words; kind picks task, page, project and space (several with commas; all the token can read by default) or person on its own (the People directory's search); project or space keeps to one (a project or space the person can't open finds nothing). Results come best match first, then the most recently updated. For Advanced search over tasks, use GET /tasks with q in the query language.",
        "tags": [
          "Search"
        ],
        "security": [
          {
            "personalToken": [
              "filters:read"
            ]
          },
          {
            "oauth2": [
              "filters:read"
            ]
          }
        ],
        "x-scope": "filters:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The words to find.",
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "task, page, project, space (several with commas), or person on its own.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "project",
            "in": "query",
            "required": false,
            "description": "A project's key or id.",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "space",
            "in": "query",
            "required": false,
            "description": "A space's key or id.",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many results a page holds, 1 to 50 (25 by default, as the app's pages).",
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: kind, id, title, snippet, key, content_kind, project, space, labels, draft, updated_at. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SearchResult"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "kind": "task",
                      "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
                      "title": "Fix the sign-in page",
                      "snippet": "The sign-in page loses the address after…",
                      "key": "WEB-12",
                      "content_kind": null,
                      "project": {
                        "id": "0a1b2c3d-4e5f-4a6b-8c7d-8e9f0a1b2c3d",
                        "key": "WEB",
                        "name": "Website"
                      },
                      "space": null,
                      "labels": [
                        "frontend"
                      ],
                      "draft": false,
                      "updated_at": "2026-12-01T10:15:00.000Z"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/filters": {
      "get": {
        "operationId": "listFilters",
        "summary": "List saved filters",
        "description": "The saved filters the token's person may see, as the filters directory lists them (organisation admins: every filter): their own, and ones shared with them, a group of theirs, a project they can open or the organisation. q looks in the name (and, for admins, the description); owner, project and group narrow it.",
        "tags": [
          "Filters"
        ],
        "security": [
          {
            "personalToken": [
              "filters:read"
            ]
          },
          {
            "oauth2": [
              "filters:read"
            ]
          }
        ],
        "x-scope": "filters:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "description": "A person's id, or their email address.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "project",
            "in": "query",
            "required": false,
            "description": "Shared with this project (key or id).",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Shared with this group.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name"
              ]
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, description, query, columns, owner, viewers, editors, stars, starred, can, tasks_url. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SavedFilter"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                      "name": "My open bugs",
                      "description": "",
                      "query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
                      "columns": null,
                      "owner": {
                        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                        "name": "Priya Shah"
                      },
                      "viewers": [
                        {
                          "kind": "group",
                          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
                          "name": "Designers"
                        }
                      ],
                      "editors": [],
                      "stars": 1,
                      "starred": true,
                      "can": {
                        "edit": true,
                        "share": true,
                        "delete": true
                      },
                      "tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createFilter",
        "summary": "Save a filter",
        "description": "Saves a filter owned by the token's person, as the search page's Save does: a name unique among their filters (in any letter case), a query the query language takes, and who it is shared with. Sharing with anyone but oneself needs \"Share filters and dashboards\" (403).",
        "tags": [
          "Filters"
        ],
        "security": [
          {
            "personalToken": [
              "filters:write"
            ]
          },
          {
            "oauth2": [
              "filters:write"
            ]
          }
        ],
        "x-scope": "filters:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The query, in Advanced search's query language (checked as the app checks it)."
                  },
                  "columns": {
                    "anyOf": [
                      {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 100
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "viewers": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "project",
                            "group",
                            "organisation",
                            "person"
                          ]
                        },
                        "id": {
                          "description": "A project's key or id, a group's id, a person's id or email.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 320
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Who may see and run it."
                  },
                  "editors": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "project",
                            "group",
                            "organisation",
                            "person"
                          ]
                        },
                        "id": {
                          "description": "A project's key or id, a group's id, a person's id or email.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 320
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Who may also change it."
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedFilter"
                },
                "example": {
                  "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                  "name": "My open bugs",
                  "description": "",
                  "query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
                  "columns": null,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "viewers": [
                    {
                      "kind": "group",
                      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
                      "name": "Designers"
                    }
                  ],
                  "editors": [],
                  "stars": 1,
                  "starred": true,
                  "can": {
                    "edit": true,
                    "share": true,
                    "delete": true
                  },
                  "tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "idempotency_key_reused"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "The same Idempotency-Key was sent within 24 hours with a different body.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
                        "status": 422,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/filters/{filter}": {
      "get": {
        "operationId": "getFilter",
        "summary": "Get a saved filter",
        "description": "One saved filter the person may see, with its query and who it is shared with. A filter they can't see answers 404, as a missing one. Its tasks are at tasks_url.",
        "tags": [
          "Filters"
        ],
        "security": [
          {
            "personalToken": [
              "filters:read"
            ]
          },
          {
            "oauth2": [
              "filters:read"
            ]
          }
        ],
        "x-scope": "filters:read",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "filter",
            "in": "path",
            "required": true,
            "description": "The filter's id.",
            "x-id-from": "listFilters",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Only these fields, comma-separated: id, name, description, query, columns, owner, viewers, editors, stars, starred, can, tasks_url. id always comes; the fields not asked for are left out, required or not.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedFilter"
                },
                "example": {
                  "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                  "name": "My open bugs",
                  "description": "",
                  "query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
                  "columns": null,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "viewers": [
                    {
                      "kind": "group",
                      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
                      "name": "Designers"
                    }
                  ],
                  "editors": [],
                  "stars": 1,
                  "starred": true,
                  "can": {
                    "edit": true,
                    "share": true,
                    "delete": true
                  },
                  "tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateFilter",
        "summary": "Change a saved filter",
        "description": "Changes the filter's name, description, query, columns or sharing: its owner and the people it is shared with as editors, as in the app (an organisation admin who is neither may delete it, not change it). viewers and editors, when given, replace who it is shared with; only new shares need \"Share filters and dashboards\".",
        "tags": [
          "Filters"
        ],
        "security": [
          {
            "personalToken": [
              "filters:write"
            ]
          },
          {
            "oauth2": [
              "filters:write"
            ]
          }
        ],
        "x-scope": "filters:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "filter",
            "in": "path",
            "required": true,
            "description": "The filter's id.",
            "x-id-from": "listFilters",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The query, in Advanced search's query language (checked as the app checks it)."
                  },
                  "columns": {
                    "anyOf": [
                      {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 100
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "viewers": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "project",
                            "group",
                            "organisation",
                            "person"
                          ]
                        },
                        "id": {
                          "description": "A project's key or id, a group's id, a person's id or email.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 320
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Who may see and run it."
                  },
                  "editors": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "project",
                            "group",
                            "organisation",
                            "person"
                          ]
                        },
                        "id": {
                          "description": "A project's key or id, a group's id, a person's id or email.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 320
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Who may also change it."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedFilter"
                },
                "example": {
                  "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
                  "name": "My open bugs",
                  "description": "",
                  "query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
                  "columns": null,
                  "owner": {
                    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
                    "name": "Priya Shah"
                  },
                  "viewers": [
                    {
                      "kind": "group",
                      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
                      "name": "Designers"
                    }
                  ],
                  "editors": [],
                  "stars": 1,
                  "starred": true,
                  "can": {
                    "edit": true,
                    "share": true,
                    "delete": true
                  },
                  "tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteFilter",
        "summary": "Delete a saved filter",
        "description": "Deletes the filter: its owner or an organisation admin, as in the app. A filter a board uses can't be deleted (409 conflict naming the boards).",
        "tags": [
          "Filters"
        ],
        "security": [
          {
            "personalToken": [
              "filters:write"
            ]
          },
          {
            "oauth2": [
              "filters:write"
            ]
          }
        ],
        "x-scope": "filters:write",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "filter",
            "in": "path",
            "required": true,
            "description": "The filter's id.",
            "x-id-from": "listFilters",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks": {
      "get": {
        "operationId": "listWebhooks",
        "summary": "List webhook subscriptions",
        "description": "The subscriptions this token (or this app's connection) made, oldest first. Another token's or app's subscriptions, and the organisation admins' own webhooks, aren't listed.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Webhook"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                      "name": "hooks.example.com",
                      "url": "https://hooks.example.com/projqo",
                      "events": [
                        "task_created",
                        "task_updated"
                      ],
                      "projects": [
                        {
                          "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                          "key": "WEB"
                        }
                      ],
                      "spaces": [],
                      "task_query": null,
                      "enabled": true,
                      "switched_off": null,
                      "secret_last_four": "Qx7a",
                      "previous_secret_expires_at": null,
                      "health": {
                        "failures_in_a_row": 0,
                        "failing_since": null,
                        "last_success_at": "2026-12-02T09:30:00.000Z"
                      },
                      "created_at": "2026-12-01T10:00:00.000Z",
                      "updated_at": "2026-12-01T10:00:00.000Z"
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWebhook",
        "summary": "Create a webhook subscription",
        "description": "Subscribes an address to events. Each event needs its read scope too (page events need docs:read; 403 insufficient_scope names the one missing). The answer carries the subscription's secret, shown only now: every delivery is signed with it. A ping is sent to the address at once. At most 20 subscriptions a token or app connection. Not idempotent: the answer holds a secret, which projqo never keeps.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "The https address that receives the deliveries (no variables)."
                  },
                  "events": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "task_created",
                        "task_updated",
                        "task_deleted",
                        "comment_created",
                        "comment_updated",
                        "comment_deleted",
                        "worklog_created",
                        "worklog_updated",
                        "worklog_deleted",
                        "attachment_created",
                        "attachment_deleted",
                        "link_created",
                        "link_deleted",
                        "sprint_created",
                        "sprint_deleted",
                        "sprint_updated",
                        "sprint_started",
                        "sprint_closed",
                        "board_created",
                        "board_deleted",
                        "board_updated",
                        "board_settings_changed",
                        "version_released",
                        "version_unreleased",
                        "version_created",
                        "version_moved",
                        "version_updated",
                        "version_merged",
                        "version_deleted",
                        "project_created",
                        "project_updated",
                        "project_deleted",
                        "project_trashed",
                        "project_restored",
                        "project_archived",
                        "task_type_created",
                        "task_type_updated",
                        "task_type_deleted",
                        "filter_created",
                        "filter_updated",
                        "filter_deleted",
                        "person_added",
                        "person_removed",
                        "person_changed",
                        "option_changed",
                        "space_created",
                        "space_updated",
                        "space_deleted",
                        "page_created",
                        "page_published",
                        "page_updated",
                        "page_moved",
                        "page_trashed",
                        "page_restored",
                        "page_deleted",
                        "page_comment_created",
                        "page_comment_updated",
                        "page_comment_deleted"
                      ],
                      "description": "An event (Webhook events in the reference)."
                    },
                    "description": "The events to receive. Each needs its read scope on the token or app."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "description": "A name to know it by (on the organisation's Webhooks page too); the address's host by default."
                  },
                  "projects": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "Projects by key or id: only events about their things. Empty: every project."
                  },
                  "spaces": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "Docs spaces by key or id: only Docs events in them. Empty: every space."
                  },
                  "task_query": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Only task events whose task matches this query (the query language)."
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "false switches it off; true switches it on again (not after an organisation admin switched it off)."
                  }
                },
                "required": [
                  "url",
                  "events"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreated"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "name": "hooks.example.com",
                  "url": "https://hooks.example.com/projqo",
                  "events": [
                    "task_created",
                    "task_updated"
                  ],
                  "projects": [
                    {
                      "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                      "key": "WEB"
                    }
                  ],
                  "spaces": [],
                  "task_query": null,
                  "enabled": true,
                  "switched_off": null,
                  "secret_last_four": "Qx7a",
                  "previous_secret_expires_at": null,
                  "health": {
                    "failures_in_a_row": 0,
                    "failing_since": null,
                    "last_success_at": "2026-12-02T09:30:00.000Z"
                  },
                  "created_at": "2026-12-01T10:00:00.000Z",
                  "updated_at": "2026-12-01T10:00:00.000Z",
                  "secret": "whsec_9QpL2vY1kT8sXr3mN6bA0cHdE4fGh5Jw"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "limit_reached: A limit was reached (of the plan, or of how many of something one person may have).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "limit_reached"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "limit_reached": {
                    "summary": "A limit was reached (of the plan, or of how many of something one person may have).",
                    "value": {
                      "error": {
                        "code": "limit_reached",
                        "message": "A limit was reached (of the plan, or of how many of something one person may have).",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks/{webhook}": {
      "get": {
        "operationId": "getWebhook",
        "summary": "Get a webhook subscription",
        "description": "One of this token's (or app connection's) subscriptions, with its health.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "name": "hooks.example.com",
                  "url": "https://hooks.example.com/projqo",
                  "events": [
                    "task_created",
                    "task_updated"
                  ],
                  "projects": [
                    {
                      "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                      "key": "WEB"
                    }
                  ],
                  "spaces": [],
                  "task_query": null,
                  "enabled": true,
                  "switched_off": null,
                  "secret_last_four": "Qx7a",
                  "previous_secret_expires_at": null,
                  "health": {
                    "failures_in_a_row": 0,
                    "failing_since": null,
                    "last_success_at": "2026-12-02T09:30:00.000Z"
                  },
                  "created_at": "2026-12-01T10:00:00.000Z",
                  "updated_at": "2026-12-01T10:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateWebhook",
        "summary": "Change a webhook subscription",
        "description": "Changes what is given. enabled: true switches a subscription on again after it was switched off for failing (its health starts again); one an organisation admin switched off stays off (403 refused).",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "description": "A name to know it by (on the organisation's Webhooks page too); the address's host by default."
                  },
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "The https address that receives the deliveries (no variables)."
                  },
                  "events": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "task_created",
                        "task_updated",
                        "task_deleted",
                        "comment_created",
                        "comment_updated",
                        "comment_deleted",
                        "worklog_created",
                        "worklog_updated",
                        "worklog_deleted",
                        "attachment_created",
                        "attachment_deleted",
                        "link_created",
                        "link_deleted",
                        "sprint_created",
                        "sprint_deleted",
                        "sprint_updated",
                        "sprint_started",
                        "sprint_closed",
                        "board_created",
                        "board_deleted",
                        "board_updated",
                        "board_settings_changed",
                        "version_released",
                        "version_unreleased",
                        "version_created",
                        "version_moved",
                        "version_updated",
                        "version_merged",
                        "version_deleted",
                        "project_created",
                        "project_updated",
                        "project_deleted",
                        "project_trashed",
                        "project_restored",
                        "project_archived",
                        "task_type_created",
                        "task_type_updated",
                        "task_type_deleted",
                        "filter_created",
                        "filter_updated",
                        "filter_deleted",
                        "person_added",
                        "person_removed",
                        "person_changed",
                        "option_changed",
                        "space_created",
                        "space_updated",
                        "space_deleted",
                        "page_created",
                        "page_published",
                        "page_updated",
                        "page_moved",
                        "page_trashed",
                        "page_restored",
                        "page_deleted",
                        "page_comment_created",
                        "page_comment_updated",
                        "page_comment_deleted"
                      ],
                      "description": "An event (Webhook events in the reference)."
                    },
                    "description": "The events to receive. Each needs its read scope on the token or app."
                  },
                  "projects": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "Projects by key or id: only events about their things. Empty: every project."
                  },
                  "spaces": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "Docs spaces by key or id: only Docs events in them. Empty: every space."
                  },
                  "task_query": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Only task events whose task matches this query (the query language)."
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "false switches it off; true switches it on again (not after an organisation admin switched it off)."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                },
                "example": {
                  "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
                  "name": "hooks.example.com",
                  "url": "https://hooks.example.com/projqo",
                  "events": [
                    "task_created",
                    "task_updated"
                  ],
                  "projects": [
                    {
                      "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
                      "key": "WEB"
                    }
                  ],
                  "spaces": [],
                  "task_query": null,
                  "enabled": true,
                  "switched_off": null,
                  "secret_last_four": "Qx7a",
                  "previous_secret_expires_at": null,
                  "health": {
                    "failures_in_a_row": 0,
                    "failing_since": null,
                    "last_success_at": "2026-12-02T09:30:00.000Z"
                  },
                  "created_at": "2026-12-01T10:00:00.000Z",
                  "updated_at": "2026-12-01T10:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "refused",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "refused": {
                    "summary": "The token's person can see the thing but may not do this; the message says why.",
                    "value": {
                      "error": {
                        "code": "refused",
                        "message": "The token's person can see the thing but may not do this; the message says why.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "too_large: The body or a file is larger than allowed.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "The body or a file is larger than allowed.",
                    "value": {
                      "error": {
                        "code": "too_large",
                        "message": "The body or a file is larger than allowed.",
                        "status": 413,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: The body isn't JSON.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "summary": "The body isn't JSON.",
                    "value": {
                      "error": {
                        "code": "unsupported_media_type",
                        "message": "The body isn't JSON.",
                        "status": 415,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhook",
        "summary": "Delete a webhook subscription",
        "description": "Deletes the subscription and its delivery log. Nothing more is sent.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks/{webhook}/rotate-secret": {
      "post": {
        "operationId": "rotateWebhookSecret",
        "summary": "Rotate a subscription's secret",
        "description": "Makes a new secret, shown only now. For 24 hours the old one signs too, in X-Projqo-Signature-Previous, so a receiver keeps working while you deploy the new one. Rotating again within that time ends the older secret at once.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecret"
                },
                "example": {
                  "secret": "whsec_Zr4Kp0aL8vQ2tY6mXb1nC3dE5fGh7Jw9",
                  "previous_secret_expires_at": "2026-12-03T10:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks/{webhook}/test": {
      "post": {
        "operationId": "testWebhook",
        "summary": "Send a test",
        "description": "Sends a ping event to the subscription's address now (also when it is switched off), and answers its delivery; follow it in the delivery log.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "202": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                },
                "example": {
                  "id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
                  "event": "ping",
                  "status": "queued",
                  "attempts": 0,
                  "response_code": null,
                  "duration_ms": null,
                  "reason": null,
                  "created_at": "2026-12-02T09:30:00.000Z",
                  "last_attempt_at": null,
                  "next_attempt_at": "2026-12-02T09:30:00.000Z",
                  "sent_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks/{webhook}/deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "List a subscription's deliveries",
        "description": "The delivery log, newest first, for 30 days: each delivery's status, attempts, your address's answer, how long it took and why it failed or was skipped.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only deliveries with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "queued",
                "sent",
                "failed",
                "skipped"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items a page holds, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor of the previous page; leave it out for the first page.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookDelivery"
                      }
                    },
                    "next_cursor": {
                      "description": "Pass as cursor to read the next page; null on the last page.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "total": {
                      "description": "The number of items in the whole list, with count=true.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "items": [
                    {
                      "id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
                      "event": "task_updated",
                      "status": "failed",
                      "attempts": 5,
                      "response_code": 500,
                      "duration_ms": 142,
                      "reason": "The receiver answered 500.",
                      "created_at": "2026-12-02T09:30:00.000Z",
                      "last_attempt_at": "2026-12-02T12:13:00.000Z",
                      "next_attempt_at": null,
                      "sent_at": null
                    }
                  ],
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks/{webhook}/deliveries/{delivery}": {
      "get": {
        "operationId": "getWebhookDelivery",
        "summary": "Get a delivery",
        "description": "One delivery of the subscription's log.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "delivery",
            "in": "path",
            "required": true,
            "description": "The delivery's id.",
            "x-id-from": "listWebhookDeliveries",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                },
                "example": {
                  "id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
                  "event": "task_updated",
                  "status": "failed",
                  "attempts": 5,
                  "response_code": 500,
                  "duration_ms": 142,
                  "reason": "The receiver answered 500.",
                  "created_at": "2026-12-02T09:30:00.000Z",
                  "last_attempt_at": "2026-12-02T12:13:00.000Z",
                  "next_attempt_at": null,
                  "sent_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orgs/{org}/webhooks/{webhook}/deliveries/{delivery}/redeliver": {
      "post": {
        "operationId": "redeliverWebhookDelivery",
        "summary": "Redeliver",
        "description": "Sends a finished delivery (sent, failed or skipped) again, as it was, with the same id, prepared again for the subscription's person. 409 conflict while it is still waiting.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "personalToken": [
              "webhooks:manage"
            ]
          },
          {
            "oauth2": [
              "webhooks:manage"
            ]
          }
        ],
        "x-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "org",
            "in": "path",
            "required": true,
            "description": "The organisation's id (or its address name).",
            "x-id-from": "listOrganisations",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "webhook",
            "in": "path",
            "required": true,
            "description": "The subscription's id.",
            "x-id-from": "listWebhooks",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "delivery",
            "in": "path",
            "required": true,
            "description": "The delivery's id.",
            "x-id-from": "listWebhookDeliveries",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "responses": {
          "202": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                },
                "example": {
                  "id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
                  "event": "task_updated",
                  "status": "queued",
                  "attempts": 0,
                  "response_code": null,
                  "duration_ms": 142,
                  "reason": null,
                  "created_at": "2026-12-02T09:30:00.000Z",
                  "last_attempt_at": "2026-12-02T12:13:00.000Z",
                  "next_attempt_at": "2026-12-02T12:20:00.000Z",
                  "sent_at": null
                }
              }
            }
          },
          "400": {
            "description": "invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "invalid"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                    "value": {
                      "error": {
                        "code": "invalid",
                        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
                        "status": 400,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "invalid_token"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                    "value": {
                      "error": {
                        "code": "invalid_token",
                        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
                        "status": 401,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/WWW-Authenticate"
              }
            },
            "x-error-codes": [
              "insufficient_scope",
              "api_off",
              "suspended",
              "read_only"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "api_off": {
                    "summary": "The organisation's admins have switched the API off.",
                    "value": {
                      "error": {
                        "code": "api_off",
                        "message": "The organisation's admins have switched the API off.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "suspended": {
                    "summary": "projqo has suspended the organisation.",
                    "value": {
                      "error": {
                        "code": "suspended",
                        "message": "projqo has suspended the organisation.",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  },
                  "read_only": {
                    "summary": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                    "value": {
                      "error": {
                        "code": "read_only",
                        "message": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
                        "status": 403,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
                        "status": 404,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "conflict: The thing changed since it was read, or the change clashes with its state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "The thing changed since it was read, or the change clashes with its state.",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "The thing changed since it was read, or the change clashes with its state.",
                        "status": 409,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: Too many calls in this minute, for the token or for the whole organisation.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many calls in this minute, for the token or for the whole organisation.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many calls in this minute, for the token or for the whole organisation.",
                        "status": 429,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "internal: Something went wrong on projqo's side (never your mistake).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "Something went wrong on projqo's side (never your mistake).",
                    "value": {
                      "error": {
                        "code": "internal",
                        "message": "Something went wrong on projqo's side (never your mistake).",
                        "status": 500,
                        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "task_created": {
      "post": {
        "summary": "Task created",
        "description": "Sent for each task created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Tasks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "task_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Task"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "task_updated": {
      "post": {
        "summary": "Task updated",
        "description": "Sent for each task updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Tasks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "task_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Task"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "task_deleted": {
      "post": {
        "summary": "Task deleted",
        "description": "Sent for each task deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Tasks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "task_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/DeletedTask"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "comment_created": {
      "post": {
        "summary": "Comment created",
        "description": "Sent for each comment created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Comments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "comment_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Comment"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "comment_updated": {
      "post": {
        "summary": "Comment updated",
        "description": "Sent for each comment updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Comments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "comment_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Comment"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "comment_deleted": {
      "post": {
        "summary": "Comment deleted",
        "description": "Sent for each comment deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Comments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "comment_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "worklog_created": {
      "post": {
        "summary": "Work log created",
        "description": "Sent for each work log created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs worklogs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "tags": [
          "Work logs"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "worklog_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Worklog"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "worklog_updated": {
      "post": {
        "summary": "Work log updated",
        "description": "Sent for each work log updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs worklogs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "tags": [
          "Work logs"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "worklog_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Worklog"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "worklog_deleted": {
      "post": {
        "summary": "Work log deleted",
        "description": "Sent for each work log deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs worklogs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "worklogs:read"
            ]
          },
          {
            "oauth2": [
              "worklogs:read"
            ]
          }
        ],
        "x-scope": "worklogs:read",
        "tags": [
          "Work logs"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "worklog_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "attachment_created": {
      "post": {
        "summary": "File attached",
        "description": "Sent for each file attached that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Files and links"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "attachment_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Attachment"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "attachment_deleted": {
      "post": {
        "summary": "File removed",
        "description": "Sent for each file removed that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Files and links"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "attachment_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "link_created": {
      "post": {
        "summary": "Link created",
        "description": "Sent for each link created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Files and links"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "link_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/TaskLink"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "link_deleted": {
      "post": {
        "summary": "Link removed",
        "description": "Sent for each link removed that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs tasks:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "tasks:read"
            ]
          },
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "x-scope": "tasks:read",
        "tags": [
          "Files and links"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "link_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "sprint_created": {
      "post": {
        "summary": "Sprint created",
        "description": "Sent for each sprint created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Sprints"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "sprint_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "sprint_deleted": {
      "post": {
        "summary": "Sprint deleted",
        "description": "Sent for each sprint deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Sprints"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "sprint_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "sprint_updated": {
      "post": {
        "summary": "Sprint updated",
        "description": "Sent for each sprint updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Sprints"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "sprint_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "sprint_started": {
      "post": {
        "summary": "Sprint started",
        "description": "Sent for each sprint started that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Sprints"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "sprint_started"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "sprint_closed": {
      "post": {
        "summary": "Sprint closed",
        "description": "Sent for each sprint closed that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Sprints"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "sprint_closed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "board_created": {
      "post": {
        "summary": "Board created",
        "description": "Sent for each board created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Boards"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "board_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "board_deleted": {
      "post": {
        "summary": "Board deleted",
        "description": "Sent for each board deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Boards"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "board_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "board_updated": {
      "post": {
        "summary": "Board updated",
        "description": "Sent for each board updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Boards"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "board_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "board_settings_changed": {
      "post": {
        "summary": "Board settings changed",
        "description": "Sent for each board settings changed that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs boards:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "boards:read"
            ]
          },
          {
            "oauth2": [
              "boards:read"
            ]
          }
        ],
        "x-scope": "boards:read",
        "tags": [
          "Boards"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "board_settings_changed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_released": {
      "post": {
        "summary": "Release released",
        "description": "Sent for each release released that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_released"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Release"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_unreleased": {
      "post": {
        "summary": "Release unreleased",
        "description": "Sent for each release unreleased that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_unreleased"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Release"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_created": {
      "post": {
        "summary": "Release created",
        "description": "Sent for each release created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Release"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_moved": {
      "post": {
        "summary": "Release moved",
        "description": "Sent for each release moved that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_moved"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Release"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_updated": {
      "post": {
        "summary": "Release updated",
        "description": "Sent for each release updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Release"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_merged": {
      "post": {
        "summary": "Release merged",
        "description": "Sent for each release merged that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_merged"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "version_deleted": {
      "post": {
        "summary": "Release deleted",
        "description": "Sent for each release deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Releases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "version_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "project_created": {
      "post": {
        "summary": "Project created",
        "description": "Sent for each project created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "project_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Project"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "project_updated": {
      "post": {
        "summary": "Project updated",
        "description": "Sent for each project updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "project_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Project"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "project_deleted": {
      "post": {
        "summary": "Project deleted",
        "description": "Sent for each project deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "project_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "project_trashed": {
      "post": {
        "summary": "Project moved to the trash",
        "description": "Sent for each project moved to the trash that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "project_trashed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "project_restored": {
      "post": {
        "summary": "Project restored",
        "description": "Sent for each project restored that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "project_restored"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Project"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "project_archived": {
      "post": {
        "summary": "Project archived",
        "description": "Sent for each project archived that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "project_archived"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Project"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "task_type_created": {
      "post": {
        "summary": "Task type created",
        "description": "Sent for each task type created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Task types"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "task_type_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "task_type_updated": {
      "post": {
        "summary": "Task type updated",
        "description": "Sent for each task type updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Task types"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "task_type_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "task_type_deleted": {
      "post": {
        "summary": "Task type deleted",
        "description": "Sent for each task type deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs projects:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-scope": "projects:read",
        "tags": [
          "Task types"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "task_type_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "filter_created": {
      "post": {
        "summary": "Filter created",
        "description": "Sent for each filter created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs filters:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "filters:read"
            ]
          },
          {
            "oauth2": [
              "filters:read"
            ]
          }
        ],
        "x-scope": "filters:read",
        "tags": [
          "Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "filter_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "filter_updated": {
      "post": {
        "summary": "Filter updated",
        "description": "Sent for each filter updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs filters:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "filters:read"
            ]
          },
          {
            "oauth2": [
              "filters:read"
            ]
          }
        ],
        "x-scope": "filters:read",
        "tags": [
          "Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "filter_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "filter_deleted": {
      "post": {
        "summary": "Filter deleted",
        "description": "Sent for each filter deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs filters:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "filters:read"
            ]
          },
          {
            "oauth2": [
              "filters:read"
            ]
          }
        ],
        "x-scope": "filters:read",
        "tags": [
          "Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "filter_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "person_added": {
      "post": {
        "summary": "Person added",
        "description": "Sent for each person added that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs people:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "tags": [
          "People"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "person_added"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Person"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "person_removed": {
      "post": {
        "summary": "Person removed",
        "description": "Sent for each person removed that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs people:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "tags": [
          "People"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "person_removed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "person_changed": {
      "post": {
        "summary": "Person changed",
        "description": "Sent for each person changed that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs people:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "people:read"
            ]
          },
          {
            "oauth2": [
              "people:read"
            ]
          }
        ],
        "x-scope": "people:read",
        "tags": [
          "People"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "person_changed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Person"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "option_changed": {
      "post": {
        "summary": "An option switched",
        "description": "Sent for each an option switched that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs org:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "org:read"
            ]
          },
          {
            "oauth2": [
              "org:read"
            ]
          }
        ],
        "x-scope": "org:read",
        "tags": [
          "Options"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "option_changed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "space_created": {
      "post": {
        "summary": "Space created",
        "description": "Sent for each space created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Spaces"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "space_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Space"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "space_updated": {
      "post": {
        "summary": "Space updated",
        "description": "Sent for each space updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Spaces"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "space_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Space"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "space_deleted": {
      "post": {
        "summary": "Space deleted",
        "description": "Sent for each space deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Spaces"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "space_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_created": {
      "post": {
        "summary": "Page created",
        "description": "Sent for each page created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_published": {
      "post": {
        "summary": "Page published",
        "description": "Sent for each page published that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_published"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_updated": {
      "post": {
        "summary": "Page updated",
        "description": "Sent for each page updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_moved": {
      "post": {
        "summary": "Page moved",
        "description": "Sent for each page moved that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_moved"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_trashed": {
      "post": {
        "summary": "Page moved to the trash",
        "description": "Sent for each page moved to the trash that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_trashed"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_restored": {
      "post": {
        "summary": "Page restored",
        "description": "Sent for each page restored that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_restored"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_deleted": {
      "post": {
        "summary": "Page deleted",
        "description": "Sent for each page deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Pages"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookItem"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_comment_created": {
      "post": {
        "summary": "Page comment created",
        "description": "Sent for each page comment created that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Page comments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_comment_created"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/PageComment"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_comment_updated": {
      "post": {
        "summary": "Page comment updated",
        "description": "Sent for each page comment updated that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Page comments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_comment_updated"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/PageComment"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "page_comment_deleted": {
      "post": {
        "summary": "Page comment deleted",
        "description": "Sent for each page comment deleted that the subscription's person can open, in its projects or spaces (if it names any). The subscription needs docs:read. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "security": [
          {
            "personalToken": [
              "docs:read"
            ]
          },
          {
            "oauth2": [
              "docs:read"
            ]
          }
        ],
        "x-scope": "docs:read",
        "tags": [
          "Page comments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "page_comment_deleted"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/Page"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    },
    "ping": {
      "post": {
        "summary": "Test",
        "description": "Sent when a subscription is created, and by Send a test. Answer it like any delivery. Signed (X-Projqo-Signature); answer 2xx within 10 seconds.",
        "tags": [
          "Test"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The delivery's id: skip one you have handled already."
                  },
                  "event": {
                    "type": "string",
                    "const": "ping"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "api_version": {
                    "type": "string",
                    "const": "v1"
                  },
                  "organisation": {
                    "$ref": "#/components/schemas/WebhookOrganisation"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/WebhookActor"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for projqo itself."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebhookPing"
                  }
                },
                "required": [
                  "id",
                  "event",
                  "created_at",
                  "api_version",
                  "organisation",
                  "actor",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx: delivered. Anything else is tried again later."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Attachment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "mime": {
            "type": "string",
            "description": "The type projqo stored it as (from its name and bytes)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "document",
              "video",
              "other"
            ]
          },
          "size": {
            "type": "integer",
            "description": "In bytes."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "added_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "via": {
            "type": "string",
            "description": "How it came: upload, comment, description, cover or create."
          },
          "comment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "description": "The comment it sits in; such a file is removed by editing the comment."
          },
          "content_url": {
            "type": "string",
            "description": "Where its bytes are read (this API, with the token)."
          },
          "can": {
            "type": "object",
            "properties": {
              "delete": {
                "type": "boolean"
              }
            },
            "required": [
              "delete"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "mime",
          "kind",
          "size",
          "created_at",
          "added_by",
          "via",
          "comment_id",
          "content_url",
          "can"
        ],
        "additionalProperties": false,
        "description": "A file on a task."
      },
      "AttachmentsAdded": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "description": "The files added, in the order sent."
      },
      "AuditEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "actor": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "person",
                  "former",
                  "system",
                  "automation",
                  "staff"
                ]
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ],
            "additionalProperties": false
          },
          "action": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "Projects",
              "Tasks",
              "Boards",
              "Sprints",
              "Releases",
              "Filters",
              "Dashboards",
              "Plans",
              "Docs",
              "Access",
              "Groups",
              "Teams",
              "Support access",
              "Organisation settings",
              "Projects settings",
              "Mail",
              "Webhooks",
              "Backup",
              "Workflows",
              "Fields and screens",
              "Automation",
              "API",
              "Other"
            ]
          },
          "summary": {
            "type": "string"
          },
          "item": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "kind",
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "ip": {
            "type": [
              "string",
              "null"
            ]
          },
          "details": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "id",
          "at",
          "actor",
          "action",
          "category",
          "summary",
          "item",
          "ip",
          "details"
        ],
        "additionalProperties": false,
        "description": "One event in the organisation's audit log."
      },
      "Backlog": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "scrum",
              "kanban"
            ]
          },
          "filtered": {
            "type": "boolean"
          },
          "estimation": {
            "type": "object",
            "properties": {
              "method": {
                "type": "string",
                "enum": [
                  "story_points",
                  "original_estimate",
                  "task_count",
                  "field"
                ]
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "method",
              "label"
            ],
            "additionalProperties": false
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "A sprint's id, backlog, or a kanban board's board (for the section call)."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "sprint",
                    "backlog",
                    "board"
                  ]
                },
                "sprint": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Sprint"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "total": {
                  "type": "integer",
                  "description": "Every task in it the person can open."
                },
                "shown": {
                  "type": "integer",
                  "description": "Of those, the ones the filters keep."
                },
                "counts": {
                  "type": "object",
                  "properties": {
                    "todo": {
                      "type": "integer"
                    },
                    "in_progress": {
                      "type": "integer"
                    },
                    "done": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "todo",
                    "in_progress",
                    "done"
                  ],
                  "additionalProperties": false,
                  "description": "The shown tasks by status category."
                },
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BoardCard"
                  },
                  "description": "The first 100 shown, in rank order."
                },
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "kind",
                "sprint",
                "total",
                "shown",
                "counts",
                "items",
                "next_cursor"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "kind",
          "filtered",
          "estimation",
          "sections"
        ],
        "additionalProperties": false,
        "description": "A board's backlog as its page shows it: a scrum board's active and future sprints, then the backlog; a kanban board's board and backlog. Each in rank order."
      },
      "Board": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "scrum",
              "kanban"
            ]
          },
          "team_board": {
            "type": "boolean",
            "description": "A Team project's own board."
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The project it lives in."
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "A board on a person's profile: that person (else null)."
          },
          "filter": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "query": {
                "type": "string",
                "description": "The board's saved filter, in the query language."
              },
              "problem": {
                "description": "Why the filter doesn't read (the board shows nothing until fixed).",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "query",
              "problem"
            ],
            "additionalProperties": false
          },
          "sub_filter": {
            "type": "string",
            "description": "The board's sub-filter (query language)."
          },
          "ranked": {
            "type": "boolean",
            "description": "Ordered by rank, so cards can be ranked (POST /boards/{board}/rank)."
          },
          "estimation": {
            "type": "string",
            "enum": [
              "story_points",
              "original_estimate",
              "task_count",
              "field"
            ]
          },
          "group_by": {
            "type": "string",
            "description": "The swimlanes the board shows by default (its saved view): none or one of group_by_options."
          },
          "group_by_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "key",
                "label"
              ],
              "additionalProperties": false
            },
            "description": "The swimlanes the tasks call takes as group_by."
          },
          "custom_filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "query": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "query",
                "description"
              ],
              "additionalProperties": false
            },
            "description": "The board's custom filters (custom_filters= in the tasks calls)."
          },
          "rights": {
            "type": "object",
            "properties": {
              "administer": {
                "type": "boolean",
                "description": "The token's person administers the board."
              },
              "manage_sprints": {
                "type": "boolean",
                "description": "May create, change, start and complete sprints (Manage sprints in the project)."
              },
              "parallel_sprints": {
                "type": "boolean",
                "description": "Several sprints may be active on this board at once."
              }
            },
            "required": [
              "administer",
              "manage_sprints",
              "parallel_sprints"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "team_board",
          "project",
          "owner",
          "filter",
          "sub_filter",
          "ranked",
          "estimation",
          "group_by",
          "group_by_options",
          "custom_filters",
          "rights"
        ],
        "additionalProperties": false,
        "description": "A board: where it lives, its filter, swimlanes and rights."
      },
      "BoardCard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "rank": {
            "type": "string",
            "description": "Its place in the one order (compare as text)."
          },
          "column": {
            "type": "string",
            "format": "uuid",
            "description": "The board column its status is in."
          },
          "type": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "level": {
                "type": "integer"
              }
            },
            "required": [
              "id",
              "name",
              "level"
            ],
            "additionalProperties": false
          },
          "status": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "todo",
                  "in_progress",
                  "done"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "category"
            ],
            "additionalProperties": false
          },
          "priority": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "due": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "overdue": {
            "type": "boolean"
          },
          "estimate": {
            "description": "The board's estimate of the task (story points, minutes of the original estimate, or the board's field); null without one or when the board counts tasks.",
            "type": [
              "number",
              "null"
            ]
          },
          "subtasks": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "done": {
                    "type": "integer"
                  },
                  "total": {
                    "type": "integer"
                  }
                },
                "required": [
                  "done",
                  "total"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Its subtasks (not archived): done and all; null without any."
          },
          "flagged": {
            "type": "boolean"
          },
          "done": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "key",
          "summary",
          "rank",
          "column",
          "type",
          "status",
          "priority",
          "assignee",
          "parent",
          "labels",
          "due",
          "overdue",
          "estimate",
          "subtasks",
          "flagged",
          "done"
        ],
        "additionalProperties": false,
        "description": "A task as a board or backlog shows it. GET /tasks/{task} has every field of the task."
      },
      "BoardColumn": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "min": {
            "description": "The column's least tasks, or null.",
            "type": [
              "integer",
              "null"
            ]
          },
          "max": {
            "description": "The column's most tasks, or null.",
            "type": [
              "integer",
              "null"
            ]
          },
          "kanban_backlog": {
            "type": "boolean",
            "description": "A kanban board's backlog column (its tasks are in the backlog)."
          },
          "statuses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "todo",
                    "in_progress",
                    "done"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "category"
              ],
              "additionalProperties": false
            },
            "description": "The statuses whose tasks it shows."
          }
        },
        "required": [
          "id",
          "name",
          "position",
          "min",
          "max",
          "kanban_backlog",
          "statuses"
        ],
        "additionalProperties": false,
        "description": "A board column and the statuses in it."
      },
      "BoardSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "scrum",
              "kanban"
            ]
          },
          "team_board": {
            "type": "boolean",
            "description": "A Team project's own board."
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The project it lives in."
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "A board on a person's profile: that person (else null)."
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "team_board",
          "project",
          "owner"
        ],
        "additionalProperties": false,
        "description": "A board, as the boards directory lists it."
      },
      "BoardTasks": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer"
          },
          "ranked": {
            "type": "boolean"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "total": {
                  "type": "integer",
                  "description": "Every task in it the person can open."
                },
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BoardCard"
                  },
                  "description": "The first 50 in board order."
                },
                "next_cursor": {
                  "description": "For GET /boards/{board}/columns/{column}/tasks; null when they are all here.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "limit": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "ok",
                            "over",
                            "under"
                          ]
                        },
                        "count": {
                          "type": "integer"
                        },
                        "min": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "max": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "state",
                        "count",
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The column's limits and where it stands; null without limits."
                }
              },
              "required": [
                "id",
                "total",
                "items",
                "next_cursor",
                "name",
                "limit"
              ],
              "additionalProperties": false
            }
          },
          "lanes": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "description": "The swimlane's key (lane= in the column call); \"\" is the catch-all lane."
                    },
                    "title": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "total": {
                            "type": "integer",
                            "description": "Every task in it the person can open."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/BoardCard"
                            },
                            "description": "The first 50 in board order."
                          },
                          "next_cursor": {
                            "description": "For GET /boards/{board}/columns/{column}/tasks; null when they are all here.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "total",
                          "items",
                          "next_cursor"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "key",
                    "title",
                    "total",
                    "columns"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "With swimlanes: the tasks per lane and column (the columns' items are empty)."
          },
          "broken_filters": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Custom filters asked for that no longer read (they match nothing)."
          },
          "empty_reason": {
            "description": "Why a board shows nothing, when known (no_active_sprint on a scrum board).",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "total",
          "ranked",
          "columns",
          "lanes",
          "broken_filters",
          "empty_reason"
        ],
        "additionalProperties": false,
        "description": "The tasks on a board as its page draws them: per column (and swimlane) the count and the first cards in board order."
      },
      "Comment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "task": {
            "$ref": "#/components/schemas/TaskRef"
          },
          "thread_id": {
            "type": "string",
            "format": "uuid",
            "description": "The first comment of its thread (its own id for a thread's start); replies are one level deep."
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "null when the author's account is gone."
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/Document"
              }
            ],
            "description": "A document (projqo's document JSON), or Markdown with body_format=markdown."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "edited_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "edited_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "visibility": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "role",
                      "group"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Who may see it, when limited to a project role or a group; null: everyone who can open the task."
          },
          "via": {
            "type": "string",
            "enum": [
              "app",
              "email"
            ],
            "description": "Written in projqo, or a reply by email."
          },
          "reactions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "emoji": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "mine": {
                  "type": "boolean"
                }
              },
              "required": [
                "emoji",
                "count",
                "mine"
              ],
              "additionalProperties": false
            }
          },
          "can": {
            "type": "object",
            "properties": {
              "reply": {
                "type": "boolean"
              },
              "edit": {
                "type": "boolean"
              },
              "delete": {
                "type": "boolean"
              }
            },
            "required": [
              "reply",
              "edit",
              "delete"
            ],
            "additionalProperties": false,
            "description": "What the token's person may do with it now."
          }
        },
        "required": [
          "id",
          "task",
          "thread_id",
          "author",
          "body",
          "created_at",
          "edited_at",
          "edited_by",
          "visibility",
          "via",
          "reactions",
          "can"
        ],
        "additionalProperties": false,
        "description": "A comment on a task."
      },
      "Component": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectRef"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lead": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_assignee": {
            "type": "string",
            "enum": [
              "component_lead",
              "project_default",
              "project_lead",
              "unassigned"
            ],
            "description": "Who a new task with this component and no assignee gets."
          },
          "tasks": {
            "type": "integer",
            "description": "Its tasks the token's person can open."
          }
        },
        "required": [
          "id",
          "project",
          "name",
          "description",
          "lead",
          "default_assignee",
          "tasks"
        ],
        "additionalProperties": false,
        "description": "A component of an Organisation project."
      },
      "DeletedPage": {
        "type": "object",
        "properties": {
          "page_id": {
            "type": "string",
            "format": "uuid"
          },
          "space_id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "live_doc",
              "blog_post",
              "database",
              "folder",
              "smart_link"
            ]
          },
          "title": {
            "type": "string"
          },
          "action": {
            "type": "string",
            "enum": [
              "trashed",
              "restored"
            ],
            "description": "trashed: it (and what was under it) went to the trash; restored: it came back from there."
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "page_id",
          "space_id",
          "kind",
          "title",
          "action",
          "at",
          "by"
        ],
        "additionalProperties": false,
        "description": "A page that went to its space's trash, or came back."
      },
      "DeletedTask": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "description": "Its key when it was deleted."
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          }
        },
        "required": [
          "id",
          "key",
          "project_id",
          "deleted_at"
        ],
        "additionalProperties": false,
        "description": "A task that was deleted (deleted tasks don't come back)."
      },
      "DocsSpaceRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key",
          "name"
        ],
        "additionalProperties": false,
        "description": "A Docs space, by id, key and name."
      },
      "Document": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "doc"
          },
          "content": {
            "type": "array",
            "items": {}
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": {},
        "description": "projqo's rich-text document (the editor's JSON: a doc node with block nodes inside). Mentions are mention nodes with the person's id; task and page links are inlineCard nodes with the address."
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid",
                  "field_required",
                  "invalid_token",
                  "not_in_plan",
                  "insufficient_scope",
                  "refused",
                  "api_off",
                  "read_only",
                  "suspended",
                  "not_found",
                  "method_not_allowed",
                  "conflict",
                  "archived",
                  "transition_not_allowed",
                  "limit_reached",
                  "too_large",
                  "unsupported_media_type",
                  "idempotency_key_reused",
                  "rate_limited",
                  "internal"
                ],
                "description": "What went wrong; the errors guide lists each code's cause and fix."
              },
              "message": {
                "type": "string",
                "description": "In plain words, for a person to read."
              },
              "status": {
                "type": "integer"
              },
              "request_id": {
                "type": "string",
                "description": "Also in the X-Request-Id header; quote it to support."
              },
              "details": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ErrorDetail"
                }
              }
            },
            "required": [
              "code",
              "message",
              "status",
              "request_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "description": "Every error answer has this shape."
      },
      "ErrorDetail": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "The parameter or body field, as a dotted path."
          },
          "code": {
            "type": "string",
            "enum": [
              "required",
              "invalid_value",
              "too_long",
              "too_short",
              "too_big",
              "too_small",
              "unknown_parameter",
              "invalid_cursor"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "field",
          "code",
          "message"
        ],
        "additionalProperties": false,
        "description": "One problem with the request."
      },
      "Field": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The field's key in task answers, create and update bodies and fields= (cf_<key> for a custom field). It never changes when the field is renamed."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "short_text",
              "paragraph",
              "paragraph_plain",
              "date",
              "datetime",
              "number",
              "select",
              "multi_select",
              "cascading_select",
              "radio",
              "checkboxes",
              "user",
              "multi_user",
              "group",
              "multi_group",
              "project",
              "url",
              "labels",
              "read_only_text",
              "formula",
              "custom_formula",
              "rating",
              "slider",
              "yes_no",
              "time_interval",
              "reactions",
              "message_view",
              "message_edit",
              "person_property",
              "days_since_comment",
              "last_commenter",
              "last_public_comment",
              "reporter_domain",
              "assignee_domain",
              "attachment_count",
              "comment_count",
              "time_in_status",
              "first_response",
              "task_type",
              "status",
              "priority",
              "parent",
              "resolution",
              "security_level",
              "sprint",
              "version",
              "versions",
              "components",
              "attachments",
              "linked_tasks",
              "time_tracking",
              "duration",
              "rank",
              "team"
            ],
            "description": "The field's type. Its value's JSON shape is in the guide Field keys and custom fields."
          },
          "custom": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "writable": {
            "type": "boolean",
            "description": "Whether a create or an update sets it by key. Status, type, resolution and sprint change through their own calls; worked-out fields never. A read-only text field is set here (and by automation), never on screen."
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "A Team project's own field: its project. null: an organisation field."
          }
        },
        "required": [
          "key",
          "id",
          "name",
          "type",
          "custom",
          "description",
          "writable",
          "project"
        ],
        "additionalProperties": false,
        "description": "A field of the organisation's tasks: projqo's own (system) or custom, with its key and type."
      },
      "FilterShare": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "project",
              "group",
              "organisation",
              "person"
            ]
          },
          "id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "description": "The project's, group's or person's id; null for the organisation, or for one the caller can't see."
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Who a filter is shared with."
      },
      "HistoryEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "created",
              "change",
              "status"
            ],
            "description": "created: the task was made; change: a field changed; status: it moved."
          },
          "field": {
            "description": "The field's key (status for a move).",
            "type": [
              "string",
              "null"
            ]
          },
          "field_name": {
            "description": "The field's name when it changed.",
            "type": [
              "string",
              "null"
            ]
          },
          "how": {
            "type": "string",
            "description": "How it happened: edit, transition, create, import, automation, move, bulk and the like."
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "actor": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "former": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "former"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Who did it; former when they have left; null for projqo itself."
          },
          "from_status": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "category"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "to_status": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "category"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "old_value": {
            "description": "The stored value before."
          },
          "new_value": {
            "description": "The stored value after."
          },
          "old_text": {
            "description": "The value before, as shown.",
            "type": [
              "string",
              "null"
            ]
          },
          "new_text": {
            "description": "The value after, as shown.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "field",
          "field_name",
          "how",
          "at",
          "actor"
        ],
        "additionalProperties": false,
        "description": "One change to a task, as its History shows it."
      },
      "Invitation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "member",
              "guest"
            ]
          },
          "product_access": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "projects",
                "docs"
              ]
            }
          },
          "status": {
            "type": "string",
            "const": "pending"
          },
          "notified": {
            "type": "boolean",
            "description": "Whether the invitation email was sent."
          }
        },
        "required": [
          "id",
          "email",
          "role",
          "product_access",
          "status",
          "notified"
        ],
        "additionalProperties": false,
        "description": "An invitation: the person joins when they accept it from the email."
      },
      "Label": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "tasks": {
            "type": "integer",
            "description": "Tasks you can open that carry it."
          }
        },
        "required": [
          "name",
          "tasks"
        ],
        "additionalProperties": false
      },
      "LinkType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "outward": {
            "type": "string",
            "description": "The wording from this task: blocks."
          },
          "inward": {
            "type": "string",
            "description": "The wording from the other task: is blocked by."
          },
          "key": {
            "description": "A built-in type's stable key (blocks, clones, splits, …); null for others.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "outward",
          "inward",
          "key"
        ],
        "additionalProperties": false,
        "description": "A kind of link between tasks."
      },
      "Me": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The person's id, the same in every organisation."
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "time_zone": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "organisation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "address": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "address",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "member"
            ],
            "description": "The person's role in the organisation now."
          },
          "token": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "personal",
                  "app"
                ]
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "org:read",
                    "people:read",
                    "people:admin",
                    "projects:read",
                    "projects:write",
                    "tasks:read",
                    "tasks:write",
                    "tasks:delete",
                    "worklogs:read",
                    "worklogs:write",
                    "boards:read",
                    "boards:write",
                    "docs:read",
                    "docs:write",
                    "docs:delete",
                    "filters:read",
                    "filters:write",
                    "webhooks:manage",
                    "dashboards:read",
                    "automation:read",
                    "automation:write"
                  ]
                }
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              }
            },
            "required": [
              "kind",
              "scopes",
              "expires_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "time_zone",
          "language",
          "organisation",
          "role",
          "token"
        ],
        "additionalProperties": false,
        "description": "The token's person and the token itself."
      },
      "MyPermissions": {
        "type": "object",
        "properties": {
          "organisation": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Organisation-wide permissions (Organisation settings' keys)."
          },
          "project": {
            "description": "With project=: what the person may do in that project.",
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "key": {
                "type": "string"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "id",
              "key",
              "permissions"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "organisation"
        ],
        "additionalProperties": false
      },
      "Organisation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "address": {
            "type": "string",
            "description": "The address name in the organisation's links."
          },
          "name": {
            "type": "string"
          },
          "time_zone": {
            "type": "string",
            "description": "The organisation's default time zone (IANA)."
          },
          "week_start": {
            "type": "string",
            "enum": [
              "monday",
              "sunday"
            ]
          },
          "date_format": {
            "type": "string",
            "description": "How the organisation shows dates (Organisation settings' key)."
          },
          "working_hours_per_day": {
            "type": "number"
          },
          "working_days_per_week": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "plan": {
            "description": "Present for the organisation's owners and admins only.",
            "$ref": "#/components/schemas/OrganisationPlan"
          }
        },
        "required": [
          "id",
          "address",
          "name",
          "time_zone",
          "week_start",
          "date_format",
          "working_hours_per_day",
          "working_days_per_week",
          "created_at"
        ],
        "additionalProperties": false,
        "description": "An organisation the token may use."
      },
      "OrganisationPlan": {
        "type": "object",
        "properties": {
          "tier": {
            "type": "string",
            "enum": [
              "free",
              "standard",
              "premium",
              "enterprise",
              "internal"
            ]
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "free, trial, active, past_due or cancelled_at_period_end"
          },
          "seats_used": {
            "type": "integer"
          },
          "seats_max": {
            "type": "integer"
          }
        },
        "required": [
          "tier",
          "name",
          "status",
          "seats_used",
          "seats_max"
        ],
        "additionalProperties": false,
        "description": "The organisation's plan and seats; owners and admins only."
      },
      "Page": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "live_doc",
              "blog_post",
              "database",
              "folder",
              "smart_link"
            ]
          },
          "title": {
            "type": "string",
            "description": "The published title (the draft's with status=draft, and for a page never published)."
          },
          "emoji": {
            "type": [
              "string",
              "null"
            ]
          },
          "space": {
            "$ref": "#/components/schemas/DocsSpaceRef"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "description": "null at the top of the space."
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "trashed"
            ],
            "description": "draft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events)."
          },
          "archived": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "description": "The current published version's number (0 for a page never published). Send it with an update."
          },
          "published": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  "by": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/PersonRef"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "at",
                  "by"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "When the current version was published, and by whom."
          },
          "unpublished_changes": {
            "description": "The draft differs from the published version (someone may be editing it now); null for people who can't edit the page.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "restrictions": {
            "type": "object",
            "properties": {
              "view": {
                "type": "boolean",
                "description": "Only the people listed can open it."
              },
              "edit": {
                "type": "boolean",
                "description": "Only the people listed can change it."
              }
            },
            "required": [
              "view",
              "edit"
            ],
            "additionalProperties": false
          },
          "url": {
            "description": "A smart link's address.",
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "$ref": "#/components/schemas/Document"
                  }
                ],
                "description": "A document (projqo's document JSON), or Markdown with body_format=markdown."
              },
              {
                "type": "null"
              }
            ],
            "description": "The published body (the draft's with status=draft, and for a page never published); null for folders and links."
          },
          "can": {
            "type": "object",
            "properties": {
              "edit": {
                "type": "boolean"
              },
              "delete": {
                "type": "boolean"
              },
              "comment": {
                "type": "boolean"
              }
            },
            "required": [
              "edit",
              "delete",
              "comment"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "emoji",
          "space",
          "parent_id",
          "state",
          "archived",
          "version",
          "published",
          "unpublished_changes",
          "owner",
          "created_by",
          "created_at",
          "updated_at",
          "labels",
          "restrictions",
          "url",
          "body",
          "can"
        ],
        "additionalProperties": false,
        "description": "A Docs page, live doc, blog post or other item of a space."
      },
      "PageAttachment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The current version's id."
          },
          "name": {
            "type": "string"
          },
          "mime": {
            "type": "string"
          },
          "size": {
            "type": "integer",
            "description": "In bytes."
          },
          "version": {
            "type": "integer"
          },
          "comment": {
            "type": "string"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "added_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "content_url": {
            "type": "string",
            "description": "Where its bytes are read (this API)."
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "version": {
                  "type": "integer"
                },
                "size": {
                  "type": "integer",
                  "description": "In bytes."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "UTC, with Z."
                },
                "added_by": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PersonRef"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "content_url": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "version",
                "size",
                "created_at",
                "added_by",
                "content_url"
              ],
              "additionalProperties": false
            },
            "description": "Every version, newest first."
          }
        },
        "required": [
          "id",
          "name",
          "mime",
          "size",
          "version",
          "comment",
          "labels",
          "created_at",
          "added_by",
          "content_url",
          "versions"
        ],
        "additionalProperties": false,
        "description": "A file on a Docs page, with its versions."
      },
      "PageAttachmentsAdded": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PageAttachment"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "description": "The files added, in the order sent."
      },
      "PageComment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "page": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "title"
            ],
            "additionalProperties": false
          },
          "thread_id": {
            "type": "string",
            "format": "uuid",
            "description": "The thread's first comment (its own id for a thread's start)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "footer",
              "inline"
            ],
            "description": "footer: under the page; inline: on a piece of its text (read only here)."
          },
          "quote": {
            "description": "An inline thread's start: the text it was made on.",
            "type": [
              "string",
              "null"
            ]
          },
          "anchor_gone": {
            "type": "boolean",
            "description": "An inline thread whose text has left the page."
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string",
            "description": "The comment as plain text."
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/Document"
              }
            ],
            "description": "A document (projqo's document JSON), or Markdown with body_format=markdown."
          },
          "resolved": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "edited_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "can": {
            "type": "object",
            "properties": {
              "reply": {
                "type": "boolean"
              },
              "edit": {
                "type": "boolean"
              },
              "delete": {
                "type": "boolean"
              }
            },
            "required": [
              "reply",
              "edit",
              "delete"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "page",
          "thread_id",
          "kind",
          "quote",
          "anchor_gone",
          "author",
          "text",
          "body",
          "resolved",
          "created_at",
          "edited_at",
          "can"
        ],
        "additionalProperties": false,
        "description": "A comment on a Docs page."
      },
      "PageLabels": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "labels"
        ],
        "additionalProperties": false,
        "description": "A page's labels, by name."
      },
      "PageSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "live_doc",
              "blog_post",
              "database",
              "folder",
              "smart_link"
            ]
          },
          "title": {
            "type": "string"
          },
          "emoji": {
            "type": [
              "string",
              "null"
            ]
          },
          "draft": {
            "type": "boolean",
            "description": "Never published (only its author sees it)."
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "description": "null at the top of the space."
          },
          "has_children": {
            "type": "boolean"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "emoji",
          "draft",
          "parent_id",
          "has_children",
          "updated_at",
          "created_by"
        ],
        "additionalProperties": false,
        "description": "An item of a space's tree."
      },
      "PageVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "number": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "published_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "comment": {
            "type": "string"
          },
          "restored_from": {
            "description": "The version it restored, when it was a restore.",
            "type": [
              "integer",
              "null"
            ]
          },
          "current": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "published_at",
          "published_by",
          "comment",
          "restored_from",
          "current"
        ],
        "additionalProperties": false,
        "description": "A published version of a page."
      },
      "PageVersionWithBody": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "number": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "published_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "comment": {
            "type": "string"
          },
          "restored_from": {
            "description": "The version it restored, when it was a restore.",
            "type": [
              "integer",
              "null"
            ]
          },
          "current": {
            "type": "boolean"
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/Document"
              }
            ],
            "description": "A document (projqo's document JSON), or Markdown with body_format=markdown."
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "published_at",
          "published_by",
          "comment",
          "restored_from",
          "current",
          "body"
        ],
        "additionalProperties": false,
        "description": "A published version of a page, with its body."
      },
      "Person": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The person's id: their account's, the same in every organisation."
          },
          "name": {
            "type": "string"
          },
          "email": {
            "description": "Null when the organisation's email visibility hides it from the caller.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "former"
            ],
            "description": "former: removed from the organisation; their work keeps their name."
          },
          "role": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "owner",
                  "admin",
                  "member",
                  "guest"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Their role in the organisation; null for a former member."
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "department": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "joined_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "status",
          "role",
          "job_title",
          "department",
          "location",
          "time_zone",
          "language",
          "joined_at"
        ],
        "additionalProperties": false,
        "description": "A person in the organisation."
      },
      "PersonRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "A person, by id and name."
      },
      "Priority": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "colour": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "icon",
          "colour"
        ],
        "additionalProperties": false,
        "description": "A priority, in the organisation's order."
      },
      "Project": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "team",
              "organisation"
            ],
            "description": "team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "family": {
            "type": "string",
            "enum": [
              "software",
              "business"
            ]
          },
          "lead": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "former": {
                    "type": "boolean",
                    "description": "true when the lead has left the organisation."
                  }
                },
                "required": [
                  "id",
                  "name",
                  "former"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "category": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "can_administer": {
            "type": "boolean",
            "description": "Whether the token's person administers the project."
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "icon": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "default_assignee": {
            "type": "string",
            "enum": [
              "lead",
              "unassigned"
            ]
          },
          "features": {
            "type": "object",
            "properties": {
              "sprints": {
                "type": "boolean"
              },
              "estimation": {
                "type": "string",
                "enum": [
                  "off",
                  "story_points",
                  "time"
                ]
              },
              "standups": {
                "type": "boolean"
              },
              "views": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "is_default": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "kind",
                    "name",
                    "is_default"
                  ],
                  "additionalProperties": false
                },
                "description": "The project's views (tabs): board, backlog, list, releases, …"
              }
            },
            "required": [
              "sprints",
              "estimation",
              "standups",
              "views"
            ],
            "additionalProperties": false,
            "description": "What is switched on in the project."
          },
          "docs_space": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "key",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The linked Docs space, when the token's person can open it."
          },
          "my_roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "my_permissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "kind",
          "state",
          "family",
          "lead",
          "category",
          "can_administer",
          "description",
          "url",
          "icon",
          "template",
          "default_assignee",
          "features",
          "docs_space",
          "my_roles",
          "my_permissions",
          "created_at",
          "archived_at"
        ],
        "additionalProperties": false,
        "description": "A project the token's person can open."
      },
      "ProjectCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "description": "For organisation owners and admins.",
            "type": "string"
          },
          "projects": {
            "description": "How many projects (not in the trash) have it; owners and admins.",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "A project category."
      },
      "ProjectField": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The field's key in task answers, create and update bodies and fields= (cf_<key> for a custom field). It never changes when the field is renamed."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "short_text",
              "paragraph",
              "paragraph_plain",
              "date",
              "datetime",
              "number",
              "select",
              "multi_select",
              "cascading_select",
              "radio",
              "checkboxes",
              "user",
              "multi_user",
              "group",
              "multi_group",
              "project",
              "url",
              "labels",
              "read_only_text",
              "formula",
              "custom_formula",
              "rating",
              "slider",
              "yes_no",
              "time_interval",
              "reactions",
              "message_view",
              "message_edit",
              "person_property",
              "days_since_comment",
              "last_commenter",
              "last_public_comment",
              "reporter_domain",
              "assignee_domain",
              "attachment_count",
              "comment_count",
              "time_in_status",
              "first_response",
              "task_type",
              "status",
              "priority",
              "parent",
              "resolution",
              "security_level",
              "sprint",
              "version",
              "versions",
              "components",
              "attachments",
              "linked_tasks",
              "time_tracking",
              "duration",
              "rank",
              "team"
            ],
            "description": "The field's type. Its value's JSON shape is in the guide Field keys and custom fields."
          },
          "custom": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "writable": {
            "type": "boolean",
            "description": "Whether a create or an update sets it by key. Status, type, resolution and sprint change through their own calls; worked-out fields never. A read-only text field is set here (and by automation), never on screen."
          },
          "task_types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "required": {
                  "type": "boolean",
                  "description": "A task of this type can't be created or saved without it (the field scheme's required, or the type's layout in a Team project)."
                },
                "on_create_screen": {
                  "type": "boolean",
                  "description": "The create screen for this type shows it."
                }
              },
              "required": [
                "id",
                "name",
                "required",
                "on_create_screen"
              ],
              "additionalProperties": false
            },
            "description": "The project's task types that have the field, with whether each requires it."
          }
        },
        "required": [
          "key",
          "id",
          "name",
          "type",
          "custom",
          "description",
          "writable",
          "task_types"
        ],
        "additionalProperties": false,
        "description": "A field of a project's tasks, per task type."
      },
      "ProjectKeyRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key"
        ],
        "additionalProperties": false,
        "description": "A project, by id and key."
      },
      "ProjectPeopleAdded": {
        "type": "object",
        "properties": {
          "added": {
            "type": "integer",
            "description": "How many new assignments were made."
          },
          "invited": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Emails invited to the organisation with this role (organisation admins)."
          },
          "refused": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "who": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "who",
                "reason"
              ],
              "additionalProperties": false
            },
            "description": "Who wasn't added, and why, in the app's words."
          }
        },
        "required": [
          "added",
          "invited",
          "refused"
        ],
        "additionalProperties": false
      },
      "ProjectPerson": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The assignment's id (change or remove it by this id)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "person",
              "group"
            ]
          },
          "person": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "description": "Not shown to guests.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "guest": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "email",
                  "guest"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "group": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "members": {
                    "type": "integer"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "members"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "key": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "key",
              "name"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "kind",
          "person",
          "group",
          "role"
        ],
        "additionalProperties": false,
        "description": "A person or group holding a role in a project."
      },
      "ProjectPersonPermissions": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/ProjectRef"
          },
          "person": {
            "$ref": "#/components/schemas/PersonRef"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "project",
          "person",
          "roles",
          "permissions"
        ],
        "additionalProperties": false
      },
      "ProjectPriority": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "colour": {
            "type": "string"
          },
          "default": {
            "type": "boolean",
            "description": "A new task in the project gets it."
          }
        },
        "required": [
          "id",
          "name",
          "icon",
          "colour",
          "default"
        ],
        "additionalProperties": false,
        "description": "A priority a project's tasks may have."
      },
      "ProjectRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key",
          "name"
        ],
        "additionalProperties": false,
        "description": "A project, by id, key and name."
      },
      "ProjectRole": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "built_in": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "holders": {
            "type": "integer",
            "description": "People and groups holding it in this project."
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "description",
          "built_in",
          "permissions",
          "holders"
        ],
        "additionalProperties": false,
        "description": "A role people hold in a project."
      },
      "ProjectSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "team",
              "organisation"
            ],
            "description": "team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "family": {
            "type": "string",
            "enum": [
              "software",
              "business"
            ]
          },
          "lead": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "former": {
                    "type": "boolean",
                    "description": "true when the lead has left the organisation."
                  }
                },
                "required": [
                  "id",
                  "name",
                  "former"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "category": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "can_administer": {
            "type": "boolean",
            "description": "Whether the token's person administers the project."
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "kind",
          "state",
          "family",
          "lead",
          "category",
          "can_administer"
        ],
        "additionalProperties": false,
        "description": "A project as lists show it."
      },
      "RankedTasks": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "key": {
                  "type": "string"
                },
                "rank": {
                  "type": "string"
                },
                "sprint": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The open sprint it is in now."
                }
              },
              "required": [
                "id",
                "key",
                "rank",
                "sprint"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "description": "The tasks moved, with their new rank and sprint."
      },
      "Release": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectRef"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "release_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unreleased",
              "released"
            ]
          },
          "archived": {
            "type": "boolean"
          },
          "released_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "driver": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "approvals_required": {
            "type": "boolean"
          },
          "progress": {
            "type": "object",
            "properties": {
              "todo": {
                "type": "integer"
              },
              "in_progress": {
                "type": "integer"
              },
              "done": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              },
              "unresolved": {
                "type": "integer"
              }
            },
            "required": [
              "todo",
              "in_progress",
              "done",
              "total",
              "unresolved"
            ],
            "additionalProperties": false,
            "description": "Its tasks (Fix version) by status category, archived tasks left out."
          },
          "stages": {
            "description": "Get a release: its stages.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "kind"
              ],
              "additionalProperties": false
            }
          },
          "approvers": {
            "description": "Get a release: its approvers and their answers.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "decided_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "description": "UTC, with Z."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "state",
                "decided_at"
              ],
              "additionalProperties": false
            }
          },
          "can_manage": {
            "description": "Get a release: whether the token's person may manage releases here.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "project",
          "name",
          "description",
          "start_date",
          "release_date",
          "status",
          "archived",
          "released_on",
          "driver",
          "stage",
          "approvals_required",
          "progress"
        ],
        "additionalProperties": false,
        "description": "A release (version) of a project."
      },
      "Resolution": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Why a task was closed (set by its workflow)."
      },
      "SavedFilter": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "query": {
            "type": "string",
            "description": "The query, in Advanced search's query language."
          },
          "columns": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "viewers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterShare"
            }
          },
          "editors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterShare"
            }
          },
          "stars": {
            "type": "integer"
          },
          "starred": {
            "type": "boolean"
          },
          "can": {
            "type": "object",
            "properties": {
              "edit": {
                "type": "boolean"
              },
              "share": {
                "type": "boolean"
              },
              "delete": {
                "type": "boolean"
              }
            },
            "required": [
              "edit",
              "share",
              "delete"
            ],
            "additionalProperties": false
          },
          "tasks_url": {
            "type": "string",
            "description": "Where its tasks are listed (GET /tasks?filter=<id>; tasks:read)."
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "query",
          "columns",
          "owner",
          "viewers",
          "editors",
          "stars",
          "starred",
          "can",
          "tasks_url"
        ],
        "additionalProperties": false,
        "description": "A saved filter of tasks."
      },
      "SearchResult": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "page",
              "project",
              "space",
              "person"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "description": "A task's summary, a page's title, a person's name…"
          },
          "snippet": {
            "type": "string",
            "description": "Up to 200 characters around the first match (a person: their job title)."
          },
          "key": {
            "description": "A task's or project's key.",
            "type": [
              "string",
              "null"
            ]
          },
          "content_kind": {
            "description": "A page's kind: page, live_doc or blog_post.",
            "type": [
              "string",
              "null"
            ]
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "space": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DocsSpaceRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "draft": {
            "type": "boolean"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "id",
          "title",
          "snippet",
          "key",
          "content_kind",
          "project",
          "space",
          "labels",
          "draft",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "A thing quick search found."
      },
      "Space": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "collaboration",
              "knowledge_base",
              "custom",
              "personal"
            ]
          },
          "personal": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "home_page_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "current",
              "archived",
              "trashed"
            ]
          },
          "status_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What the token's person may do in the space (its space permissions, as the app reads them)."
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "icon",
          "purpose",
          "personal",
          "description",
          "categories",
          "home_page_id",
          "owner",
          "status",
          "status_at",
          "features",
          "created_at",
          "permissions"
        ],
        "additionalProperties": false,
        "description": "A Docs space."
      },
      "SpaceHolder": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "person",
              "group"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The person's or the group's id."
          },
          "name": {
            "type": "string"
          },
          "email": {
            "description": "A person's email; null for groups, and for guests reading it.",
            "type": [
              "string",
              "null"
            ]
          },
          "guest": {
            "type": "boolean"
          },
          "members": {
            "description": "A group's number of members.",
            "type": [
              "integer",
              "null"
            ]
          },
          "role": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "key": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "key",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The space role; null for custom access."
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "kind",
          "id",
          "name",
          "email",
          "guest",
          "members",
          "role",
          "permissions"
        ],
        "additionalProperties": false,
        "description": "A person or group with a role in a space."
      },
      "SpaceRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key"
        ],
        "additionalProperties": false,
        "description": "A Docs space, by id and key."
      },
      "SpaceSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "personal": {
            "type": "boolean"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "current",
              "archived",
              "trashed"
            ]
          },
          "status_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "starred": {
            "type": "boolean",
            "description": "The token's person starred it."
          },
          "watching": {
            "type": "boolean",
            "description": "The token's person watches it."
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "icon",
          "personal",
          "categories",
          "owner",
          "status",
          "status_at",
          "starred",
          "watching"
        ],
        "additionalProperties": false,
        "description": "A Docs space in a list."
      },
      "Sprint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "board": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "name": {
            "type": "string"
          },
          "goal": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "future",
              "active",
              "closed"
            ]
          },
          "position": {
            "type": "string",
            "description": "Its place among the board's future sprints (compare as text)."
          },
          "duration": {
            "type": "string",
            "enum": [
              "1w",
              "2w",
              "3w",
              "4w",
              "custom"
            ],
            "description": "1w to 4w, or custom dates."
          },
          "start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "planned_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ],
            "description": "A started sprint: the start it was planned with."
          },
          "planned_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_start": {
            "type": "boolean",
            "description": "A future sprint starts by itself at its start."
          },
          "auto_complete": {
            "type": "boolean",
            "description": "It completes by itself at its end."
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "tasks": {
            "type": "integer",
            "description": "Its tasks the token's person can open (a completed sprint: those it completed with)."
          }
        },
        "required": [
          "id",
          "board",
          "name",
          "goal",
          "state",
          "position",
          "duration",
          "start",
          "end",
          "planned_start",
          "planned_end",
          "auto_start",
          "auto_complete",
          "started_at",
          "completed_at",
          "tasks"
        ],
        "additionalProperties": false,
        "description": "A sprint of a scrum board."
      },
      "SprintCompleted": {
        "type": "object",
        "properties": {
          "sprint": {
            "$ref": "#/components/schemas/Sprint"
          },
          "completed": {
            "type": "integer"
          },
          "open": {
            "type": "integer",
            "description": "The open tasks moved (that you can see)."
          },
          "to": {
            "type": "string",
            "enum": [
              "sprint",
              "new",
              "backlog"
            ]
          },
          "moved_to": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The sprint the open tasks went to (null: the backlog)."
          }
        },
        "required": [
          "sprint",
          "completed",
          "open",
          "to",
          "moved_to"
        ],
        "additionalProperties": false,
        "description": "A completed sprint and where its tasks went."
      },
      "SprintCompletion": {
        "type": "object",
        "properties": {
          "completed": {
            "type": "integer"
          },
          "open": {
            "type": "integer"
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "default": {
            "type": "object",
            "properties": {
              "to": {
                "type": "string",
                "enum": [
                  "sprint",
                  "new",
                  "backlog"
                ]
              },
              "sprint": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "to",
              "sprint"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "completed",
          "open",
          "destinations",
          "default"
        ],
        "additionalProperties": false,
        "description": "What completing the sprint would do."
      },
      "Status": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "todo",
              "in_progress",
              "done"
            ]
          },
          "colour": {
            "type": "string",
            "enum": [
              "grey",
              "blue",
              "green"
            ],
            "description": "The category's colour, as projqo draws the status: to do grey, in progress blue, done green."
          },
          "icon": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "A Team project's own status: its project. null: the organisation's."
          }
        },
        "required": [
          "id",
          "name",
          "category",
          "colour",
          "icon",
          "description",
          "project"
        ],
        "additionalProperties": false,
        "description": "A status, with its category and colour."
      },
      "Task": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "description": "Its key now (a moved task's key changes)."
          },
          "project": {
            "$ref": "#/components/schemas/ProjectRef"
          },
          "type": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "level": {
                "type": "integer"
              }
            },
            "required": [
              "id",
              "name",
              "level"
            ],
            "additionalProperties": false,
            "description": "Its task type; level -1 is a subtask type, 0 a task, 1 an Epic."
          },
          "summary": {
            "type": "string"
          },
          "status": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "todo",
                  "in_progress",
                  "done"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "category"
            ],
            "additionalProperties": false
          },
          "priority": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "resolution": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "reporter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The parent task; null without one, or when it can't be opened."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "due": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "story_points": {
            "type": [
              "number",
              "null"
            ]
          },
          "estimate": {
            "description": "The original estimate, in minutes.",
            "type": [
              "number",
              "null"
            ]
          },
          "environment": {
            "type": [
              "string",
              "null"
            ]
          },
          "team": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "sprint": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The open sprint it is in (boards change it)."
          },
          "fix_versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "affects_versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "time_spent_seconds": {
            "type": "integer"
          },
          "time_remaining_seconds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "$ref": "#/components/schemas/Document"
                  }
                ],
                "description": "A document (projqo's document JSON), or Markdown with body_format=markdown."
              },
              {
                "type": "null"
              }
            ]
          },
          "flagged": {
            "type": "boolean"
          },
          "archived": {
            "type": "boolean"
          },
          "rank": {
            "type": "string",
            "description": "Its place in the backlog's order (compare as text)."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "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"
        ],
        "additionalProperties": {},
        "description": "A task. Custom fields come as cf_<key> (their keys are in the fields calls); the value is as the field keeps it: text, a number, a date, an option's id, a person's id, or a list of them."
      },
      "TaskCount": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "required": [
          "count"
        ],
        "additionalProperties": false,
        "description": "How many tasks match."
      },
      "TaskJob": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "description": "move or clone (and the app's other task jobs)."
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "done",
              "failed"
            ]
          },
          "progress": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "outcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "The task's key when the job took it."
                },
                "ok": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string"
                },
                "new_key": {
                  "type": "string"
                }
              },
              "required": [
                "key",
                "ok"
              ],
              "additionalProperties": false
            }
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "new_key": {
                    "type": "string"
                  },
                  "new_task_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "When done: the moved task's new key, or the copy's key and id."
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "state",
          "progress",
          "total",
          "outcomes",
          "result",
          "error",
          "created_at",
          "finished_at"
        ],
        "additionalProperties": false,
        "description": "A move or clone, run in the background as in the app. Follow it until done."
      },
      "TaskKeyRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key"
        ],
        "additionalProperties": false,
        "description": "A task, by id and key."
      },
      "TaskLabels": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "labels"
        ],
        "additionalProperties": false,
        "description": "A task's labels."
      },
      "TaskLink": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "direction": {
            "type": "string",
            "enum": [
              "outward",
              "inward"
            ],
            "description": "outward: this task → the other (blocks); inward: the other → this one."
          },
          "phrase": {
            "type": "string",
            "description": "How the link reads from this task: is blocked by."
          },
          "blocking": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "blocks",
                  "blocked_by"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "For a blocking link (a dependency): this task blocks the other, or is blocked by it; null for other links."
          },
          "task": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "key": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "status": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "category"
                ],
                "additionalProperties": false
              },
              "archived": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "key",
              "summary",
              "status",
              "archived"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "type",
          "direction",
          "phrase",
          "blocking",
          "task"
        ],
        "additionalProperties": false,
        "description": "A link from this task to another."
      },
      "TaskRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key",
          "summary"
        ],
        "additionalProperties": false,
        "description": "A task, by id, key and summary."
      },
      "TaskTransitions": {
        "type": "object",
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "todo",
                      "in_progress",
                      "done"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "category"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "can_transition": {
            "type": "boolean",
            "description": "Whether the person may move this task at all now."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Transition"
            }
          }
        },
        "required": [
          "status",
          "can_transition",
          "items"
        ],
        "additionalProperties": false
      },
      "TaskType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "level": {
            "type": "integer",
            "description": "-1 a subtask type, 0 a task, 1 an Epic."
          },
          "description": {
            "type": "string"
          },
          "default": {
            "type": "boolean",
            "description": "The type a new task gets when none is given."
          },
          "can_create": {
            "type": "boolean",
            "description": "Whether the token's person may create tasks of this type here now (Create tasks, the type's restriction, an active project; a subtask type needs subtasks switched on and a parent)."
          },
          "workflow": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "icon",
          "level",
          "description",
          "default",
          "can_create",
          "workflow"
        ],
        "additionalProperties": false,
        "description": "A task type of a project."
      },
      "TaskTypeField": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The field's key in task answers, create and update bodies and fields= (cf_<key> for a custom field). It never changes when the field is renamed."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "short_text",
              "paragraph",
              "paragraph_plain",
              "date",
              "datetime",
              "number",
              "select",
              "multi_select",
              "cascading_select",
              "radio",
              "checkboxes",
              "user",
              "multi_user",
              "group",
              "multi_group",
              "project",
              "url",
              "labels",
              "read_only_text",
              "formula",
              "custom_formula",
              "rating",
              "slider",
              "yes_no",
              "time_interval",
              "reactions",
              "message_view",
              "message_edit",
              "person_property",
              "days_since_comment",
              "last_commenter",
              "last_public_comment",
              "reporter_domain",
              "assignee_domain",
              "attachment_count",
              "comment_count",
              "time_in_status",
              "first_response",
              "task_type",
              "status",
              "priority",
              "parent",
              "resolution",
              "security_level",
              "sprint",
              "version",
              "versions",
              "components",
              "attachments",
              "linked_tasks",
              "time_tracking",
              "duration",
              "rank",
              "team"
            ],
            "description": "The field's type. Its value's JSON shape is in the guide Field keys and custom fields."
          },
          "custom": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "writable": {
            "type": "boolean",
            "description": "Whether a create or an update sets it by key. Status, type, resolution and sprint change through their own calls; worked-out fields never. A read-only text field is set here (and by automation), never on screen."
          },
          "required": {
            "type": "boolean"
          },
          "on_create_screen": {
            "type": "boolean"
          },
          "default_value": {
            "description": "What a new task gets when the create leaves the field out (the field's context's default; the project's default priority); null for none."
          },
          "options": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "value": {
                      "type": "string"
                    },
                    "parent_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "A dependent dropdown's second-level option: its parent option."
                    },
                    "disabled": {
                      "type": "boolean",
                      "description": "Switched off: kept by tasks that hold it, not given to others."
                    }
                  },
                  "required": [
                    "id",
                    "value",
                    "parent_id",
                    "disabled"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "A list field's options in this project and type (its context), in order; null for other types."
          },
          "config": {
            "type": "object",
            "properties": {
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              },
              "step": {
                "type": "number"
              },
              "scale": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "A number, slider or rating field's limits."
          }
        },
        "required": [
          "key",
          "id",
          "name",
          "type",
          "custom",
          "description",
          "writable",
          "required",
          "on_create_screen",
          "default_value",
          "options",
          "config"
        ],
        "additionalProperties": false,
        "description": "A field of one task type in a project."
      },
      "Team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "official",
              "team"
            ],
            "description": "official teams are made and changed by admins."
          },
          "joining": {
            "type": "string",
            "enum": [
              "open",
              "invite"
            ],
            "description": "open: anyone may join; invite: added by its members."
          },
          "icon": {
            "type": "string",
            "enum": [
              "users",
              "rocket",
              "code",
              "palette",
              "megaphone",
              "wrench",
              "shield",
              "heart",
              "briefcase",
              "globe",
              "lightbulb",
              "flask"
            ]
          },
          "member_count": {
            "type": "integer"
          },
          "is_member": {
            "type": "boolean",
            "description": "Whether the token's person is on the team."
          },
          "archived": {
            "type": "boolean"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "type",
          "joining",
          "icon",
          "member_count",
          "is_member",
          "archived",
          "archived_at",
          "parent",
          "created_at"
        ],
        "additionalProperties": false,
        "description": "A team. A team gives no access: it groups people."
      },
      "TeamMember": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "added_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          }
        },
        "required": [
          "id",
          "name",
          "added_at"
        ],
        "additionalProperties": false
      },
      "TimeTracking": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "hours_per_day": {
            "type": "number"
          },
          "days_per_week": {
            "type": "number"
          },
          "format": {
            "type": "string",
            "enum": [
              "pretty",
              "days",
              "hours"
            ]
          },
          "unit": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ]
          },
          "copy_comment": {
            "type": "boolean",
            "description": "A comment written while logging work is also kept as the work log's note."
          }
        },
        "required": [
          "enabled",
          "hours_per_day",
          "days_per_week",
          "format",
          "unit",
          "copy_comment"
        ],
        "additionalProperties": false,
        "description": "The organisation's time tracking settings."
      },
      "Transition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Run it with POST /tasks/{task}/transitions/{id}."
          },
          "name": {
            "type": "string"
          },
          "to": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "todo",
                  "in_progress",
                  "done"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "category"
            ],
            "additionalProperties": false
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "The field's key in fields (cf_<key> for custom)."
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "required": {
                  "type": "boolean"
                }
              },
              "required": [
                "key",
                "name",
                "type",
                "required"
              ],
              "additionalProperties": false
            },
            "description": "The fields its screen asks for; empty without a screen."
          }
        },
        "required": [
          "id",
          "name",
          "to",
          "fields"
        ],
        "additionalProperties": false,
        "description": "A transition open to the person now."
      },
      "TrashedPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "live_doc",
              "blog_post",
              "database",
              "folder",
              "smart_link"
            ]
          },
          "title": {
            "type": "string"
          },
          "trashed_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "trashed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "trashed_at",
          "trashed_by"
        ],
        "additionalProperties": false,
        "description": "An item in a space's trash (with what went with it)."
      },
      "TrashedProject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "team",
              "organisation"
            ],
            "description": "team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes."
          },
          "trashed_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "trashed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it will be deleted for good."
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "kind",
          "trashed_at",
          "trashed_by",
          "deleted_at"
        ],
        "additionalProperties": false,
        "description": "A project in the trash."
      },
      "Watcher": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "guest": {
            "type": "boolean",
            "description": "A guest of the organisation."
          }
        },
        "required": [
          "id",
          "name",
          "guest"
        ],
        "additionalProperties": false,
        "description": "A person watching a task."
      },
      "WatcherList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Watcher"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to read the next page; null on the last page.",
            "type": [
              "string",
              "null"
            ]
          },
          "total": {
            "description": "The number of items in the whole list, with count=true.",
            "type": "integer"
          },
          "watching": {
            "type": "boolean",
            "description": "Whether the token's person watches the task."
          },
          "can_manage": {
            "type": "boolean",
            "description": "Whether the token's person may add and remove others."
          }
        },
        "required": [
          "items",
          "next_cursor",
          "watching",
          "can_manage"
        ],
        "additionalProperties": false
      },
      "Webhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectKeyRef"
            },
            "description": "Only events about these projects' things; empty: every project."
          },
          "spaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpaceRef"
            },
            "description": "Only Docs events in these spaces; empty: every space."
          },
          "task_query": {
            "description": "Only task events whose task matches this query.",
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "switched_off": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "admin",
                      "failing"
                    ],
                    "description": "owner: switched off with this API; admin: an organisation admin switched it off (only they switch it on); failing: 50 failed deliveries in a row or 3 days of failures."
                  },
                  "at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "description": "UTC, with Z."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "reason",
                  "at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "secret_last_four": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous_secret_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ],
            "description": "While set, the old secret signs too (X-Projqo-Signature-Previous)."
          },
          "health": {
            "type": "object",
            "properties": {
              "failures_in_a_row": {
                "type": "integer"
              },
              "failing_since": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_success_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "failures_in_a_row",
              "failing_since",
              "last_success_at"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "events",
          "projects",
          "spaces",
          "task_query",
          "enabled",
          "switched_off",
          "secret_last_four",
          "previous_secret_expires_at",
          "health",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "A webhook subscription of this token or app connection."
      },
      "WebhookActor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Who made the change."
      },
      "WebhookCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectKeyRef"
            },
            "description": "Only events about these projects' things; empty: every project."
          },
          "spaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpaceRef"
            },
            "description": "Only Docs events in these spaces; empty: every space."
          },
          "task_query": {
            "description": "Only task events whose task matches this query.",
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "switched_off": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "admin",
                      "failing"
                    ],
                    "description": "owner: switched off with this API; admin: an organisation admin switched it off (only they switch it on); failing: 50 failed deliveries in a row or 3 days of failures."
                  },
                  "at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "description": "UTC, with Z."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "reason",
                  "at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "secret_last_four": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous_secret_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ],
            "description": "While set, the old secret signs too (X-Projqo-Signature-Previous)."
          },
          "health": {
            "type": "object",
            "properties": {
              "failures_in_a_row": {
                "type": "integer"
              },
              "failing_since": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_success_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "description": "UTC, with Z."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "failures_in_a_row",
              "failing_since",
              "last_success_at"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "secret": {
            "type": "string",
            "description": "The subscription's signing secret. Shown only now: keep it."
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "events",
          "projects",
          "spaces",
          "task_query",
          "enabled",
          "switched_off",
          "secret_last_four",
          "previous_secret_expires_at",
          "health",
          "created_at",
          "updated_at",
          "secret"
        ],
        "additionalProperties": false,
        "description": "A new subscription with its secret, shown once."
      },
      "WebhookDelivery": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "event": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "sent",
              "failed",
              "skipped"
            ],
            "description": "queued: waiting to be sent (or tried again); sent: your address answered 2xx; failed: it didn't, after every attempt; skipped: not sent, with the reason."
          },
          "attempts": {
            "type": "integer"
          },
          "response_code": {
            "type": [
              "integer",
              "null"
            ]
          },
          "duration_ms": {
            "type": [
              "integer",
              "null"
            ]
          },
          "reason": {
            "description": "Why it failed or was skipped.",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "last_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "next_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "UTC, with Z."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "event",
          "status",
          "attempts",
          "response_code",
          "duration_ms",
          "reason",
          "created_at",
          "last_attempt_at",
          "next_attempt_at",
          "sent_at"
        ],
        "additionalProperties": false,
        "description": "A delivery, kept 30 days."
      },
      "WebhookItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "comment",
              "worklog",
              "attachment",
              "link",
              "sprint",
              "board",
              "release",
              "project",
              "task_type",
              "filter",
              "person",
              "organisation",
              "space",
              "page",
              "page_comment"
            ]
          },
          "name": {
            "description": "Its name or title, where it has one.",
            "type": [
              "string",
              "null"
            ]
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectKeyRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "task": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskKeyRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "space": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpaceRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "name",
          "project",
          "task",
          "space",
          "page"
        ],
        "additionalProperties": false,
        "description": "The thing an event is about, by id, when it is gone (deleted, removed) or has no v1 call of its own yet. Read the rest with the matching call where there is one."
      },
      "WebhookOrganisation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "address": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "address"
        ],
        "additionalProperties": false,
        "description": "The organisation, by id and address name."
      },
      "WebhookPing": {
        "type": "object",
        "properties": {
          "webhook_id": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "webhook_id",
          "message"
        ],
        "additionalProperties": false,
        "description": "A test: the subscription that sent it."
      },
      "WebhookSecret": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string",
            "description": "The new secret. Shown only now: keep it."
          },
          "previous_secret_expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          }
        },
        "required": [
          "secret",
          "previous_secret_expires_at"
        ],
        "additionalProperties": false,
        "description": "A rotated secret."
      },
      "WebLink": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "web",
              "page"
            ]
          },
          "text": {
            "type": "string"
          },
          "url": {
            "description": "The address; a Docs page's address in the app; null for a page you can't open.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "text",
          "url"
        ],
        "additionalProperties": false,
        "description": "A web address or a Docs page linked to a task."
      },
      "Workflow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "organisation",
              "team"
            ],
            "description": "team: a Team project's own workflow; organisation: shared through schemes."
          },
          "task_types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            },
            "description": "The project's task types that use it."
          },
          "statuses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "todo",
                    "in_progress",
                    "done"
                  ]
                },
                "colour": {
                  "type": "string",
                  "enum": [
                    "grey",
                    "blue",
                    "green"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "category",
                "colour"
              ],
              "additionalProperties": false
            }
          },
          "transitions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "uuid",
                  "description": "The status it moves a task to."
                },
                "from": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "description": "The statuses it starts from."
                },
                "from_any": {
                  "type": "boolean",
                  "description": "It starts from any status."
                },
                "initial": {
                  "type": "boolean",
                  "description": "The transition that creates a task."
                },
                "screen": {
                  "type": "boolean",
                  "description": "It asks for fields (its screen)."
                }
              },
              "required": [
                "id",
                "name",
                "to",
                "from",
                "from_any",
                "initial",
                "screen"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "kind",
          "task_types",
          "statuses",
          "transitions"
        ],
        "additionalProperties": false,
        "description": "A workflow: its statuses and transitions. Run a transition on a task with POST /tasks/{task}/transitions/{transition}."
      },
      "Worklog": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "task": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "key": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "key",
              "summary"
            ],
            "additionalProperties": false,
            "description": "The task the work was logged on."
          },
          "author": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Who logged it; null when gone."
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the work started (UTC)."
          },
          "seconds": {
            "type": "integer",
            "description": "Time spent, in seconds."
          },
          "description": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "$ref": "#/components/schemas/Document"
                  }
                ],
                "description": "A document (projqo's document JSON), or Markdown with body_format=markdown."
              },
              {
                "type": "null"
              }
            ]
          },
          "visibility_group": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "When set, only this group's members (and admins) see the log."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, with Z."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last edit, or created_at."
          },
          "edited_by": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "task",
          "author",
          "started_at",
          "seconds",
          "description",
          "visibility_group",
          "created_at",
          "updated_at",
          "edited_by"
        ],
        "additionalProperties": false,
        "description": "Work logged on a task."
      }
    },
    "securitySchemes": {
      "personalToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "pqt_…",
        "description": "A personal API token from Personal settings > API tokens, for one organisation, with the scopes chosen there."
      },
      "oauth2": {
        "type": "oauth2",
        "description": "An OAuth app connected by a person, acting as that person in one organisation. Authorization code with PKCE: code_challenge_method=S256 and state are required for every app (there is no implicit flow and no client-credentials grant). The code works once, for 2 minutes.\n\nAccess tokens (pqa_…) last 1 hour; refresh tokens (pqr_…) are rotated on every use and end after 90 days without use. Using an old refresh token again revokes the whole grant.\n\nThe token endpoint takes application/x-www-form-urlencoded, with a server app's client secret in an HTTP Basic header or the body (never the address), and answers RFC 6749's errors. Revoke a token at /api/oauth/revoke (RFC 7009); the server's metadata is at /.well-known/oauth-authorization-server (RFC 8414). Redirects carry iss (RFC 9207).",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/oauth/authorize",
            "tokenUrl": "/api/oauth/token",
            "refreshUrl": "/api/oauth/token",
            "scopes": {
              "org:read": "See the organisation's details, your own profile and what you may do",
              "people:read": "See the people, teams and project people you can see in the app",
              "people:admin": "Invite people, change their roles and remove them (organisation admins only); make and change teams",
              "projects:read": "See projects, releases and components",
              "projects:write": "Create and change projects, releases and components",
              "tasks:read": "See tasks, their comments, attachments, links and history",
              "tasks:write": "Create and change tasks, comments, attachments and links",
              "tasks:delete": "Delete tasks",
              "worklogs:read": "See work logged on tasks",
              "worklogs:write": "Log, change and delete work on tasks",
              "boards:read": "See boards, backlogs and sprints",
              "boards:write": "Rank the backlog and plan, start and complete sprints",
              "docs:read": "See Docs spaces and pages, with their comments and attachments",
              "docs:write": "Create and change Docs spaces and pages",
              "docs:delete": "Move Docs pages to the trash and delete them",
              "filters:read": "Search, and see and run saved filters",
              "filters:write": "Create, change and delete your saved filters",
              "webhooks:manage": "Subscribe to events and manage those subscriptions"
            },
            "x-code-challenge-methods": [
              "S256"
            ],
            "x-state-required": true
          }
        },
        "x-revocation-url": "/api/oauth/revoke",
        "x-metadata-url": "/.well-known/oauth-authorization-server",
        "x-token-format": "pqa_…"
      }
    },
    "headers": {
      "X-Request-Id": {
        "description": "This request's id; also in every error. Quote it to support.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Limit": {
        "description": "Calls allowed this minute (the token's, or the organisation's when that is the tighter).",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Remaining": {
        "description": "Calls left this minute.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the minute's count starts again.",
        "schema": {
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before calling again.",
        "schema": {
          "type": "integer"
        }
      },
      "WWW-Authenticate": {
        "description": "Why the token was refused, and for insufficient_scope the scope needed.",
        "schema": {
          "type": "string"
        }
      },
      "Deprecation": {
        "description": "When the call was deprecated (RFC 9745: @ and a Unix time).",
        "schema": {
          "type": "string"
        }
      },
      "Sunset": {
        "description": "When the call stops working (RFC 8594, an HTTP date).",
        "schema": {
          "type": "string"
        }
      }
    }
  },
  "x-error-codes": {
    "invalid": {
      "status": 400,
      "cause": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
      "fix": "Correct the values named in details and send the call again."
    },
    "field_required": {
      "status": 400,
      "cause": "A field the task's screen or workflow step requires is empty.",
      "fix": "Send each field named in details."
    },
    "invalid_token": {
      "status": 401,
      "cause": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
      "fix": "Send a live token as Authorization: Bearer <token>. Make a new one in Personal settings > API tokens."
    },
    "not_in_plan": {
      "status": 402,
      "cause": "The feature isn't in the organisation's plan.",
      "fix": "An owner can change the plan in Billing; the message names the plan that has it."
    },
    "insufficient_scope": {
      "status": 403,
      "cause": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
      "fix": "Make a token with that scope."
    },
    "refused": {
      "status": 403,
      "cause": "The token's person can see the thing but may not do this; the message says why.",
      "fix": "Ask whoever the message names for the permission, or use a token of someone who has it."
    },
    "api_off": {
      "status": 403,
      "cause": "The organisation's admins have switched the API off.",
      "fix": "Ask an organisation admin to switch it on in Organisation settings > API."
    },
    "read_only": {
      "status": 403,
      "cause": "The organisation is read-only (over the Free plan's people, or a payment is overdue).",
      "fix": "Reading still works. An owner can fix the plan in Billing."
    },
    "suspended": {
      "status": 403,
      "cause": "projqo has suspended the organisation.",
      "fix": "Contact the organisation's owner."
    },
    "not_found": {
      "status": 404,
      "cause": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
      "fix": "Check the address and the ids, and that the token's person can open the thing in the app."
    },
    "method_not_allowed": {
      "status": 405,
      "cause": "The address exists but not with this method (updates use PATCH; there is no PUT).",
      "fix": "Use a method the address lists in the reference."
    },
    "conflict": {
      "status": 409,
      "cause": "The thing changed since it was read, or the change clashes with its state.",
      "fix": "Read it again and send the change once more."
    },
    "archived": {
      "status": 409,
      "cause": "The item (or its project) is archived, so it can't be changed.",
      "fix": "Restore it first, or leave it."
    },
    "transition_not_allowed": {
      "status": 409,
      "cause": "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.",
      "fix": "List the open transitions with GET /tasks/{task}/transitions and pick one of them."
    },
    "limit_reached": {
      "status": 409,
      "cause": "A limit was reached (of the plan, or of how many of something one person may have).",
      "fix": "The message names the limit; remove something or change the plan."
    },
    "too_large": {
      "status": 413,
      "cause": "The body or a file is larger than allowed.",
      "fix": "Send less, or a smaller file."
    },
    "unsupported_media_type": {
      "status": 415,
      "cause": "The body isn't JSON.",
      "fix": "Send JSON with Content-Type: application/json."
    },
    "idempotency_key_reused": {
      "status": 422,
      "cause": "The same Idempotency-Key was sent within 24 hours with a different body.",
      "fix": "Use a new key for a new request; repeat a request with its own key and the same body."
    },
    "rate_limited": {
      "status": 429,
      "cause": "Too many calls in this minute, for the token or for the whole organisation.",
      "fix": "Wait the seconds in Retry-After. The RateLimit headers on every answer show what is left."
    },
    "internal": {
      "status": 500,
      "cause": "Something went wrong on projqo's side (never your mistake).",
      "fix": "Try again; if it keeps happening, contact support and quote the request_id."
    }
  }
}
