# Changelog

## 2026-12-02: Read-only text fields by API, streamed uploads

Plan 37.B1 and B2, no change to any schema. A Read-only text custom field (`cf_<key>`) can now
be set by `POST /orgs/{org}/projects/{project}/tasks` (and its bulk call) and changed by
`PATCH /orgs/{org}/tasks/{task}` (and the bulk update), as a Short text field: one line, at most
255 characters, `null` clears it. The fields calls answer `writable: true` for it. Before, a
create left it out without a word and an update answered 400. People still see it read only in
the app. The three upload calls (`POST …/tasks/{task}/attachments`,
`…/comments/{comment}/attachments`, `…/pages/{page}/attachments`) stream each file to the file
store as it arrives: the file size limit and the organisation's storage are checked as the
bytes come, and the call answers 413 `too_large` as soon as one is passed, closing the
connection without reading the rest; nothing of the call is kept. An upload past the
organisation's storage is now 413 `too_large` (with the plan's words), not 409
`limit_reached`, and a file over the size limit is named in the message.

## 2026-12-02: Limits, retries and addresses after the load test and security pass

Fixes from plan 35.R4 and R5, no change to any schema. A call refused because its own token or
app is over its minute's limit no longer counts toward the organisation's minute. Retries of one
`Idempotency-Key` sent at the same time now wait for the first: one create and the same answer
to each (before, several could each create). The token is checked before a request's body is
read, so a call without a valid token answers 401 at once, also for a body that isn't valid.
`POST /orgs/{org}/projects/{project}/tasks/bulk` into a project the person can't open answers
404 for the call, as creating one task does, not 207 with a 404 per item. A webhook
subscription to a private, local or link-local address written as numbers (`https://10.0.0.5/…`)
is refused with 400 on `url` when it is made or changed. `POST /api/oauth/token` and
`/api/oauth/revoke` answer any origin (no credentials), so an app in a browser can use them.

## 2026-12-02: Docs, search and saved filters

Added Docs spaces (`docs:read`, `docs:write`): the spaces list (filters as the directory's),
create, get by key, old key or id, change the details, archive and restore, and the people
holding a role in a space. Added Docs pages: a space's tree a level at a time, create (a page,
live doc, folder or smart link; published unless `publish` is false), get with the body as
document JSON or Markdown (`status=draft` for editors), change the title and body from the
`version` read (409 `conflict` when the page was published since or has unpublished changes in
its editor; open editors see the change at once), publish, move, copy, delete to the trash
(`docs:delete`), the space's trash with restore and delete for good, versions with restore, and
the deleted-pages feed `GET /orgs/{org}/pages/deleted`. Added a page's comments (footer: list,
add, reply, edit, delete; inline: read), files with their versions (multipart upload, list,
download, delete) and labels. Added quick search `GET /orgs/{org}/search` (`filters:read`;
tasks, pages, projects, spaces, or people, each kind also needing its read scope) and saved
filters (`filters:read`, `filters:write`): list, get, create, change with their sharing, delete.
Docs webhook events (spaces, pages, page comments) now carry `data` as these GET calls answer
it: `Space`, `Page` and `PageComment` replace `WebhookSpace`, `WebhookPage` and
`WebhookPageComment`, keeping their field names, with more fields (a page's `parent_id` is null at the top of its space, as the tree says).

## 2026-12-02: Metadata, boards, the backlog and sprints

Added metadata (`tasks:read`): every field of the organisation with its key and type
(`GET /orgs/{org}/fields`), a project's fields per task type (required, on the create screen),
its task types (with whether the caller may create each), one type's fields with a list field's
options and the defaults, statuses with their category and colour (the organisation's and a
project's), a project's workflows with their transitions (View workflow), priorities (the
organisation's and a project's, with its default) and resolutions; the time tracking settings
(`worklogs:read`). Added boards (`boards:read`, `boards:write`): the boards list, a board with its
filter, custom filters, swimlanes and rights, its columns, the tasks on it per column and swimlane
(and more of one column by cursor), ranking a card; the backlog's sections in rank order (and
more of one section), ranking tasks in it and moving tasks to it; a board's sprints, planning
(`Idempotency-Key`), changing, starting and completing a sprint (open tasks to a future sprint, a
new one or the backlog), what completing would do, and moving tasks into a sprint.

## 2026-12-02: Webhooks

Added webhook subscriptions for tokens and apps at `/orgs/{org}/webhooks` (scope
`webhooks:manage`, plus each event's read scope): list, create (the secret shown once, a `ping`
sent), get, update, delete, `rotate-secret` (the old secret signs for 24 hours more in
`X-Projqo-Signature-Previous`), `test`, and the delivery log at `/deliveries` with `redeliver`.
Subscriptions take `projects`, `spaces` and a `task_query`. Each delivery is the v1 envelope
(`id`, `event`, `created_at`, `api_version`, `organisation`, `actor`, `data`), with `data` as the
matching GET call answers it; the events, with Docs events (spaces, pages, page comments) and
`ping`, are in the `webhooks` section of `v1.json`. A subscription is switched off after 50
failed deliveries in a row or 3 days of failures, and deliveries a day follow the plan.

## 2026-12-02: People, projects, tasks and their parts

Added people and teams (`people:read`, `people:admin`), projects with their people, roles,
categories, features and trash, releases and components (`projects:read`, `projects:write`);
tasks (`tasks:read`, `tasks:write`, `tasks:delete`): lists in a project and across the
organisation with `q` in the query language, `filter`, `updated_since` and `sort`, counts, get by
id or key, create, update (lists take `{ "add", "remove" }`), bulk create and update (207),
delete and `GET /orgs/{org}/tasks/deleted`, transitions, move and clone (jobs, followed at
`/task-jobs/{job}`), rank, type changes, archive and restore; a task's comments, attachments
(multipart uploads, downloads), watchers, links and link types, work logs (`worklogs:read`,
`worklogs:write`, bulk 207), labels and history. Custom fields are `cf_<key>`. Rich text
(descriptions, comments, work log notes) takes a document or Markdown, and `body_format=markdown`
answers Markdown. New error codes: `archived`, `transition_not_allowed` and `field_required`.

## 2026-12-02: OAuth apps

Added OAuth 2.0 apps as a second way in: an app registered in Organisation settings > Develop
apps and connected by a person, acting as that person in one organisation. The authorization
code flow with PKCE (`S256`) and `state`, both required, at `/oauth/authorize`; tokens at
`POST /api/oauth/token` (`authorization_code` and `refresh_token`; access tokens `pqa_…` for 1
hour, refresh tokens `pqr_…` rotated on every use); `POST /api/oauth/revoke`; and the server's
metadata at `/.well-known/oauth-authorization-server`. Every v1 call takes an app's access token
as `Authorization: Bearer`, with the same scopes, limits (per connection) and errors as a
personal token. Described in the `oauth2` security scheme of `v1.json`.

## 2026-12-02: The organisation and me

Added `GET /orgs`, `GET /orgs/{org}`, `GET /me`, `GET /me/permissions` and
`GET /orgs/{org}/audit-log` (scope `org:read`; the audit log for the organisation's owners and
admins).

## 2026-12-02: The API opens

Added the API itself at `/api/v1`: personal API tokens (`pqt_…`, sent as
`Authorization: Bearer`), one scope per call, the one error shape with `X-Request-Id`, cursor
paging (`limit`, `cursor`, `next_cursor`), `count=true` and `fields=`, rate limits per token and
per organisation with the `RateLimit` headers, and `Idempotency-Key` on creates.
