{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"Personal Academy Partner API","version":"v1","description":"Personal Academy **Partner API**, version 1. For companies that embed or resell Personal Academy: create and manage customer tenants, issue keys, set branding, read usage, statements and the wallet, and open embedded learner sessions.\n\nA partner key acts on its own tenants through `/partner/tenants/{id}/...`. Everything a tenant itself can do (courses, learners, assessments, reports) is in the **Platform API** document, called with that tenant's key. Webhook events and the other integration guides are in the partner developer kit.\n\n## Auth\nEvery request carries `Authorization: Bearer <api key>`. There is no session/cookie path for a machine caller. A request may fail with `401 unauthorized` (missing/invalid key), `403 scope_not_granted` (key not scoped for this module), `403 module_not_entitled` (the tenant's plan does not currently include it — checked live, every request, independent of the key), or `403 permission_denied` (the principal the key acts as lacks the permission, recomputed live from that principal's current role — never a snapshot taken when the key was minted). The three endpoints under \"meta\" need no key at all.\n\n## Pagination\nList endpoints are cursor-paginated (keyset, not offset). Pass `?cursor=` (from the previous response's `meta.cursor.next`) to fetch the next page; `null` means last page. `?sort=<field>` / `?sort=-<field>` selects the sort column from each endpoint's whitelist; an unrecognised value falls back to the endpoint's default instead of erroring.\n\n## Rate limits\nEvery response carries `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` (a delta in seconds) and `RateLimit-Policy`; a 429 adds `Retry-After` and a `retry_after_seconds` field in the body. The published baseline, and your organisation's own effective ceiling, are readable at `GET /api/v1/limits` — the numbers there come from the same row the limiter enforces, not from a copy. Requests refused before the limiter runs (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. If the limiter itself is unavailable, requests are allowed through rather than blocked (fail open — a quota outage should not become a full outage; contrast with auth/scope/permission checks, which fail closed) and the `RateLimit-*` headers are omitted rather than filled with a guess.\n\n## Versioning and deprecation\nThe lifecycle of every version is published at `GET /api/v1/versions` and enforced by the API itself. While a version is `deprecated`, every response carries RFC 8594's `Deprecation` and `Sunset` headers plus `Link: <policy>; rel=\"deprecation\"`. Once it is `sunset` every request answers `410 Gone` with a body naming `replacement_version`. You do not have to read a changelog to find out: the headers arrive on calls you are already making.\n\nMay change without a new version: adding an optional response field, adding a new endpoint, adding a new filter/sort column, adding a new module. May **not** change without shipping `/api/v2`: removing or renaming a field a client already receives, changing a field's type or meaning, tightening what a previously-permitted request accepts (e.g. making an optional filter required), or changing what an existing status code means.","x-api-lifecycle":{"versions_url":"/api/v1/versions","limits_url":"/api/v1/limits","graphql_url":"/api/v1/graphql","graphql_schema_url":"/api/v1/graphql/schema.graphql","documentation_url":"/developers"}},"servers":[{"url":"/"}],"tags":[{"name":"partner"},{"name":"embed"},{"name":"webhooks","description":"Events Personal Academy sends to your server. Each is a signed `POST` of a JSON body to the HTTPS URL of a webhook endpoint you created (for a customer organisation: `POST /api/v1/partner/tenants/{id}/webhooks`, or `POST /api/v1/hooks` with the organisation's own key).\n\n**Verify** the signature over the raw bytes of the body, before parsing it, and reject timestamps older than 5 minutes. **Acknowledge** with any `2xx`. Anything else is retried with backoff, 8 attempts in all, then dead-lettered, from where an administrator can replay it (schedule: `GET /api/v1/limits`, `webhook_delivery`). Delivery is at least once, and events reach you about a minute after the change, so build for repeats and for arrival out of order.\n\nEvery payload key is camelCase. Payloads carry ids, not names or email addresses. `GET /api/v1/hooks/samples?event=<type>` returns real recent payloads for your organisation."}],"paths":{"/api/v1/embed/sessions":{"post":{"summary":"Mint an embed session","description":"Returns a one-time URL (valid for 60 seconds) that signs the learner in and opens `target` with the platform chrome removed, ready to place in an iframe on `origin`. Send the learner in `X-Learner-Id` (an external id or a user id of this organisation). The key must carry the scope of the module the target belongs to (core screens need no module scope), and `origin` must be an exact origin the organisation allows to frame it: the partner's `embed_frame_ancestors` or the `embed.allowed_origins` setting.\n\nRequires scope `module.learn` and permission `course.view` (see \"Auth\" in the module document's description).","tags":["embed"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Learner-Id","in":"header","required":true,"description":"The learner this call acts as: the partner's external_id, or a user_id, inside the key's tenant. The call runs through the learner's own row-level security.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EmbedSessionsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.\n\n`learner_header_required` — this route needs the `X-Learner-Id` header.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The origin is not allowed to frame this organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.\n\n`learner_not_in_tenant` — the `X-Learner-Id` value does not resolve to an active member of the key's tenant.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"string","description":"An embeddable route, e.g. `/feed` or `/courses/<id>/learn`. A query string is allowed."},"origin":{"type":"string","description":"The exact origin of the page that will frame the embed, e.g. `https://app.partner.com`."},"locale":{"type":["string","null"],"description":"Optional language code for the session."}},"required":["target","origin"]}}}}}},"/api/v1/partner/ai-keys":{"delete":{"summary":"Remove an AI provider key","description":"Deletes the partner's stored key. Child organisations that ran on it fall back at once to the platform key and are charged their full AI credits.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"provider","in":"query","required":true,"description":"The provider whose key to remove.","schema":{"type":"string","description":"The provider whose key to remove."}},{"name":"module_key","in":"query","required":false,"description":"The module the key is limited to; omit for the provider default.","schema":{"type":"string","description":"The module the key is limited to; omit for the provider default."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerAi-keysItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"List the partner's AI provider keys","description":"The AI provider keys the partner holds and how they are shared with child organisations. The key itself is never returned.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerAi-keysGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"summary":"Store or update an AI provider key","description":"Creates or updates the partner's key for one provider and (optionally) one module. `api_key` is write-only and required when creating; omit it on an update to keep the stored one. Child organisations run on this key when they have no key of their own and `inherit_to_children` is on; each call then uses the bring-your-own-key share of its normal credits (at least 1), from your partner wallet. `allowed_child_tenants` must be organisations that belong to the partner.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerAi-keysPutItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"The provider: openrouter, openai, anthropic, azure_openai, google."},"module_key":{"type":["string","null"],"description":"Limit the key to one module; omit or null for the provider default."},"api_key":{"type":"string","description":"The provider API key (write-only)."},"base_url":{"type":"string","description":"The provider endpoint."},"config":{"type":"object","description":"Provider extras, for example the azure_openai `apiVersion`."},"label":{"type":"string","description":"A name for your own reference."},"is_active":{"type":"boolean","description":"Whether the key is used. Default true."},"inherit_to_children":{"type":"boolean","description":"Share with child organisations. Default true."},"allowed_child_tenants":{"type":["array","null"],"description":"Restrict sharing to these child organisation ids; null = every child."}},"required":["provider","api_key","base_url","config","label","is_active","inherit_to_children"]}}}}}},"/api/v1/partner/content-providers":{"delete":{"summary":"Remove a provider credential","description":"Deletes the partner's stored credential. Child organisations that inherited it lose access at once; items they already synced stay in their catalogues but cannot be added.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"provider_key","in":"query","required":true,"description":"The content provider key to remove.","schema":{"type":"string","description":"The content provider key to remove."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerContent-providersItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"List the partner's content provider credentials","description":"The providers the partner holds a credential for and how they are shared. The credential itself is never returned.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerContent-providersGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"summary":"Store or update a provider credential","description":"Creates or updates the partner's credential for one provider. `credentials` is write-only and must carry every credential field the provider needs; omit it on an update to keep the stored one. `rights_note` (the contract basis for sharing) is required when creating. `allowed_child_tenants` must be organisations that belong to the partner. Turn `inherit_to_children` on only where the provider contract allows resale or sub-licensing.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerContent-providersPutItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider_key":{"type":"string","description":"The content provider key."},"credentials":{"type":"object","description":"The provider credential fields (write-only)."},"inherit_to_children":{"type":"boolean","description":"Share with child organisations. Default false."},"allowed_child_tenants":{"type":["array","null"],"description":"Restrict sharing to these child organisation ids; null = every child."},"rights_note":{"type":"string","description":"What the provider contract permits (reseller or sub-licensing basis)."}},"required":["provider_key","credentials","inherit_to_children","rights_note"]}}}}}},"/api/v1/partner/me":{"get":{"summary":"The calling partner","description":"Profile, tier, region, status and contract of the partner this key belongs to, plus the partner role of the person the key acts as. `wallet_balance` is the partner credit wallet balance.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerMeItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/revenue-reports":{"post":{"summary":"Report revenue for a month","description":"Records the partner's revenue for `period` (a month). Omit `tenant_id` for the partner total; send it for one customer organisation. A partner-total figure takes precedence over per-organisation figures. Sending the same period and organisation again replaces the earlier figure. If that month's statement is still a draft it is recomputed.\n\nRequires a partner key scoped `partner.billing`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerRevenue-reportsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string","description":"The month, `YYYY-MM`."},"tenant_id":{"type":["string","null"],"format":"uuid","description":"A customer organisation of the partner. Omit for the partner total."},"revenue_minor":{"type":"integer","description":"Revenue in minor units (paise, cents), 0 or more."},"currency":{"type":"string","description":"Three-letter code. Must equal the rate card currency to be used."},"notes":{"type":["string","null"],"description":"Optional note for our audit trail."}},"required":["period","revenue_minor","currency"]}}}}}},"/api/v1/partner/statements":{"get":{"summary":"List statements","description":"The partner's monthly statements, newest month first. Statuses: `issued` (awaiting payment), `paid`, `void`, `awaiting_revenue_report` (the month needs a revenue report, see POST /api/v1/partner/revenue-reports). Drafts are not shown. Amounts are minor units (paise, cents) of `currency`.\n\nRequires a partner key scoped `partner.billing`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"Only statements in this status.","schema":{"type":"string","enum":["issued","paid","void","awaiting_revenue_report"],"description":"Only statements in this status."}},{"name":"cursor","in":"query","required":false,"description":"Opaque pagination cursor from a previous response's `meta.cursor.next`.","schema":{"type":"string"}},{"name":"page_size","in":"query","required":false,"description":"Rows per page. Default 25, max 100.","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"A page of results.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerStatementsItem"}},"meta":{"$ref":"#/components/schemas/CursorMeta"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/statements/{id}":{"get":{"summary":"Get a statement","description":"One statement with its lines. Add `?format=csv` for a CSV of the lines (one row per line plus a total row). A draft, or a statement that belongs to another partner, is reported as `404`.\n\nRequires a partner key scoped `partner.billing`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The statement id.","schema":{"type":"string","format":"uuid","description":"The statement id."}},{"name":"format","in":"query","required":false,"description":"Default `json`.","schema":{"type":"string","enum":["json","csv"],"description":"Default `json`."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerStatementsIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/support/tickets":{"get":{"summary":"List support tickets","description":"Support tickets about the partner's customer organisations, newest first, up to 100. Filter with the `tenant_id` and `status` query parameters.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerSupportTicketsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Open a support ticket","description":"Opens an L2 escalation about one of the partner's customer organisations. `404 tenant_not_child` when the organisation does not belong to this partner.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerSupportTicketsPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_id":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."},"severity":{"type":"string","enum":["low","normal","high","urgent"],"description":"Defaults to normal."},"subject":{"type":"string","description":"Subject line (max 200 characters)."},"body":{"type":"string","description":"Description (max 10000 characters)."},"external_ref":{"type":["string","null"],"description":"Your own reference, echoed back and in webhooks."}},"required":["tenant_id","severity","subject","body"]}}}}}},"/api/v1/partner/tenants":{"get":{"summary":"List customer organisations","description":"The partner's child organisations as aggregates (counts only, never learner rows), newest first.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque pagination cursor from a previous response's `meta.cursor.next`.","schema":{"type":"string"}},{"name":"page_size","in":"query","required":false,"description":"Rows per page. Default 25, max 100.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"sort","in":"query","required":false,"description":"Sort column, optionally prefixed with \"-\" for descending. One of: created_at, name. An unrecognised value silently falls back to the default rather than erroring.","schema":{"type":"string","enum":["created_at","name","-created_at","-name"]}}],"responses":{"200":{"description":"A page of results.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerTenantsItem"}},"meta":{"$ref":"#/components/schemas/CursorMeta"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Provision a customer organisation","description":"Creates a child organisation under the partner: seeded roles, the chosen tier (no trial, never Free, never paying directly), white-label by default. `products` switches on exactly those products (the rest are off); without it the partner-wide default products apply. An unknown product key is a `422 unknown_product` and nothing is created; a product refused for another reason (`product_requires`, `product_outside_contract`) is reported in `products.error` and the organisation still exists. With `test: true`, or when called with a test key, the organisation is a test (sandbox) customer: never billed, test keys only, at most 3 per partner (`403 sandbox_customer_cap`). Every customer of a sandbox partner is a test customer. Refused when the tier includes a module outside the partner contract (`module_outside_contract`), is above the contract ceiling (`partner_tier_above_contract`), is the free floor (`partner_tier_free`) or a trial (`trial_on_partner_child`), is not a tier (`unknown_tier`), when the child limit is reached (`partner_child_limit`), or when the subdomain is taken (`conflict`). `branding` is validated before anything is created. `domain` claims a custom hostname for the new organisation; if the claim loses a race the organisation still exists and the response says so in `domain`.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`sandbox_customer_cap` — the sandbox already has its 3 test customers. Nothing was charged.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`partner_paused` - the partner has an overdue statement; new customers are paused until it is paid.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_tier` — `tier` is not a tier of the current price list.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Organisation display name."},"subdomain":{"type":"string","description":"Lowercase letters, digits and hyphens, 3 to 63 characters. Must be unused."},"products":{"type":["array","null"],"description":"Product keys to switch on (every other product is off). Omit to apply the partner-wide default products."},"tier":{"type":["string","null"],"description":"The tier key (for example basic, advanced or premium). Omit for the contract default tier."},"plan_key":{"type":["string","null"],"description":"Deprecated: the old name for `tier`."},"branding":{"type":["object","null"],"description":"Optional `{ \"branding.*\": value }` settings applied at creation."},"domain":{"type":["string","null"],"description":"Optional custom hostname to claim for the new organisation."},"region":{"type":["string","null"],"description":"Optional region id. Must be the region this host serves; otherwise 422 `wrong_region` with `region_app_url`."},"test":{"type":["boolean","null"],"description":"Create a test (sandbox) customer. Implied by a test key and by a sandbox partner."}},"required":["name","subdomain"]}}}}}},"/api/v1/partner/tenants/{id}/ai-studio/profile":{"get":{"summary":"Get AI Studio profile, tone, and source settings for a customer organisation","description":"Returns all AI Studio settings (what the organisation does, tone formality/detail, source categories, etc.) and their schema definitions.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAi-studioProfileItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"summary":"Update AI Studio profile, tone, and source settings for a customer organisation","description":"Updates 1-30 AI Studio configuration settings. A null value resets the setting to its default.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAi-studioProfilePutItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The ai_studio product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid setting keys, values out of range, or non-surface settings.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ai.tone.formality":{"type":["integer","null"],"description":"Formality level from 1 (formal) to 5 (conversational)."},"ai.tone.detail":{"type":["integer","null"],"description":"Detail level from 1 (concise) to 5 (detailed)."},"ai.profile.what_we_do":{"type":["string","null"],"description":"Summary of organisation activity."},"ai.profile.who_our_people_are":{"type":["string","null"],"description":"Audience and workforce characteristics."},"ai.profile.acronyms":{"type":["string","null"],"description":"Acronym definitions."},"ai.profile.anything_else":{"type":["string","null"],"description":"Additional instructions or preferences."},"ai.sources.categories":{"type":["array","null"],"description":"Knowledge categories the AI may quote."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/assessments":{"get":{"summary":"List assessments on a customer organisation","description":"Lists all assessment shells on the customer organisation, optionally filtered by course_id.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"course_id","in":"query","required":false,"description":"Filter assessments by course id.","schema":{"type":"string","format":"uuid","description":"Filter assessments by course id."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create an assessment on a customer organisation","description":"Creates a new assessment shell (type, pass mark, attempt limit, time limit, question rules).\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsPostItem"}},"required":["data"]}}}},"400":{"description":"Invalid assessment configuration or foreign pretest pairing.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The assessments_certificates product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Payload does not match schema.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Title of the assessment."},"description":{"type":["string","null"],"description":"Assessment instructions or description."},"type":{"type":"string","enum":["diagnostic","pretest","posttest","formative","summative","practical","virtual_mock"],"description":"Assessment type."},"course_id":{"type":["string","null"],"format":"uuid","description":"Associated course id."},"program_id":{"type":["string","null"],"format":"uuid","description":"Associated programme template id."},"pretestAssessmentId":{"type":["string","null"],"format":"uuid","description":"Associated pretest id for a posttest."},"pass_mark":{"type":["integer","null"],"description":"Passing mark percentage (0-100)."},"max_attempts":{"type":["integer","null"],"description":"Maximum allowed attempts (0 for unlimited)."},"time_limit_minutes":{"type":["integer","null"],"description":"Time limit in minutes."},"randomize_questions":{"type":["boolean","null"],"description":"Whether to randomize question order."},"requires_signature":{"type":["boolean","null"],"description":"Whether learner signature is required."}},"required":["title","type"]}}}}}},"/api/v1/partner/tenants/{id}/assessments/{assessmentId}":{"get":{"summary":"Get an assessment and its attached questions on a customer organisation","description":"Returns the assessment configuration and all attached question bank items in position order.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"assessmentId","in":"path","required":true,"description":"The assessment ID.","schema":{"type":"string","format":"uuid","description":"The assessment ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsAssessmentIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Assessment not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update an assessment configuration or publish/archive it","description":"Updates configuration rules, changes status to published or archived. Publishing requires all attached questions to be approved.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"assessmentId","in":"path","required":true,"description":"The assessment ID.","schema":{"type":"string","format":"uuid","description":"The assessment ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsAssessmentIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The assessments_certificates product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Assessment not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Cannot publish assessment with unapproved questions.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Updated title."},"description":{"type":["string","null"],"description":"Updated description."},"pass_mark":{"type":["integer","null"],"description":"Passing mark percentage (0-100)."},"max_attempts":{"type":["integer","null"],"description":"Maximum allowed attempts."},"time_limit_minutes":{"type":["integer","null"],"description":"Time limit in minutes."},"randomize_questions":{"type":"boolean","description":"Whether to randomize questions."},"allow_answer_review":{"type":"boolean","description":"Whether learner can review answers after completion."},"status":{"type":"string","enum":["draft","published","archived"],"description":"Assessment lifecycle status."},"requires_signature":{"type":"boolean","description":"Whether learner signature is required."},"course_id":{"type":["string","null"],"format":"uuid","description":"Linked course id."},"program_id":{"type":["string","null"],"format":"uuid","description":"Linked programme template id."},"pretestAssessmentId":{"type":["string","null"],"format":"uuid","description":"Paired pretest id for a posttest."},"process_mode":{"type":"boolean","description":"Enable learning process recording."},"process_notice":{"type":["string","null"],"description":"Custom process notice."}},"required":["title","randomize_questions","allow_answer_review","status","requires_signature","process_mode"]}}}}}},"/api/v1/partner/tenants/{id}/assessments/{assessmentId}/questions":{"delete":{"summary":"Detach a question from an assessment","description":"Detaches a question bank item from the assessment without deleting the bank item.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"assessmentId","in":"path","required":true,"description":"The assessment ID.","schema":{"type":"string","format":"uuid","description":"The assessment ID."}},{"name":"question_id","in":"query","required":true,"description":"Question bank item ID to detach.","schema":{"type":"string","format":"uuid","description":"Question bank item ID to detach."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsAssessmentIdQuestionsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The assessments_certificates product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Assessment not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"question_id parameter is required.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Reorder questions attached to an assessment","description":"Persists a new ordering of question items on the assessment.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"assessmentId","in":"path","required":true,"description":"The assessment ID.","schema":{"type":"string","format":"uuid","description":"The assessment ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsAssessmentIdQuestionsItem"}},"required":["data"]}}}},"400":{"description":"Question not attached to this assessment.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The assessments_certificates product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Assessment not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"order":{"type":"array","description":"Array of { questionId, position } pairs representing new question order."}},"required":["order"]}}}}},"post":{"summary":"Attach a question from the question bank to an assessment","description":"Attaches an approved question bank item to the assessment at a given position.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"assessmentId","in":"path","required":true,"description":"The assessment ID.","schema":{"type":"string","format":"uuid","description":"The assessment ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAssessmentsAssessmentIdQuestionsPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The assessments_certificates product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Assessment or question not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question_id":{"type":"string","format":"uuid","description":"Question bank item ID."},"position":{"type":["integer","null"],"description":"Position order index in assessment."},"points_override":{"type":["integer","null"],"description":"Optional points override."}},"required":["question_id"]}}}}}},"/api/v1/partner/tenants/{id}/authoring/jobs/{jobId}":{"get":{"summary":"Poll an authoring build job on a customer organisation","description":"Retrieves the status, phase, and progress of a background AI Course Studio build job.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"jobId","in":"path","required":true,"description":"The authoring job ID.","schema":{"type":"string","format":"uuid","description":"The authoring job ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAuthoringJobsJobIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/authoring/uploads":{"post":{"summary":"Create a source document upload ticket on a customer organisation","description":"Returns a signed upload URL to PUT a course source document (PDF, DOC, DOCX).\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdAuthoringUploadsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid file name or unsupported file type.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file_name":{"type":"string","description":"Name of the source file (e.g. guidelines.pdf)."},"file_type":{"type":"string","description":"MIME type of the file (application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document)."}},"required":["file_name","file_type"]}}}}}},"/api/v1/partner/tenants/{id}/badges":{"get":{"summary":"List badges on a customer organisation","description":"Lists all gamification badges, rules, and point values.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdBadgesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a badge on a customer organisation","description":"Creates a new achievement badge with automated issuance criteria.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdBadgesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Badge with this key already exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid criterion_type or parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"Unique badge key within the organisation."},"name":{"type":"string","description":"Display name of the badge."},"description":{"type":["string","null"],"description":"Badge description."},"icon":{"type":["string","null"],"description":"Icon identifier (defaults to award)."},"criterion_type":{"type":"string","enum":["lessons_completed_count","courses_completed_count","streak_days","skill_score_at_least","certificates_earned_count"],"description":"Automated award criterion type."},"criterion_config":{"type":["object","null"],"description":"Criterion configuration parameters."},"points_value":{"type":["number","null"],"description":"Points awarded on earning this badge."},"is_active":{"type":"boolean","description":"Whether the badge can be awarded."}},"required":["key","name","criterion_type","is_active"]}}}}}},"/api/v1/partner/tenants/{id}/badges/{badgeId}":{"delete":{"summary":"Delete a badge on a customer organisation","description":"Deletes a badge definition.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"badgeId","in":"path","required":true,"description":"The badge ID.","schema":{"type":"string","format":"uuid","description":"The badge ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdBadgesBadgeIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Badge not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a badge on a customer organisation","description":"Updates badge name, description, icon, points value, or active status.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"badgeId","in":"path","required":true,"description":"The badge ID.","schema":{"type":"string","format":"uuid","description":"The badge ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdBadgesBadgeIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Badge not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Updated name."},"description":{"type":["string","null"],"description":"Updated description."},"icon":{"type":["string","null"],"description":"Updated icon identifier."},"points_value":{"type":["number","null"],"description":"Updated points value."},"is_active":{"type":"boolean","description":"Updated active flag."}},"required":["name","is_active"]}}}}}},"/api/v1/partner/tenants/{id}/branding":{"patch":{"summary":"Set a customer organisation's branding","description":"Writes a subset of `branding.*` settings. An unknown key, or a value the setting does not accept, is a `400` and nothing is written.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdBrandingItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"branding.display_name":{"type":["string","null"],"description":"Display name. The app name: shown in the browser tab, the installed app, the header and emails. Send null to reset to the default."},"branding.primary_color":{"type":["string","null"],"description":"Primary colour. Your main brand colour, used for buttons, links and highlights. It drives the whole app (sign-in, dashboard, course pages, admin portal), not just one screen. Send null to reset to the default."},"branding.accent_color":{"type":["string","null"],"description":"Accent colour. A second colour used alongside the primary colour for badges and highlights. Leave unset to reuse the primary colour everywhere. Send null to reset to the default."},"branding.sidebar_color":{"type":["string","null"],"description":"Navigation colour. Colour of the left navigation rail. Leave empty to use the primary colour. Text on it is chosen automatically for contrast. Send null to reset to the default."},"branding.logo_on_dark_url":{"type":["string","null"],"description":"Logo for dark mode. An alternative logo shown when a person uses dark mode. Leave empty to reuse the main logo. Send null to reset to the default."},"branding.logo_url":{"type":["string","null"],"description":"Logo URL. Paste the web address of your logo image. Send null to reset to the default."},"branding.favicon_url":{"type":["string","null"],"description":"Browser tab and app icon. Web address of a square image (PNG, 512 x 512 recommended). Used for the browser tab and the iPhone or Android home-screen icon. Falls back to your logo. Send null to reset to the default."},"branding.login_headline":{"type":["string","null"],"description":"Sign-in headline. A short line shown above the sign-in form, e.g. \"Welcome to Acme Learning\". Send null to reset to the default."},"branding.landing_headline":{"type":["string","null"],"description":"Landing headline. Headline on your home page when visitors arrive on your own domain. Falls back to your organisation name. Send null to reset to the default."},"branding.landing_subhead":{"type":["string","null"],"description":"Landing subhead. A short supporting line under the headline. Send null to reset to the default."},"branding.landing_cta_label":{"type":["string","null"],"description":"Landing button text. Label for the call-to-action button. Defaults to \"Sign in\". Send null to reset to the default."},"branding.landing_cta_url":{"type":["string","null"],"description":"Landing button link. Where the button goes. Defaults to /login. Send null to reset to the default."},"branding.show_powered_by":{"type":["boolean","null"],"description":"Show the platform name. When off, learner pages, emails and certificates use your display name instead of the platform name. The assistant is always called Ask Yvion. Your administrator can change this on plans that include white label (Premium) and for partner organisations. Send null to reset to the default."},"branding.support_email":{"type":["string","null"],"description":"Support email. Where learners are told to write for help. Send null to reset to the default."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/catalogue/items/{itemId}/add":{"post":{"summary":"Add a catalogue item to a customer organisation's library","description":"Creates a draft external course in the organisation from a synced catalogue item (201). Idempotent: adding the same item again creates nothing and returns the existing course (200). `403 permission_denied` (`reason: no_provider_licence`) when the organisation has no licence for that provider.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"itemId","in":"path","required":true,"description":"The catalogue item id from the search endpoint.","schema":{"type":"string","format":"uuid","description":"The catalogue item id from the search endpoint."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCatalogueItemsItemIdAddItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/catalogue/search":{"get":{"summary":"Search a customer organisation's content catalogue","description":"Case-insensitive search over the title and description of the organisation's synced provider items. `licence_source` says whether the licence in use is the organisation's own (`tenant`) or inherited from the partner (`partner`). Page with `page_size` (default 25, max 100) and `meta.cursor.next`.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"q","in":"query","required":false,"description":"Search text. Omit to list.","schema":{"type":"string","description":"Search text. Omit to list."}},{"name":"provider_key","in":"query","required":false,"description":"Restrict to one provider.","schema":{"type":"string","description":"Restrict to one provider."}},{"name":"cursor","in":"query","required":false,"description":"Opaque pagination cursor from a previous response's `meta.cursor.next`.","schema":{"type":"string"}},{"name":"page_size","in":"query","required":false,"description":"Rows per page. Default 25, max 100.","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"A page of results.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerTenantsIdCatalogueSearchItem"}},"meta":{"$ref":"#/components/schemas/CursorMeta"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/challenges":{"get":{"summary":"List team challenges on a customer organisation","description":"Lists team challenges with assigned groups and lifecycle status.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdChallengesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a team challenge on a customer organisation","description":"Creates a team competition across 2 to 20 groups based on points or completed lessons.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdChallengesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid dates, metric, or group counts.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Challenge title (1-120 characters)."},"description":{"type":["string","null"],"description":"Challenge description (up to 1,000 characters)."},"metric":{"type":"string","enum":["points","lessons"],"description":"Competition metric: points or lessons."},"starts_at":{"type":"string","format":"date-time","description":"Challenge start time."},"ends_at":{"type":"string","format":"date-time","description":"Challenge end time (must be in future, max 90 days after start)."},"group_ids":{"type":"array","description":"Array of 2 to 20 group UUIDs competing in this challenge."}},"required":["title","metric","starts_at","ends_at","group_ids"]}}}}}},"/api/v1/partner/tenants/{id}/challenges/{challengeId}/cancel":{"post":{"summary":"Cancel a team challenge on a customer organisation","description":"Cancels an active or scheduled team challenge. Refused if already finished or cancelled.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"challengeId","in":"path","required":true,"description":"The challenge ID.","schema":{"type":"string","format":"uuid","description":"The challenge ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdChallengesChallengeIdCancelItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Challenge not found or already ended/cancelled.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/chat/install-links":{"post":{"summary":"Create a Slack or Teams install link for a customer","description":"Returns a one-time `install_url` for the customer's Slack or Microsoft 365 administrator. Opening it shows the platform's own approval page; approving connects that workspace to the organisation. The link expires after 72 hours and is spent once a workspace is connected with it. For Teams, the Microsoft 365 organisation must own an email domain the organisation has verified. `403 module_not_entitled` when the organisation's products do not include Slack & Teams; `503 feature_not_provisioned` when the platform is not set up on this server.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdChatInstall-linksItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`module_not_entitled` — the organisation does not include Slack & Teams.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`feature_not_provisioned` — the platform is not set up on this server.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","description":"One of: slack, teams."}},"required":["platform"]}}}}}},"/api/v1/partner/tenants/{id}/chat/installations":{"get":{"summary":"List chat workspaces connected to a customer","description":"The Slack and Microsoft Teams workspaces connected to the organisation, newest first. Disconnected workspaces are left out. `has_error` is true when the last message to the workspace could not be delivered.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdChatInstallationsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/competencies":{"get":{"summary":"List competencies on a customer organisation","description":"Lists all competencies in the organisation framework with levels and linked skills.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCompetenciesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a competency on a customer organisation","description":"Creates a new competency with optional levels and evidence skill links.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCompetenciesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Competency name already in use.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid competency parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Competency name (1-120 characters)."},"description":{"type":["string","null"],"description":"Competency description (up to 2,000 characters)."},"category":{"type":["string","null"],"description":"Category: technical, functional, behavioural, leadership, compliance."},"max_level":{"type":["number","null"],"description":"Maximum proficiency level (2-10, default 5)."},"skill_ids":{"type":["array","null"],"description":"Associated skill IDs (0-100)."},"levels":{"type":["array","null"],"description":"Defined levels (0-10)."}},"required":["name"]}}}}}},"/api/v1/partner/tenants/{id}/competencies/{competencyId}":{"delete":{"summary":"Delete a competency on a customer organisation","description":"Deletes a competency and its level/skill links from the organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"competencyId","in":"path","required":true,"description":"The competency ID.","schema":{"type":"string","format":"uuid","description":"The competency ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCompetenciesCompetencyIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Competency not found in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a competency on a customer organisation","description":"Updates competency attributes, replaced skill links, and replaced level definitions.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"competencyId","in":"path","required":true,"description":"The competency ID.","schema":{"type":"string","format":"uuid","description":"The competency ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCompetenciesCompetencyIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Competency not found in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Competency name already in use.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid competency parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Competency name (1-120 characters)."},"description":{"type":["string","null"],"description":"Competency description (up to 2,000 characters)."},"category":{"type":["string","null"],"description":"Category: technical, functional, behavioural, leadership, compliance."},"max_level":{"type":["number","null"],"description":"Maximum proficiency level (2-10)."},"skill_ids":{"type":["array","null"],"description":"Replacement skill IDs (0-100)."},"levels":{"type":["array","null"],"description":"Replacement level definitions (0-10)."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/courses":{"get":{"summary":"List courses on a customer organisation","description":"Lists courses in the customer organisation with status, published date, and pagination cursor.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"status","in":"query","required":false,"description":"Filter by course status (draft, published, archived).","schema":{"type":"string","description":"Filter by course status (draft, published, archived)."}},{"name":"page_size","in":"query","required":false,"description":"Number of courses to return (1-100, default 20).","schema":{"type":"integer","description":"Number of courses to return (1-100, default 20)."}},{"name":"cursor","in":"query","required":false,"description":"Pagination cursor (ISO-8601 created_at timestamp).","schema":{"type":"string","description":"Pagination cursor (ISO-8601 created_at timestamp)."}},{"name":"cursor","in":"query","required":false,"description":"Opaque pagination cursor from a previous response's `meta.cursor.next`.","schema":{"type":"string"}},{"name":"page_size","in":"query","required":false,"description":"Rows per page. Default 25, max 100.","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"A page of results.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerTenantsIdCoursesItem"}},"meta":{"$ref":"#/components/schemas/CursorMeta"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Build a course on a customer organisation (AI Studio pipeline)","description":"Creates a draft course from a brief and optional sources, kicking off the background AI Studio build.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCoursesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Organisation AI credit balance is insufficient.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The ai_course_builder product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid title, brief, or sources.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"AI quota or concurrency cap reached.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Course title (1-200 characters)."},"brief":{"type":"string","description":"Course brief / performance need (up to 3,000 characters)."},"sources":{"type":["array","null"],"description":"Up to 10 sources: `[{ type: \"text\" | \"url\" | \"upload\", value: string, title?: string }]`."},"audience":{"type":["string","null"],"description":"Target audience (up to 1,000 characters)."},"duration_minutes":{"type":["integer","null"],"description":"Target duration in minutes (15-480, default 60)."},"locale":{"type":["string","null"],"description":"Language BCP 47 tag (default en)."},"apply_drafts":{"type":["boolean","null"],"description":"Whether to apply generated lesson drafts (default true)."}},"required":["title","brief"]}}}}}},"/api/v1/partner/tenants/{id}/courses/{courseId}/exports":{"post":{"summary":"Export a course package on a customer organisation","description":"Generates an export package (SCORM 1.2, xAPI, static HTML, or PDF) and returns a signed download URL valid for 1 hour.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"courseId","in":"path","required":true,"description":"The course ID.","schema":{"type":"string","format":"uuid","description":"The course ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCoursesCourseIdExportsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Course not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid format or export parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","enum":["scorm12","xapi","html","pdf"],"description":"Export format."},"release_id":{"type":["string","null"],"format":"uuid","description":"Optional specific release ID to export."},"launch":{"type":["string","null"],"enum":["popup","frame"],"description":"Launch target for SCORM or xAPI packages."}},"required":["format"]}}}}}},"/api/v1/partner/tenants/{id}/courses/{courseId}/reviews":{"post":{"summary":"Record an artifact review decision on a customer course","description":"Records an approval or requested changes review decision for an authoring artifact on the course.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"courseId","in":"path","required":true,"description":"The course ID.","schema":{"type":"string","format":"uuid","description":"The course ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCoursesCourseIdReviewsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Course or artifact not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid review parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"artifact_id":{"type":"string","format":"uuid","description":"The artifact ID being reviewed."},"decision":{"type":"string","enum":["approve","changes"],"description":"The review decision."},"note":{"type":["string","null"],"description":"Optional feedback note (up to 2,000 characters)."}},"required":["artifact_id","decision"]}}}}}},"/api/v1/partner/tenants/{id}/courses/{courseId}/status":{"patch":{"summary":"Update course status on a customer organisation","description":"Publishes, unpublishes, archives, or restores a course. Gated on the organisation's review-before-publish rules.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"courseId","in":"path","required":true,"description":"The course ID.","schema":{"type":"string","format":"uuid","description":"The course ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdCoursesCourseIdStatusItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Course not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Publish rules not satisfied (e.g. unapproved lessons).","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid course status.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","published","archived"],"description":"Target course status."}},"required":["status"]}}}}}},"/api/v1/partner/tenants/{id}/domains":{"post":{"summary":"Claim a custom domain","description":"Claims `hostname` for the organisation. Returns the value the hostname's CNAME record must point at. `409 conflict` when the hostname is already claimed by any organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdDomainsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`conflict` — the hostname is already claimed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string","description":"A hostname like learn.example.com."}},"required":["hostname"]}}}}}},"/api/v1/partner/tenants/{id}/drip-campaigns":{"get":{"summary":"List drip campaigns on a customer organisation","description":"Lists all microlearning drip campaigns with cadence, course link, and item counts.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdDrip-campaignsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a drip campaign on a customer organisation","description":"Creates a new microlearning drip campaign with up to 500 question-and-answer cards.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdDrip-campaignsPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid cadence, items, or parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Campaign title (1-200 characters)."},"course_id":{"type":["string","null"],"format":"uuid","description":"Optional course id."},"cadence":{"type":"string","enum":["daily","every_other_day","weekly","monthly"],"description":"Delivery cadence."},"is_active":{"type":"boolean","description":"Whether the campaign is active (defaults to true)."},"items":{"type":"array","description":"List of up to 500 question cards ({ question, answer })."}},"required":["title","cadence","is_active","items"]}}}}}},"/api/v1/partner/tenants/{id}/drip-campaigns/{campaignId}":{"delete":{"summary":"Delete a drip campaign on a customer organisation","description":"Deletes a drip campaign and its cards.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"campaignId","in":"path","required":true,"description":"The drip campaign ID.","schema":{"type":"string","format":"uuid","description":"The drip campaign ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdDrip-campaignsCampaignIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Drip campaign not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"Get a drip campaign and its items on a customer organisation","description":"Returns the campaign details along with all question-and-answer cards.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"campaignId","in":"path","required":true,"description":"The drip campaign ID.","schema":{"type":"string","format":"uuid","description":"The drip campaign ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdDrip-campaignsCampaignIdGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Drip campaign not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a drip campaign and its items on a customer organisation","description":"Updates configuration and replaces or adjusts question cards.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"campaignId","in":"path","required":true,"description":"The drip campaign ID.","schema":{"type":"string","format":"uuid","description":"The drip campaign ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdDrip-campaignsCampaignIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The engagement_gamification product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Drip campaign not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid cadence or parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Updated title (1-200 characters)."},"course_id":{"type":["string","null"],"format":"uuid","description":"Updated course ID."},"cadence":{"type":"string","enum":["daily","every_other_day","weekly","monthly"],"description":"Updated delivery cadence."},"is_active":{"type":"boolean","description":"Updated active flag."},"items":{"type":"array","description":"Full items array (replaces existing list)."}},"required":["title","cadence","is_active","items"]}}}}}},"/api/v1/partner/tenants/{id}/integrations/content-providers":{"delete":{"summary":"Remove a customer organisation's own content-library account","description":"Deletes the organisation's own credential for the provider and sets it to no own account. Items already in its library stay.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"provider_key","in":"query","required":true,"description":"The content provider key.","schema":{"type":"string","description":"The content provider key."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdIntegrationsContent-providersItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"List a customer organisation's content-library accounts","description":"The providers the organisation has set up and whether it holds its own credential for each. The credential itself is never returned.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdIntegrationsContent-providersGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"summary":"Set a customer organisation's own content-library account","description":"Stores the organisation's own credential for one provider (write-only; every credential field the provider needs) and switches the provider to it. Omit `credentials` to only turn the provider on or off. `403 module_not_entitled` when the organisation's plan does not include Integrations. Catalogue syncs never count anyone as an active user.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdIntegrationsContent-providersPutItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider_key":{"type":"string","description":"The content provider key."},"credentials":{"type":"object","description":"The organisation's provider credential fields (write-only)."},"enabled":{"type":"boolean","description":"Turn the provider on or off for the organisation. Default true when a credential is stored."}},"required":["provider_key","credentials","enabled"]}}}}}},"/api/v1/partner/tenants/{id}/integrations/hris":{"delete":{"summary":"Remove a customer organisation's HRIS connection","description":"Deletes the connection, its run log and its employee links. People it created stay in the organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"provider","in":"query","required":true,"description":"The HRIS adapter key to disconnect.","schema":{"type":"string","description":"The HRIS adapter key to disconnect."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdIntegrationsHrisItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"List a customer organisation's HRIS connections","description":"The organisation's HRIS connections and the providers it can connect. Provider credentials are never returned.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdIntegrationsHrisGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"summary":"Connect or update a customer organisation's HRIS","description":"Creates or updates the organisation's connection for one HRIS provider, on the customer's or the partner's own provider account. `config` is write-only and required when connecting; omit it on an update to keep the stored one. `rules.default_role_key` is set by the organisation's administrator, not here. `403 module_not_entitled` when the organisation's plan does not include Integrations. Sync runs never count anyone as an active user.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdIntegrationsHrisPutItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"The HRIS adapter key."},"display_name":{"type":"string","description":"Name shown to the organisation's admins."},"config":{"type":"object","description":"The provider account settings and credentials (write-only)."},"identity_mode":{"type":"string","enum":["pseudonymous","email_allowed"],"description":"Default `pseudonymous`."},"rules":{"type":"object","description":"Sync rules; `default_role_key` is refused."},"schedule":{"type":"string","enum":["hourly","daily","manual"],"description":"Default `daily`."},"status":{"type":"string","enum":["disabled","active"],"description":"Default `disabled`."}},"required":["provider","display_name","config","identity_mode","rules","schedule","status"]}}}}}},"/api/v1/partner/tenants/{id}/job-titles":{"get":{"summary":"List job titles on a customer organisation","description":"Lists all job titles defined in the organisation taxonomy.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdJob-titlesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a job title on a customer organisation","description":"Creates a new job title in the organisation taxonomy.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdJob-titlesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Job title with this name already exists in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid job title parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Job title name (1-120 characters)."}},"required":["name"]}}}}}},"/api/v1/partner/tenants/{id}/job-titles/{jobTitleId}/competencies":{"put":{"summary":"Set competency expectations for a job title","description":"Replaces all expected competency levels for a given job title.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"jobTitleId","in":"path","required":true,"description":"The job title ID.","schema":{"type":"string","format":"uuid","description":"The job title ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdJob-titlesJobTitleIdCompetenciesItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Job title not found in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid competency expectation parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","description":"Array of { competency_id, expected_level } objects (0-200 items)."}},"required":["items"]}}}}}},"/api/v1/partner/tenants/{id}/keys":{"post":{"summary":"Mint a key for a customer organisation","description":"Creates an API key for the organisation. `scopes` are module scopes (e.g. `module.learn`) that must be inside the partner contract (`403 module_outside_contract`); `permissions` come from the permission catalogue and never include `tenant.admin`, `user.role.assign`, `settings.manage` (`403 permission_denied`). The secret is shown once.\n\nRequires a partner key scoped `partner.keys`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKeysItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`module_outside_contract` — a scope is outside the partner contract. `permission_denied` — a permission can never be granted to a partner-minted key.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"A label for the key."},"scopes":{"type":"array","description":"Module scopes, at least one."},"permissions":{"type":"array","description":"Permission keys the key may use."},"expires_at":{"type":["string","null"],"format":"date-time","description":"Optional expiry, in the future. Defaults to 365 days after creation."}},"required":["name","scopes","permissions"]}}}}}},"/api/v1/partner/tenants/{id}/keys/{keyId}":{"delete":{"summary":"Revoke a customer organisation's key","description":"Revokes the key. `404 not_found` when the key does not exist, belongs to another organisation, or is already revoked.\n\nRequires a partner key scoped `partner.keys`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"keyId","in":"path","required":true,"description":"The key to revoke.","schema":{"type":"string","format":"uuid","description":"The key to revoke."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKeysKeyIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/knowledge/articles/{articleId}/attachments":{"get":{"summary":"List attachments of a customer article","description":"Lists all files attached to an article in a customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"articleId","in":"path","required":true,"description":"The article ID.","schema":{"type":"string","format":"uuid","description":"The article ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeArticlesArticleIdAttachmentsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Attach a file to a customer article","description":"Uploads and attaches a file (up to 4 MB) to an article in a customer organisation using multipart/form-data with a `file` field.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"articleId","in":"path","required":true,"description":"The article ID.","schema":{"type":"string","format":"uuid","description":"The article ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeArticlesArticleIdAttachmentsPostItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The social_learning product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Maximum 10 attachments per article reached.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"File exceeds 4 MB limit.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"File type not permitted.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Malware detected in uploaded file.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Malware scanner unavailable and scanning is required.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/knowledge/articles/{articleId}/attachments/{attachmentId}":{"delete":{"summary":"Delete an attachment from a customer article","description":"Deletes an attachment from a customer article and removes it from storage.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"articleId","in":"path","required":true,"description":"The article ID.","schema":{"type":"string","format":"uuid","description":"The article ID."}},{"name":"attachmentId","in":"path","required":true,"description":"The attachment ID.","schema":{"type":"string","format":"uuid","description":"The attachment ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeArticlesArticleIdAttachmentsAttachmentIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"You do not have permission to delete this attachment.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Attachment not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/knowledge/categories":{"get":{"summary":"List knowledge categories on a customer organisation","description":"Lists all knowledge categories with article counts in display order.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeCategoriesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a knowledge category on a customer organisation","description":"Creates a new knowledge base category for articles.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeCategoriesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The social_learning product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Category name already exists in this organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid category fields.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Category name (1-120 characters)."},"description":{"type":["string","null"],"description":"Category description (up to 1,000 characters)."},"icon":{"type":["string","null"],"description":"Icon identifier (up to 60 characters, defaults to BookOpen)."},"color":{"type":["string","null"],"description":"Hex color string (e.g. #3b82f6)."},"order_index":{"type":["integer","null"],"description":"Display order index."}},"required":["name"]}}}}}},"/api/v1/partner/tenants/{id}/knowledge/categories/{categoryId}":{"delete":{"summary":"Delete a knowledge category on a customer organisation","description":"Deletes an unused knowledge category. Refused if any articles are assigned to it.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"categoryId","in":"path","required":true,"description":"The category ID.","schema":{"type":"string","format":"uuid","description":"The category ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeCategoriesCategoryIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The social_learning product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Category not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Cannot delete category while articles are assigned to it.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a knowledge category on a customer organisation","description":"Updates a knowledge base category configuration, name, icon, color, or order index.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"categoryId","in":"path","required":true,"description":"The category ID.","schema":{"type":"string","format":"uuid","description":"The category ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdKnowledgeCategoriesCategoryIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The social_learning product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Category not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Category name already exists in this organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid category fields.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Updated category name (1-120 characters)."},"description":{"type":["string","null"],"description":"Updated category description (up to 1,000 characters)."},"icon":{"type":["string","null"],"description":"Updated icon identifier (up to 60 characters)."},"color":{"type":["string","null"],"description":"Updated hex color string (#rrggbb)."},"order_index":{"type":["integer","null"],"description":"Updated display order index."}},"required":["name"]}}}}}},"/api/v1/partner/tenants/{id}/learners":{"post":{"summary":"Create or find a learner","description":"Creates the learner identified by `external_id` in the organisation, or returns the existing one. `email` is refused (`422 email_not_allowed`) when the partner contract is `identity_mode: pseudonymous`; the contract learner cap answers `402 learner_cap`. `role_key` names a tenant role that is not an administrator role; anything else falls back to the organisation's default learner role.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdLearnersItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"`learner_cap` — the contract learner ceiling is reached. `learner_limit_reached` — the plan seat limit is.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`email_in_use` — the address belongs to an account outside this organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`email_not_allowed` — the contract does not allow learner email addresses.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"external_id":{"type":"string","description":"The partner's own identifier for this person, 1 to 200 characters."},"display_name":{"type":["string","null"],"description":"Optional name. Stored only if sent."},"email":{"type":["string","null"],"format":"email","description":"Optional real address; only when the contract allows it."},"department_id":{"type":["string","null"],"format":"uuid","description":"Optional department in this organisation."},"title":{"type":["string","null"],"description":"Optional job title."},"role_key":{"type":["string","null"],"description":"Optional tenant role key."}},"required":["external_id"]}}}}}},"/api/v1/partner/tenants/{id}/learners/{external_id}":{"delete":{"summary":"Erase a learner (data subject request)","description":"Erases the learner's personal data through the platform's data-subject erasure path and removes the external-id mapping. Answers `202` with the erasure result. A learner under a legal hold is refused with `409 legal_hold` and nothing is deleted. An organisation administrator can never be erased through the API.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"external_id","in":"path","required":true,"description":"The partner's identifier for the learner.","schema":{"type":"string","description":"The partner's identifier for the learner."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdLearnersExternal_idItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`legal_hold` — the learner is under a legal hold; nothing was deleted.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update or deactivate a learner","description":"Updates the supplied fields. `active: false` deactivates the learner (reversible with `active: true`); nothing is deleted. A department id must belong to this organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}},{"name":"external_id","in":"path","required":true,"description":"The partner's identifier for the learner.","schema":{"type":"string","description":"The partner's identifier for the learner."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdLearnersExternal_idPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":["string","null"],"description":"New display name."},"department_id":{"type":["string","null"],"format":"uuid","description":"New department, or null to clear."},"title":{"type":["string","null"],"description":"New job title."},"active":{"type":["boolean","null"],"description":"false deactivates, true reactivates."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/lessons/{lessonId}/content":{"put":{"summary":"Save lesson block content on a customer organisation","description":"Replaces lesson content with sanitised block JSON (version 2) up to 2 MB, syncing lesson duration.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"lessonId","in":"path","required":true,"description":"The lesson ID.","schema":{"type":"string","format":"uuid","description":"The lesson ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdLessonsLessonIdContentItem"}},"required":["data"]}}}},"400":{"description":"Invalid block schema or malformed content.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Lesson not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Content payload exceeds 2 MB limit.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"object","description":"Lesson content object containing version and blocks array."}},"required":["content"]}}}}}},"/api/v1/partner/tenants/{id}/packages":{"get":{"summary":"List installed standard packages on a customer organisation","description":"Lists all installed SCORM, xAPI, and cmi5 packages on the customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPackagesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Install a standard package from a staged upload","description":"Installs a standard course package (SCORM 1.2, SCORM 2004, xAPI, or cmi5) previously uploaded to the staging area onto a lesson.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPackagesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The courses_paths product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Lesson or staged upload not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Package exceeds the maximum byte limit.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid package structure or missing manifest.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lesson_id":{"type":"string","format":"uuid","description":"Target lesson id."},"staged_path":{"type":"string","description":"Staged file path returned by the uploads ticket route."}},"required":["lesson_id","staged_path"]}}}}}},"/api/v1/partner/tenants/{id}/packages/uploads":{"post":{"summary":"Request a signed upload ticket for a standard package","description":"Returns a signed direct-to-storage upload URL and token for a SCORM, xAPI or cmi5 package up to 200 MB.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPackagesUploadsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The courses_paths product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Package exceeds the 200 MB limit.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid file_name or size_bytes.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file_name":{"type":"string","description":"Package archive filename (1-255 characters)."},"size_bytes":{"type":"integer","description":"Size of the package archive in bytes (>= 1)."}},"required":["file_name","size_bytes"]}}}}}},"/api/v1/partner/tenants/{id}/paths":{"get":{"summary":"List learning paths on a customer organisation","description":"Lists learning paths on the customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPathsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a learning path on a customer organisation","description":"Creates a new learning path with optional ordered course list.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPathsPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The courses_paths product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"One or more courses not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Title of the learning path (1-200 chars)."},"description":{"type":["string","null"],"description":"Description (up to 5000 chars)."},"is_public":{"type":["boolean","null"],"description":"Whether the path is visible to all learners."},"thumbnail_url":{"type":["string","null"],"description":"HTTPS thumbnail image URL."},"course_ids":{"type":["array","null"],"description":"Ordered list of course UUIDs."}},"required":["title"]}}}}}},"/api/v1/partner/tenants/{id}/paths/{pathId}":{"delete":{"summary":"Delete a learning path on a customer organisation","description":"Deletes a learning path and its course mappings.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"pathId","in":"path","required":true,"description":"The learning path ID.","schema":{"type":"string","format":"uuid","description":"The learning path ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPathsPathIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Learning path not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"Get a learning path on a customer organisation","description":"Retrieves a single learning path with its ordered course_ids.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"pathId","in":"path","required":true,"description":"The learning path ID.","schema":{"type":"string","format":"uuid","description":"The learning path ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPathsPathIdGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a learning path on a customer organisation","description":"Updates learning path attributes or replaces its ordered course list.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"pathId","in":"path","required":true,"description":"The learning path ID.","schema":{"type":"string","format":"uuid","description":"The learning path ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdPathsPathIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Learning path not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"One or more courses not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":["string","null"],"description":"New title."},"description":{"type":["string","null"],"description":"New description."},"is_public":{"type":["boolean","null"],"description":"New public visibility."},"thumbnail_url":{"type":["string","null"],"description":"New thumbnail URL."},"course_ids":{"type":["array","null"],"description":"Replaces the entire list of courses."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/products":{"get":{"summary":"Read a customer organisation's products","description":"Every switchable product with whether it is on for this organisation, plus the partner-wide default products.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProductsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"summary":"Set a customer organisation's products","description":"Replaces the organisation's product set: the products named are on, every other product is off. `null` applies the partner-wide default products. A switch takes effect on the next request: calls into a product that is off answer `403 product_off`, and its embed and LTI launches show a notice. The product's data is kept, read-only, and comes back when it is switched on again. People who used the product earlier in the month are still billed for it. Each product whose state changed sends `product.enabled` or `product.disabled` to the partner's webhooks.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProductsPutItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`product_outside_contract` — a product is outside the partner contract.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`products_required` — `products` is null and the partner has no default products.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":["array","null"],"description":"Product keys to switch on. `null` applies the partner-wide default products; `[]` switches every product off."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/programmes":{"get":{"summary":"List programme templates on a customer organisation","description":"Lists all programme templates on the customer organisation with step and enrolment counts.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProgrammesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a programme template on a customer organisation","description":"Creates a new programme template with steps on the customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProgrammesPostItem"}},"required":["data"]}}}},"400":{"description":"Invalid step or template parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The courses_paths product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"Unique identifier key for the programme."},"name":{"type":"string","description":"Name of the programme template."},"description":{"type":["string","null"],"description":"Optional description."},"category":{"type":["string","null"],"description":"Category (custom, onboarding, etc.)."},"trigger_type":{"type":["string","null"],"description":"Trigger type (manual, etc.)."},"cover_image_url":{"type":["string","null"],"description":"Cover image URL."},"target_job_title_id":{"type":["string","null"],"description":"Job title ID."},"target_competency_ids":{"type":["array","null"],"description":"Target competency IDs."},"steps":{"type":["array","null"],"description":"List of programme steps."}},"required":["key","name"]}}}}}},"/api/v1/partner/tenants/{id}/programmes/{programmeId}":{"delete":{"summary":"Delete a programme template on a customer organisation","description":"Deletes a programme template if no active enrolments exist.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"programmeId","in":"path","required":true,"description":"The programme template ID.","schema":{"type":"string","format":"uuid","description":"The programme template ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProgrammesProgrammeIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Programme template not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Template has active enrolments and cannot be deleted.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"Get a programme template on a customer organisation","description":"Retrieves a single programme template with its steps.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"programmeId","in":"path","required":true,"description":"The programme template ID.","schema":{"type":"string","format":"uuid","description":"The programme template ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProgrammesProgrammeIdGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a programme template on a customer organisation","description":"Updates programme template details.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"programmeId","in":"path","required":true,"description":"The programme template ID.","schema":{"type":"string","format":"uuid","description":"The programme template ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProgrammesProgrammeIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Programme template not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Updated name."},"description":{"type":["string","null"],"description":"Updated description."},"category":{"type":["string","null"],"description":"Updated category."},"trigger_type":{"type":["string","null"],"description":"Updated trigger type."},"cover_image_url":{"type":["string","null"],"description":"Updated cover image URL."},"target_job_title_id":{"type":["string","null"],"description":"Updated job title ID."},"target_competency_ids":{"type":["array","null"],"description":"Updated competency IDs."},"is_active":{"type":["boolean","null"],"description":"Updated active flag."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/programmes/{programmeId}/steps":{"put":{"summary":"Replace all steps for a programme template on a customer organisation","description":"Replaces the entire step list for a programme template.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"programmeId","in":"path","required":true,"description":"The programme template ID.","schema":{"type":"string","format":"uuid","description":"The programme template ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdProgrammesProgrammeIdStepsItem"}},"required":["data"]}}}},"400":{"description":"Invalid step definition.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Programme template not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"type":"array","description":"Array of programme steps to set."}},"required":["steps"]}}}}}},"/api/v1/partner/tenants/{id}/sessions":{"get":{"summary":"List classroom and virtual sessions on a customer organisation","description":"Lists all classroom and virtual sessions scheduled or delivered in the customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"courseId","in":"query","required":false,"description":"Filter sessions by course.","schema":{"type":"string","format":"uuid","description":"Filter sessions by course."}},{"name":"status","in":"query","required":false,"description":"Filter sessions by status (scheduled, completed, cancelled).","schema":{"type":"string","description":"Filter sessions by status (scheduled, completed, cancelled)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSessionsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a live or classroom session on a customer organisation","description":"Creates a single classroom or virtual session, or a recurring series with capacity and venue settings.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSessionsPostItem"}},"required":["data"]}}}},"400":{"description":"Invalid scheduling parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The live_sessions product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid session properties or missing location for in-person.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Title of the session."},"description":{"type":["string","null"],"description":"Optional description of the session."},"deliveryMode":{"type":"string","enum":["in_person","virtual","hybrid"],"description":"Delivery mode."},"location":{"type":["string","null"],"description":"Venue location for in-person or hybrid sessions."},"virtualProvider":{"type":["string","null"],"enum":["zoom","teams","meet","none"],"description":"Virtual meeting provider."},"joinUrl":{"type":["string","null"],"description":"Virtual meeting join URL."},"trainerId":{"type":["string","null"],"format":"uuid","description":"Assigned trainer user ID."},"courseId":{"type":["string","null"],"format":"uuid","description":"Linked course ID."},"lessonId":{"type":["string","null"],"format":"uuid","description":"Linked lesson ID."},"startsAt":{"type":"string","description":"Start instant in ISO-8601 format."},"endsAt":{"type":"string","description":"End instant in ISO-8601 format."},"sessionTimezone":{"type":"string","description":"IANA timezone for scheduling."},"capacity":{"type":"integer","description":"Session capacity (1-100000)."},"recurrence":{"type":["object","null"],"description":"Optional recurrence configuration."}},"required":["title","deliveryMode","startsAt","endsAt","sessionTimezone","capacity"]}}}}}},"/api/v1/partner/tenants/{id}/sessions/{sessionId}":{"delete":{"summary":"Cancel a session on a customer organisation","description":"Cancels the session, cancels active registrations, and dispatches cancellation notifications.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"sessionId","in":"path","required":true,"description":"The session ID.","schema":{"type":"string","format":"uuid","description":"The session ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSessionsSessionIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Session not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Session cannot be cancelled.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"Get a classroom or virtual session on a customer organisation","description":"Retrieves details of a single session including trainer, capacity, and join link.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"sessionId","in":"path","required":true,"description":"The session ID.","schema":{"type":"string","format":"uuid","description":"The session ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSessionsSessionIdGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update or reschedule a session on a customer organisation","description":"Updates session properties or reschedules time/venue with automated notifications to registrants.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"sessionId","in":"path","required":true,"description":"The session ID.","schema":{"type":"string","format":"uuid","description":"The session ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSessionsSessionIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Session not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Capacity below confirmed headcount, or closed session.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":["string","null"],"description":"Updated title."},"description":{"type":["string","null"],"description":"Updated description."},"location":{"type":["string","null"],"description":"Updated venue location."},"joinUrl":{"type":["string","null"],"description":"Updated virtual meeting URL."},"capacity":{"type":["integer","null"],"description":"Updated capacity."},"trainerId":{"type":["string","null"],"format":"uuid","description":"Updated trainer ID."},"courseId":{"type":["string","null"],"format":"uuid","description":"Updated course ID."},"lessonId":{"type":["string","null"],"format":"uuid","description":"Updated lesson ID."},"startsAt":{"type":["string","null"],"description":"Updated start instant."},"endsAt":{"type":["string","null"],"description":"Updated end instant."},"deliveryMode":{"type":["string","null"],"enum":["in_person","virtual","hybrid"],"description":"Updated delivery mode."},"virtualProvider":{"type":["string","null"],"enum":["zoom","teams","meet","none"],"description":"Updated virtual provider."},"sessionTimezone":{"type":["string","null"],"description":"Updated timezone."},"seriesScope":{"type":["string","null"],"enum":["this","following"],"description":"Reschedule scope across recurring series."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/setup":{"get":{"summary":"List available set-up resources for a customer organisation","description":"Lists every set-up resource with its live entitlement and partner product state.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSetupItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/skills":{"get":{"summary":"List skills on a customer organisation","description":"Lists all skills in the organisation taxonomy (up to 1,000, ordered by name).\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSkillsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a skill on a customer organisation","description":"Creates a new skill in the organisation taxonomy.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSkillsPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Skill with this name already exists in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid skill parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Skill name (1-120 characters)."},"description":{"type":["string","null"],"description":"Skill description (up to 1,000 characters)."},"category":{"type":["string","null"],"description":"Skill category (up to 60 characters)."},"color":{"type":["string","null"],"description":"Hex color string (#rrggbb)."},"parent_skill_id":{"type":["string","null"],"format":"uuid","description":"Optional parent skill ID."}},"required":["name"]}}}}}},"/api/v1/partner/tenants/{id}/skills/{skillId}":{"delete":{"summary":"Delete a skill on a customer organisation","description":"Deletes a skill from the customer taxonomy.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"skillId","in":"path","required":true,"description":"The skill ID.","schema":{"type":"string","format":"uuid","description":"The skill ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSkillsSkillIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Skill not found in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a skill on a customer organisation","description":"Updates attributes of an existing skill in the customer taxonomy.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"skillId","in":"path","required":true,"description":"The skill ID.","schema":{"type":"string","format":"uuid","description":"The skill ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSkillsSkillIdPatchItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The skills_growth product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Skill not found in organisation.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Skill name already in use.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid skill parameters.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Skill name (1-120 characters)."},"description":{"type":["string","null"],"description":"Skill description (up to 1,000 characters)."},"category":{"type":["string","null"],"description":"Skill category (up to 60 characters)."},"color":{"type":["string","null"],"description":"Hex color string (#rrggbb)."},"parent_skill_id":{"type":["string","null"],"format":"uuid","description":"Parent skill ID."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/spaces":{"get":{"summary":"List social spaces on a customer organisation","description":"Lists all social learning spaces (open interest groups and closed cohorts) with member counts.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"slug","in":"query","required":false,"description":"Filter spaces by slug.","schema":{"type":"string","description":"Filter spaces by slug."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSpacesItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create a social space on a customer organisation","description":"Creates a new open interest group or closed cohort space. The integration principal becomes the owner member.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSpacesPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The social_learning product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Space name or slug already in use.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid name, visibility, or parameter shape.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the space (1-200 characters)."},"description":{"type":["string","null"],"description":"Space description or charter (up to 5,000 characters)."},"visibility":{"type":"string","enum":["open","closed"],"description":"Space visibility: open or closed."},"linkedCourseId":{"type":["string","null"],"format":"uuid","description":"Linked course ID."},"icon":{"type":["string","null"],"description":"Icon identifier (up to 60 characters, defaults to Users)."}},"required":["name","visibility"]}}}}}},"/api/v1/partner/tenants/{id}/spaces/{spaceId}":{"patch":{"summary":"Update or archive a social space on a customer organisation","description":"Updates space configuration or archives it. Only spaces created by the partner integration principal can be updated.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"spaceId","in":"path","required":true,"description":"The space ID.","schema":{"type":"string","format":"uuid","description":"The space ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdSpacesSpaceIdItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The social_learning product is switched off.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Space not found or not writable by partner principal.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"New space name or slug conflicts with an existing space.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Updated name (1-200 characters)."},"description":{"type":["string","null"],"description":"Updated description (up to 5,000 characters)."},"icon":{"type":["string","null"],"description":"Updated icon identifier (up to 60 characters)."},"visibility":{"type":"string","enum":["open","closed"],"description":"Updated visibility."},"linked_course_id":{"type":["string","null"],"format":"uuid","description":"Updated linked course ID."},"archived":{"type":"boolean","description":"Set true to archive, false to restore."}},"required":["name","visibility","archived"]}}}}}},"/api/v1/partner/tenants/{id}/training-needs":{"get":{"summary":"Read training-needs gap analysis for a customer organisation","description":"Returns competency gap analysis across the organisation or a specific department, respecting analytics privacy floors.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"scope","in":"query","required":false,"description":"Analysis scope: \"org\" (default) or \"department\".","schema":{"type":"string","description":"Analysis scope: \"org\" (default) or \"department\"."}},{"name":"department_id","in":"query","required":false,"description":"Required when scope is \"department\".","schema":{"type":"string","format":"uuid","description":"Required when scope is \"department\"."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdTraining-needsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Principal lacks permission to view reports.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer organisation does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid scope or missing department_id.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/tenants/{id}/webhooks":{"get":{"summary":"List partner-created webhooks on a customer organisation","description":"Lists all webhook endpoints created by this partner on the customer organisation (up to 100, newest first).\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"summary":"Create webhook endpoint(s) on a customer organisation","description":"Creates webhook endpoint(s) for the customer organisation. Returns the created webhooks and the signing secret.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksPostItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Organisation does not belong to this partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Partner webhook limit for this customer reached.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"One or more events belong to module.platform and cannot be subscribed for a customer.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The HTTPS destination URL."},"event_types":{"type":["array","null"],"description":"1-60 event types to subscribe to."},"all_events":{"type":["boolean","null"],"description":"If true, subscribes to all events across all subscribable modules."},"description":{"type":["string","null"],"description":"Optional description of the webhook."}},"required":["url"]}}}}}},"/api/v1/partner/tenants/{id}/webhooks/{hookId}":{"delete":{"summary":"Delete a partner-created webhook endpoint","description":"Deletes a webhook endpoint created by the partner on a customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"hookId","in":"path","required":true,"description":"The webhook endpoint ID.","schema":{"type":"string","format":"uuid","description":"The webhook endpoint ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksHookIdItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Webhook endpoint not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"summary":"Get a partner-created webhook endpoint","description":"Retrieves a single webhook endpoint created by the partner on a customer organisation.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"hookId","in":"path","required":true,"description":"The webhook endpoint ID.","schema":{"type":"string","format":"uuid","description":"The webhook endpoint ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksHookIdGetItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"summary":"Update a partner-created webhook endpoint","description":"Updates url, event_types, is_active, or description for a partner-created webhook endpoint.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"hookId","in":"path","required":true,"description":"The webhook endpoint ID.","schema":{"type":"string","format":"uuid","description":"The webhook endpoint ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksHookIdPatchItem"}},"required":["data"]}}}},"400":{"description":"Destination guard rejection.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Webhook endpoint not found.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":["string","null"],"description":"New HTTPS destination URL."},"event_types":{"type":["array","null"],"description":"Updated event types for this webhook module."},"is_active":{"type":["boolean","null"],"description":"Whether the webhook is enabled."},"description":{"type":["string","null"],"description":"Updated description."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/webhooks/{hookId}/rotate":{"post":{"summary":"Rotate secret for a partner-created webhook endpoint","description":"Rotates the webhook signing secret with an overlap window (default 24h).\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation.","schema":{"type":"string","format":"uuid","description":"The customer organisation."}},{"name":"hookId","in":"path","required":true,"description":"The webhook endpoint ID.","schema":{"type":"string","format":"uuid","description":"The webhook endpoint ID."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksHookIdRotateItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Customer does not belong to partner.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"overlap_hours":{"type":["integer","null"],"description":"Overlap window in hours (1-168, default 24)."}},"required":[]}}}}}},"/api/v1/partner/tenants/{id}/webhooks/events":{"get":{"summary":"List subscribable webhook events for a customer organisation","description":"Every event that can be subscribed to on a customer organisation, across all modules except module.platform.\n\nRequires a partner key scoped `partner.tenants`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The customer organisation (must belong to the partner).","schema":{"type":"string","format":"uuid","description":"The customer organisation (must belong to the partner)."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerTenantsIdWebhooksEventsItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/usage":{"get":{"summary":"Partner usage","description":"Usage summed over `from`..`to` (inclusive UTC days, default the last 30 days, at most 366), grouped by `tenant`, `feature` or `key`. `ai_credits` is undiscounted. `active_learner_days` is the sum of daily distinct active learners, not a count of distinct people. Grouping by `key` covers API calls only.\n\nRequires a partner key scoped `partner.usage`, acting as a person who currently holds partner role `viewer` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"from","in":"query","required":false,"description":"First day, YYYY-MM-DD (UTC). Default: 29 days before `to`.","schema":{"type":"string","format":"date","description":"First day, YYYY-MM-DD (UTC). Default: 29 days before `to`."}},{"name":"to","in":"query","required":false,"description":"Last day, YYYY-MM-DD (UTC). Default: today.","schema":{"type":"string","format":"date","description":"Last day, YYYY-MM-DD (UTC). Default: today."}},{"name":"group_by","in":"query","required":false,"description":"How to group. Default `tenant`.","schema":{"type":"string","enum":["tenant","feature","key"],"description":"How to group. Default `tenant`."}}],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerUsageItem"}},"required":["data"]}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/partner/wallet/topups":{"post":{"summary":"Top up the credit wallet","description":"Retired while partner billing moves to the new pricing: a request that is authorised and well formed answers `410 topups_retired` and creates, collects and credits nothing. Nothing in the wallet changes. The fields below are what the endpoint accepted and returned before it was retired: a top-up of `amount_minor` (minor units of the rate card currency) with a `status` of `pending`, `paid` or `manual`.\n\nRequires a partner key scoped `partner.billing`, acting as a person who currently holds partner role `admin` or higher. Customer-organisation ids that do not belong to the partner answer `404 tenant_not_child`.","tags":["partner"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"The resource.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartnerWalletTopupsItem"}},"required":["data"]}}}},"400":{"description":"`bad_request` — The request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts. Adds: `issues`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"`unauthorized` — No `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.\n\n`key_revoked` — The key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`scope_not_granted` — The key resolved, but it is not scoped for the module this endpoint belongs to. Adds: `scope`.\n\n`module_not_entitled` — The organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued. Adds: `module`.\n\n`permission_denied` — The principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority. Adds: `required_permission`.\n\n`product_off` — The product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again. Adds: `product`, `module`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"`not_found` — No resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`version_sunset` — This API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped. Adds: `version`, `sunset_on`, `replacement_version`, `documentation_url`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited` — Too many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota. Adds: `retry_after_seconds`, `limit_scope`.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}},"Retry-After":{"description":"RFC 9110. Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"`internal_error` — Something failed on our side. The response body never carries the underlying detail.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`api_keys_not_provisioned` — API key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.","headers":{"X-API-Version":{"description":"The API version that answered this request.","schema":{"type":"string","examples":["v1"]}},"RateLimit-Limit":{"description":"Requests permitted for this key in the current window. Absent when the limiter could not be consulted — never a guessed number.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. A delta, not a timestamp, so a client with a wrong clock can still use it.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The published policy, as `<limit>;w=<window seconds>`.","schema":{"type":"string","examples":["60;w=60"]}},"Deprecation":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day deprecation began.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594. Present only while this version is deprecated; an HTTP-date giving the day it stops answering.","schema":{"type":"string"}},"Link":{"description":"Present only while this version is deprecated: `rel=\"deprecation\"` pointing at the policy, and `rel=\"successor-version\"` when a replacement is named.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_minor":{"type":"integer","description":"The amount to pay, minor units, above 0."}},"required":["amount_minor"]}}}}}}},"webhooks":{"course.published":{"post":{"operationId":"webhook_course_published","summary":"course.published","description":"A course was published. Payload: { courseId, releaseId, releaseNumber, manifestHash, itemCount }.\n\nSubscribe through an endpoint on the `module.learn` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_course_published"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"course.unpublished":{"post":{"operationId":"webhook_course_unpublished","summary":"course.unpublished","description":"A course left the published state (back to draft, or archived). Payload: { courseId }.\n\nSubscribe through an endpoint on the `module.learn` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_course_unpublished"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"enrollment.created":{"post":{"operationId":"webhook_enrollment_created","summary":"enrollment.created","description":"A learner was enrolled in a course. Payload: { userId, courseId, assignedBy }.\n\nSubscribe through an endpoint on the `module.learn` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_enrollment_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"lesson.completed":{"post":{"operationId":"webhook_lesson_completed","summary":"lesson.completed","description":"A learner completed a lesson, from the native player, SCORM or cmi5. Payload: { userId, lessonId, courseId, source }.\n\nSubscribe through an endpoint on the `module.learn` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_lesson_completed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"course.completed":{"post":{"operationId":"webhook_course_completed","summary":"course.completed","description":"A learner completed an entire course. Payload: { userId, courseId, enrollmentId, completedAt, deprecatedKeys }. Also carries the deprecated snake_case aliases user_id, course_id, enrollment_id, completed_at (same values; removed 1 April 2027).\n\nSubscribe through an endpoint on the `module.learn` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_course_completed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"certificate.issued":{"post":{"operationId":"webhook_certificate_issued","summary":"certificate.issued","description":"A certificate was issued. Payload: { userId, courseId, verificationCode }.\n\nSubscribe through an endpoint on the `module.assessment` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_certificate_issued"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"certificate.revoked":{"post":{"operationId":"webhook_certificate_revoked","summary":"certificate.revoked","description":"A certificate was revoked by an administrator. Payload: { certificateId, courseId, userId }.\n\nSubscribe through an endpoint on the `module.assessment` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_certificate_revoked"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"quiz.attempt.graded":{"post":{"operationId":"webhook_quiz_attempt_graded","summary":"quiz.attempt.graded","description":"An assessment attempt finished auto-grading (status \"graded\", every question auto-scored). Payload: { attemptId, userId, score, passed }.\n\nSubscribe through an endpoint on the `module.assessment` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_quiz_attempt_graded"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"assessment.submitted":{"post":{"operationId":"webhook_assessment_submitted","summary":"assessment.submitted","description":"A learner finalized an assessment attempt: auto-graded immediately, or moved to status \"submitted\" while a human grader reviews essay and file-upload questions. Fires for both; use quiz.attempt.graded to know when grading itself is done. Payload: { attemptId, userId, status }.\n\nSubscribe through an endpoint on the `module.assessment` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_assessment_submitted"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"path.enrollment.created":{"post":{"operationId":"webhook_path_enrollment_created","summary":"path.enrollment.created","description":"A learner was enrolled in a learning path. Payload: { userId, pathId, assignedBy }.\n\nSubscribe through an endpoint on the `module.paths` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_path_enrollment_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"path.completed":{"post":{"operationId":"webhook_path_completed","summary":"path.completed","description":"A learner completed a learning path. Payload: { userId, pathId, completedAt }.\n\nSubscribe through an endpoint on the `module.paths` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_path_completed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"roleplay.scored":{"post":{"operationId":"webhook_roleplay_scored","summary":"roleplay.scored","description":"A role-play attempt was scored. Payload: { attemptId, userId, lessonId, score }.\n\nSubscribe through an endpoint on the `module.ai` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_roleplay_scored"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"practice.completed":{"post":{"operationId":"webhook_practice_completed","summary":"practice.completed","description":"A learner finished an AI practice exercise. Payload: { sessionId, userId, exerciseType, modality, difficulty, score, competencyId, skillId, completedAt }. No feedback, transcript or skill name is included.\n\nSubscribe through an endpoint on the `module.ai` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_practice_completed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"skill.score.updated":{"post":{"operationId":"webhook_skill_score_updated","summary":"skill.score.updated","description":"A learner skill or competency score changed (recalculated for every skill the just-completed course teaches). Payload: { userId, skillId, courseId }.\n\nSubscribe through an endpoint on the `module.skills` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_skill_score_updated"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"post.created":{"post":{"operationId":"webhook_post_created","summary":"post.created","description":"A feed post was published. Payload: { postId, authorId, spaceId }.\n\nSubscribe through an endpoint on the `module.community` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_post_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"discussion.comment.created":{"post":{"operationId":"webhook_discussion_comment_created","summary":"discussion.comment.created","description":"A comment was added to a feed post or a course discussion. Payload: { commentId, discussionId, authorId } (discussionId is the post, or the course-discussion thread root).\n\nSubscribe through an endpoint on the `module.community` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_discussion_comment_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"notification.created":{"post":{"operationId":"webhook_notification_created","summary":"notification.created","description":"An in-app notification was created for a learner. Payload: { notificationId, userId, kind, title, url }.\n\nSubscribe through an endpoint on the `module.engage` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_notification_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"drip.campaign.completed":{"post":{"operationId":"webhook_drip_campaign_completed","summary":"drip.campaign.completed","description":"A learner has now been sent every item of a drip campaign. Payload: { campaignId, channel }.\n\nSubscribe through an endpoint on the `module.engage` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_drip_campaign_completed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"order.completed":{"post":{"operationId":"webhook_order_completed","summary":"order.completed","description":"A commerce order was marked paid. Payload: { orderId }. Orders paid through the payment provider are not delivered to webhook endpoints yet.\n\nSubscribe through an endpoint on the `module.commerce` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_order_completed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"subscription.created":{"post":{"operationId":"webhook_subscription_created","summary":"subscription.created","description":"An order tied to a subscription was marked paid. Payload: { subscriptionId, orderId }. Like order.completed, this is not delivered to webhook endpoints yet.\n\nSubscribe through an endpoint on the `module.commerce` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_subscription_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"subscription.cancelled":{"post":{"operationId":"webhook_subscription_cancelled","summary":"subscription.cancelled","description":"A subscription was cancelled (status moved to canceled). Payload: { subscriptionId }.\n\nSubscribe through an endpoint on the `module.commerce` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_subscription_cancelled"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"learner.created":{"post":{"operationId":"webhook_learner_created","summary":"learner.created","description":"A person became an active member of the organisation (any route: invitation, SSO, SCIM, API, partner provisioning). Payload: { userId, tenantId, joinedAt }.\n\nSubscribe through an endpoint on the `module.org` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_learner_created"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"learner.deactivated":{"post":{"operationId":"webhook_learner_deactivated","summary":"learner.deactivated","description":"A member was deactivated. Payload: { userId, tenantId, deactivatedAt }.\n\nSubscribe through an endpoint on the `module.org` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_learner_deactivated"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"user.joined":{"post":{"operationId":"webhook_user_joined","summary":"user.joined","description":"A person accepted an invitation and joined the organisation. Sent on a best-effort basis; use learner.created for every way a person can join. Payload: { userId, tenantId, joinedAt }.\n\nSubscribe through an endpoint on the `module.org` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_user_joined"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.wallet.low":{"post":{"operationId":"webhook_partner_wallet_low","summary":"partner.wallet.low","description":"A partner credit wallet fell below its low-balance threshold. Payload: { partnerId, balance, threshold }. Delivered to the partner's own organisation, once per crossing.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_wallet_low"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"support.ticket.updated":{"post":{"operationId":"webhook_support_ticket_updated","summary":"support.ticket.updated","description":"A support ticket about one of the partner's customer organisations was opened or changed status. Delivered to the partner's own organisation. Payload: { ticketId, tenantId, partnerId, status, previousStatus, severity, subject, externalRef, change, updatedAt } (change: \"created\" or \"status\"; previousStatus is null on creation).\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_support_ticket_updated"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"product.enabled":{"post":{"operationId":"webhook_product_enabled","summary":"product.enabled","description":"A product was switched on for one of the partner's customer organisations (through the partner API, at provisioning, or in the partner portal). Delivered to the partner's own organisation, once per product whose state changed. Payload: { partnerId, customerId, product, at }.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_product_enabled"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.sandbox.wipe_warning":{"post":{"operationId":"webhook_partner_sandbox_wipe_warning","summary":"partner.sandbox.wipe_warning","description":"A partner sandbox has been inactive for the number of days set in the sandbox inactivity limit (90 by default) and will be wiped (its test customers, test users and test keys) after the warning period unless it is used again. Delivered to the partner's own organisation; the members who manage the partner account are also emailed. Payload: { partnerId, inactiveSince, inactiveDays, wipeAfter } (wipeAfter is null while the warning period is not set).\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_sandbox_wipe_warning"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"product.disabled":{"post":{"operationId":"webhook_product_disabled","summary":"product.disabled","description":"A product was switched off for one of the partner's customer organisations. Its API calls answer 403 product_off and its embed and LTI launches show a notice from the next request; its data is kept, read-only. Delivered to the partner's own organisation, once per product whose state changed. Payload: { partnerId, customerId, product, at }.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_product_disabled"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.billing.overdue_warning":{"post":{"operationId":"webhook_partner_billing_overdue_warning","summary":"partner.billing.overdue_warning","description":"A partner statement is 7 days overdue. Delivered to the partner's own organisation via outbox. Payload: { partnerId, statementId, period, dueOn, pauseOn }.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_billing_overdue_warning"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.signups.paused":{"post":{"operationId":"webhook_partner_signups_paused","summary":"partner.signups.paused","description":"New customer sign-ups for the partner were paused because a statement stayed unpaid past the number of days set in the platform setting partner.overdue_pause_days, or by a staff hold. Delivered to the partner's own organisation via outbox. Payload: { partnerId, statementId, period, dueOn }. A staff hold with no statement behind it carries no statement fields.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_signups_paused"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.signups.resumed":{"post":{"operationId":"webhook_partner_signups_resumed","summary":"partner.signups.resumed","description":"New customer sign-ups for the partner were resumed after an overdue statement was paid or waived. Delivered to the partner's own organisation via outbox. Payload: { partnerId }.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_signups_resumed"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.price_change.announced":{"post":{"operationId":"webhook_partner_price_change_announced","summary":"partner.price_change.announced","description":"A partner price change was announced with an effective date at least 30 days ahead. Delivered to the partner's own organisation via outbox. Payload: { noticeId, version, effectiveOn, announcedAt, changes }.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_price_change_announced"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"partner.price_change.withdrawn":{"post":{"operationId":"webhook_partner_price_change_withdrawn","summary":"partner.price_change.withdrawn","description":"A partner price change announcement was withdrawn while the version was still a draft. Delivered to the partner's own organisation via outbox. Payload: { noticeId, version, reason }.\n\nSubscribe through an endpoint on the `module.platform` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_partner_price_change_withdrawn"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"session.registered":{"post":{"operationId":"webhook_session_registered","summary":"session.registered","description":"A learner registered (confirmed or waitlisted) for a classroom or virtual session. Sent once per real registration, never on a repeated request. Payload: { userId, sessionId, status }.\n\nSubscribe through an endpoint on the `module.events` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_session_registered"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"session.attended":{"post":{"operationId":"webhook_session_attended","summary":"session.attended","description":"A person was marked present at a classroom or virtual session (trainer mark, self check-in or check-in code). Payload: { sessionId, userId, source }.\n\nSubscribe through an endpoint on the `module.events` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_session_attended"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"session.cancelled":{"post":{"operationId":"webhook_session_cancelled","summary":"session.cancelled","description":"A classroom or virtual session was cancelled. Payload: { sessionId, registrationsCancelled }.\n\nSubscribe through an endpoint on the `module.events` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_session_cancelled"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"policy.published":{"post":{"operationId":"webhook_policy_published","summary":"policy.published","description":"A policy version was published. Payload: { policyId, versionId, version, material, reackCreated }.\n\nSubscribe through an endpoint on the `feature.policy_acknowledgement` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_policy_published"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"policy.assigned":{"post":{"operationId":"webhook_policy_assigned","summary":"policy.assigned","description":"A person was asked to confirm a policy. Payload: { assignmentId, policyId, versionId, userId, dueAt, source }.\n\nSubscribe through an endpoint on the `feature.policy_acknowledgement` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_policy_assigned"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}},"policy.acknowledged":{"post":{"operationId":"webhook_policy_acknowledged","summary":"policy.acknowledged","description":"A person confirmed a policy version. Payload: { assignmentId, policyId, versionId, version, userId, acknowledgedAt }.\n\nSubscribe through an endpoint on the `feature.policy_acknowledgement` module.","tags":["webhooks"],"security":[],"parameters":[{"in":"header","required":true,"name":"X-Webhook-Id","description":"Stable delivery id (uuid). The same value on every retry of the same event; keep the ones you have processed and ignore repeats.","schema":{"type":"string","format":"uuid"}},{"in":"header","required":true,"name":"X-Webhook-Event","description":"The event type, e.g. `course.completed`.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Timestamp","description":"Unix seconds (string) at send time. Reject anything older than 5 minutes.","schema":{"type":"string"}},{"in":"header","required":true,"name":"X-Webhook-Signature","description":"`sha256=<hex>`: HMAC-SHA256 of `<timestamp>.<raw body>` with the endpoint secret. It can carry two space-separated values while a secret rotation overlaps; accept either.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload_policy_acknowledged"}}}},"responses":{"2XX":{"description":"Acknowledge receipt. Any other status (a 3xx redirect included; redirects are never followed), a network error or a timeout is retried."}}}}},"components":{"schemas":{"ErrorEnvelope":{"type":"object","description":"Every non-2xx response from /api/v1. `code` is the machine-readable discriminant to branch on; `error` is for humans. Some errors add extra fields (e.g. `retry_after_seconds` on 429, `required_permission` on 403). The full catalogue, including which codes are worth retrying, is published at /developers#errors.","properties":{"error":{"type":"string","description":"Human-readable message."},"code":{"type":"string","description":"Machine-readable error code.","enum":["bad_request","payload_too_large","unauthorized","key_revoked","scope_not_granted","module_not_entitled","permission_denied","not_found","route_not_found","version_sunset","rate_limited","internal_error","api_versions_not_provisioned","api_keys_not_provisioned","feature_not_provisioned","partner_scope_required","partner_role_insufficient","partner_suspended","tenant_not_child","partner_child_limit","wrong_region","module_outside_contract","partner_tier_above_contract","partner_tier_free","trial_on_partner_child","unknown_tier","partner_exiting","learner_header_required","learner_not_in_tenant","origin_not_allowed","target_not_embeddable","email_not_allowed","email_in_use","learner_cap","learner_limit_reached","limit_reached","legal_hold","conflict","validation_failed","ai_quota_exceeded","allowance_exhausted","insufficient_credits","guardrails_missing","format_unavailable","feature_disabled","ai_output_invalid","completion_required","idempotency_conflict","lesson_locked","proctored_requires_top_level","too_large","topups_not_applicable","payment_account_required","payment_provider_error","partner_subscription_not_available","ai_refused","product_off","unknown_product","product_requires","product_outside_contract","products_required","sandbox_customer_cap","sandbox_user_cap","sandbox_credit_cap","test_key_required","test_key_on_live_tenant","test_customer_immutable","unknown_event","event_not_subscribable","webhook_limit_reached","course_not_found","skill_not_found","competency_not_found","group_not_found","category_in_use","cannot_follow_self","follow_limit_reached","file_infected","scan_unavailable","unsupported_type","attachment_limit_reached","partner_paused"]}},"required":["error","code"]},"CursorMeta":{"type":"object","properties":{"cursor":{"type":"object","properties":{"next":{"type":["string","null"],"description":"Opaque cursor for the next page, or null on the last page. Pass back as `?cursor=`."}},"required":["next"]}}},"WebhookPayload_course_published":{"type":"object","description":"Body of the `course.published` event.","properties":{"courseId":{"type":"string"},"releaseId":{"type":"string"},"releaseNumber":{"type":"integer"},"manifestHash":{},"itemCount":{"type":"integer"}},"additionalProperties":true},"WebhookPayload_course_unpublished":{"type":"object","description":"Body of the `course.unpublished` event.","properties":{"courseId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_enrollment_created":{"type":"object","description":"Body of the `enrollment.created` event.","properties":{"userId":{"type":"string"},"courseId":{"type":"string"},"assignedBy":{}},"additionalProperties":true},"WebhookPayload_lesson_completed":{"type":"object","description":"Body of the `lesson.completed` event.","properties":{"userId":{"type":"string"},"lessonId":{"type":"string"},"courseId":{"type":"string"},"source":{}},"additionalProperties":true},"WebhookPayload_course_completed":{"type":"object","description":"Body of the `course.completed` event.","properties":{"userId":{"type":"string"},"courseId":{"type":"string"},"enrollmentId":{"type":"string"},"completedAt":{"type":"string","format":"date-time"},"deprecatedKeys":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"WebhookPayload_certificate_issued":{"type":"object","description":"Body of the `certificate.issued` event.","properties":{"userId":{"type":"string"},"courseId":{"type":"string"},"verificationCode":{"type":"string"}},"additionalProperties":true},"WebhookPayload_certificate_revoked":{"type":"object","description":"Body of the `certificate.revoked` event.","properties":{"certificateId":{"type":"string"},"courseId":{"type":"string"},"userId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_quiz_attempt_graded":{"type":"object","description":"Body of the `quiz.attempt.graded` event.","properties":{"attemptId":{"type":"string"},"userId":{"type":"string"},"score":{"type":"number"},"passed":{"type":"boolean"}},"additionalProperties":true},"WebhookPayload_assessment_submitted":{"type":"object","description":"Body of the `assessment.submitted` event.","properties":{"attemptId":{"type":"string"},"userId":{"type":"string"},"status":{}},"additionalProperties":true},"WebhookPayload_path_enrollment_created":{"type":"object","description":"Body of the `path.enrollment.created` event.","properties":{"userId":{"type":"string"},"pathId":{"type":"string"},"assignedBy":{}},"additionalProperties":true},"WebhookPayload_path_completed":{"type":"object","description":"Body of the `path.completed` event.","properties":{"userId":{"type":"string"},"pathId":{"type":"string"},"completedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"WebhookPayload_roleplay_scored":{"type":"object","description":"Body of the `roleplay.scored` event.","properties":{"attemptId":{"type":"string"},"userId":{"type":"string"},"lessonId":{"type":"string"},"score":{"type":"number"}},"additionalProperties":true},"WebhookPayload_practice_completed":{"type":"object","description":"Body of the `practice.completed` event.","properties":{"sessionId":{"type":"string"},"userId":{"type":"string"},"exerciseType":{},"modality":{},"difficulty":{},"score":{"type":"number"},"competencyId":{"type":"string"},"skillId":{"type":"string"},"completedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"WebhookPayload_skill_score_updated":{"type":"object","description":"Body of the `skill.score.updated` event.","properties":{"userId":{"type":"string"},"skillId":{"type":"string"},"courseId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_post_created":{"type":"object","description":"Body of the `post.created` event.","properties":{"postId":{"type":"string"},"authorId":{"type":"string"},"spaceId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_discussion_comment_created":{"type":"object","description":"Body of the `discussion.comment.created` event.","properties":{"commentId":{"type":"string"},"discussionId":{"type":"string"},"authorId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_notification_created":{"type":"object","description":"Body of the `notification.created` event.","properties":{"notificationId":{"type":"string"},"userId":{"type":"string"},"kind":{},"title":{},"url":{}},"additionalProperties":true},"WebhookPayload_drip_campaign_completed":{"type":"object","description":"Body of the `drip.campaign.completed` event.","properties":{"campaignId":{"type":"string"},"channel":{}},"additionalProperties":true},"WebhookPayload_order_completed":{"type":"object","description":"Body of the `order.completed` event.","properties":{"orderId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_subscription_created":{"type":"object","description":"Body of the `subscription.created` event.","properties":{"subscriptionId":{"type":"string"},"orderId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_subscription_cancelled":{"type":"object","description":"Body of the `subscription.cancelled` event.","properties":{"subscriptionId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_learner_created":{"type":"object","description":"Body of the `learner.created` event.","properties":{"userId":{"type":"string"},"tenantId":{"type":"string"},"joinedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"WebhookPayload_learner_deactivated":{"type":"object","description":"Body of the `learner.deactivated` event.","properties":{"userId":{"type":"string"},"tenantId":{"type":"string"},"deactivatedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"WebhookPayload_user_joined":{"type":"object","description":"Body of the `user.joined` event.","properties":{"userId":{"type":"string"},"tenantId":{"type":"string"},"joinedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"WebhookPayload_partner_wallet_low":{"type":"object","description":"Body of the `partner.wallet.low` event.","properties":{"partnerId":{"type":"string"},"balance":{"type":"number"},"threshold":{"type":"number"}},"additionalProperties":true},"WebhookPayload_support_ticket_updated":{"type":"object","description":"Body of the `support.ticket.updated` event.","properties":{"ticketId":{"type":"string"},"tenantId":{"type":"string"},"partnerId":{"type":"string"},"status":{},"previousStatus":{},"severity":{},"subject":{},"externalRef":{},"change":{},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"WebhookPayload_product_enabled":{"type":"object","description":"Body of the `product.enabled` event.","properties":{"partnerId":{"type":"string"},"customerId":{"type":"string"},"product":{},"at":{}},"additionalProperties":true},"WebhookPayload_partner_sandbox_wipe_warning":{"type":"object","description":"Body of the `partner.sandbox.wipe_warning` event.","properties":{"partnerId":{"type":"string"},"inactiveSince":{},"inactiveDays":{},"wipeAfter":{}},"additionalProperties":true},"WebhookPayload_product_disabled":{"type":"object","description":"Body of the `product.disabled` event.","properties":{"partnerId":{"type":"string"},"customerId":{"type":"string"},"product":{},"at":{}},"additionalProperties":true},"WebhookPayload_partner_billing_overdue_warning":{"type":"object","description":"Body of the `partner.billing.overdue_warning` event.","properties":{"partnerId":{"type":"string"},"statementId":{"type":"string"},"period":{},"dueOn":{},"pauseOn":{}},"additionalProperties":true},"WebhookPayload_partner_signups_paused":{"type":"object","description":"Body of the `partner.signups.paused` event.","properties":{"partnerId":{"type":"string"},"statementId":{"type":"string"},"period":{},"dueOn":{}},"additionalProperties":true},"WebhookPayload_partner_signups_resumed":{"type":"object","description":"Body of the `partner.signups.resumed` event.","properties":{"partnerId":{"type":"string"}},"additionalProperties":true},"WebhookPayload_partner_price_change_announced":{"type":"object","description":"Body of the `partner.price_change.announced` event.","properties":{"noticeId":{"type":"string"},"version":{},"effectiveOn":{},"announcedAt":{"type":"string","format":"date-time"},"changes":{}},"additionalProperties":true},"WebhookPayload_partner_price_change_withdrawn":{"type":"object","description":"Body of the `partner.price_change.withdrawn` event.","properties":{"noticeId":{"type":"string"},"version":{},"reason":{}},"additionalProperties":true},"WebhookPayload_session_registered":{"type":"object","description":"Body of the `session.registered` event.","properties":{"userId":{"type":"string"},"sessionId":{"type":"string"},"status":{}},"additionalProperties":true},"WebhookPayload_session_attended":{"type":"object","description":"Body of the `session.attended` event.","properties":{"sessionId":{"type":"string"},"userId":{"type":"string"},"source":{}},"additionalProperties":true},"WebhookPayload_session_cancelled":{"type":"object","description":"Body of the `session.cancelled` event.","properties":{"sessionId":{"type":"string"},"registrationsCancelled":{"type":"integer"}},"additionalProperties":true},"WebhookPayload_policy_published":{"type":"object","description":"Body of the `policy.published` event.","properties":{"policyId":{"type":"string"},"versionId":{"type":"string"},"version":{},"material":{},"reackCreated":{"type":"boolean"}},"additionalProperties":true},"WebhookPayload_policy_assigned":{"type":"object","description":"Body of the `policy.assigned` event.","properties":{"assignmentId":{"type":"string"},"policyId":{"type":"string"},"versionId":{"type":"string"},"userId":{"type":"string"},"dueAt":{"type":"string","format":"date-time"},"source":{}},"additionalProperties":true},"WebhookPayload_policy_acknowledged":{"type":"object","description":"Body of the `policy.acknowledged` event.","properties":{"assignmentId":{"type":"string"},"policyId":{"type":"string"},"versionId":{"type":"string"},"version":{},"userId":{"type":"string"},"acknowledgedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"EmbedSessionsItem":{"type":"object","properties":{"url":{"type":"string","description":"The one-time URL to load in the iframe."},"expires_in":{"type":"integer","description":"Seconds until the URL stops working. Single use."}},"required":["url","expires_in"]},"PartnerAi-keysItem":{"type":"object","properties":{"provider":{"type":"string","description":"The provider removed."},"module_key":{"type":["string","null"],"description":"The module the key was limited to, or null."},"deleted":{"type":"boolean","description":"Always true."}},"required":["provider","module_key","deleted"]},"PartnerAi-keysGetItem":{"type":"object","properties":{"keys":{"type":"array","description":"One object per key: `provider`, `module_key`, `key_hint`, `base_url`, `config`, `label`, `is_active`, `inherit_to_children`, `allowed_child_tenants`, `created_at`, `updated_at`."}},"required":["keys"]},"PartnerAi-keysPutItem":{"type":"object","properties":{"provider":{"type":"string","description":"The provider: openrouter, openai, anthropic, azure_openai, google."},"module_key":{"type":["string","null"],"description":"The module the key is limited to (for example `module.ai`); null is the default for the provider and is used where no module-specific key exists."},"key_hint":{"type":"string","description":"The last characters of the stored key, so you can tell which one it is. The key itself is never returned."},"base_url":{"type":"string","description":"The provider endpoint (required for azure_openai; otherwise the provider default when empty)."},"config":{"type":"object","description":"Provider extras, for example the azure_openai `apiVersion`."},"label":{"type":"string","description":"A name for your own reference."},"is_active":{"type":"boolean","description":"Whether the key is used."},"inherit_to_children":{"type":"boolean","description":"Whether child organisations run on this key when they have none of their own."},"allowed_child_tenants":{"type":["array","null"],"description":"Child organisation ids that may use it; null means every child."},"created_at":{"type":"string","format":"date-time","description":"When it was first stored."},"updated_at":{"type":"string","format":"date-time","description":"When it last changed."}},"required":["provider","module_key","key_hint","base_url","config","label","is_active","inherit_to_children","allowed_child_tenants","created_at","updated_at"]},"PartnerContent-providersItem":{"type":"object","properties":{"provider_key":{"type":"string","description":"The provider removed."},"deleted":{"type":"boolean","description":"Always true."}},"required":["provider_key","deleted"]},"PartnerContent-providersGetItem":{"type":"object","properties":{"providers":{"type":"array","description":"One object per provider: `provider_key`, `inherit_to_children`, `allowed_child_tenants`, `rights_note`, `created_at`, `updated_at`."}},"required":["providers"]},"PartnerContent-providersPutItem":{"type":"object","properties":{"provider_key":{"type":"string","description":"The content provider key (e.g. `go1`)."},"inherit_to_children":{"type":"boolean","description":"Whether child organisations may use this credential."},"allowed_child_tenants":{"type":["array","null"],"description":"Child organisation ids that may inherit it; null means every child."},"rights_note":{"type":"string","description":"The contractual basis for sharing the credential."},"created_at":{"type":"string","format":"date-time","description":"When it was first stored."},"updated_at":{"type":"string","format":"date-time","description":"When it last changed."}},"required":["provider_key","inherit_to_children","allowed_child_tenants","rights_note","created_at","updated_at"]},"PartnerMeItem":{"type":"object","properties":{"partner_id":{"type":"string","format":"uuid","description":"The partner id."},"slug":{"type":"string","description":"The partner slug (immutable)."},"name":{"type":"string","description":"The partner display name."},"tier":{"type":"string","enum":["registered","integrated","oem"],"description":"The partner tier."},"status":{"type":"string","enum":["active","suspended"],"description":"The partner status."},"region":{"type":"string","description":"The partner region."},"environment":{"type":"string","enum":["sandbox","live"],"description":"sandbox (free, test customers and test keys only, never billed) until go-live is approved, then live."},"key_environment":{"type":"string","enum":["live","test"],"description":"Whether this key is a test (pak_test_) or live key."},"home_tenant_id":{"type":"string","format":"uuid","description":"The partner's own organisation."},"contract":{"type":"object","description":"The commercial ceilings: modules, max_child_tenants, max_learners_per_tenant, api_rpm, identity_mode, support_model."},"role":{"type":"string","enum":["owner","admin","support","viewer"],"description":"The partner role of the person this key acts as, now."},"scopes":{"type":"array","description":"The scopes on this key."},"wallet_balance":{"type":["number","null"],"description":"Partner credit wallet balance (undiscounted credits). Null only if the balance could not be read."}},"required":["partner_id","slug","name","tier","status","region","environment","key_environment","home_tenant_id","contract","role","scopes","wallet_balance"]},"PartnerRevenue-reportsItem":{"type":"object","properties":{"period":{"type":"string","format":"date","description":"First day of the month recorded."},"tenant_id":{"type":["string","null"],"format":"uuid","description":"The organisation, or null for the partner total."},"revenue_minor":{"type":"integer","description":"The figure now on record."},"currency":{"type":"string","description":"Its currency."},"statement_status":{"type":["string","null"],"description":"Status of that month's statement if it was recomputed."}},"required":["period","tenant_id","revenue_minor","currency","statement_status"]},"PartnerStatementsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The statement id."},"period_start":{"type":"string","format":"date","description":"First day of the month covered."},"period_end":{"type":"string","format":"date","description":"Last day of the month covered."},"status":{"type":"string","enum":["issued","paid","void","awaiting_revenue_report"],"description":"Where the statement is."},"currency":{"type":"string","description":"INR or USD."},"total_minor":{"type":"integer","description":"The amount due, minor units."},"lines":{"type":"array","description":"Each line: `code`, `description`, `quantity`, `unit_minor`, `amount_minor`."},"flags":{"type":"array","description":"Notes such as `revenue_proxy_used`, `emandate_limit_invoice`."},"payment_method":{"type":"string","enum":["invoice","auto_charge","manual"],"description":"How it is collected."},"invoice_url":{"type":["string","null"],"description":"The Razorpay pay link, when collected by invoice."},"due_at":{"type":["string","null"],"format":"date-time","description":"Payment due date."},"generated_at":{"type":"string","format":"date-time","description":"When it was computed."},"issued_at":{"type":["string","null"],"format":"date-time","description":"When it was issued."},"paid_at":{"type":["string","null"],"format":"date-time","description":"When payment was received."}},"required":["id","period_start","period_end","status","currency","total_minor","lines","flags","payment_method","invoice_url","due_at","generated_at","issued_at","paid_at"]},"PartnerStatementsIdItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The statement id."},"period_start":{"type":"string","format":"date","description":"First day of the month covered."},"period_end":{"type":"string","format":"date","description":"Last day of the month covered."},"status":{"type":"string","enum":["issued","paid","void","awaiting_revenue_report"],"description":"Where the statement is."},"currency":{"type":"string","description":"INR or USD."},"total_minor":{"type":"integer","description":"The amount due, minor units."},"lines":{"type":"array","description":"Each line: `code`, `description`, `quantity`, `unit_minor`, `amount_minor`."},"flags":{"type":"array","description":"Notes such as `revenue_proxy_used`, `emandate_limit_invoice`."},"invoice_url":{"type":["string","null"],"description":"The Razorpay pay link, when collected by invoice."}},"required":["id","period_start","period_end","status","currency","total_minor","lines","flags","invoice_url"]},"PartnerSupportTicketsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ticket id."},"tenant_id":{"type":"string","format":"uuid","description":"The customer organisation the ticket is about."},"partner_id":{"type":"string","format":"uuid","description":"The owning partner."},"origin":{"type":"string","enum":["customer","partner"],"description":"Who opened it."},"severity":{"type":"string","enum":["low","normal","high","urgent"],"description":"Severity."},"subject":{"type":"string","description":"Subject line."},"body":{"type":"string","description":"Description."},"status":{"type":"string","enum":["open","in_progress","waiting_on_partner","resolved","closed"],"description":"Current status."},"external_ref":{"type":["string","null"],"description":"The partner's own reference for the ticket."},"created_at":{"type":"string","format":"date-time","description":"When it was opened."},"updated_at":{"type":"string","format":"date-time","description":"When it last changed."},"handled_by":{"type":"string","enum":["partner","platform"],"description":"Who works the ticket. Always `partner` in this list: tickets Personal Academy handles for your customers (security and grievance) are not listed."},"category":{"type":"string","enum":["how-to","billing","security","grievance","bug","outage","data-request"],"description":"What the ticket is about. Tickets you open are `how-to`."},"channel":{"type":"string","enum":["app","guide","email","partner_console","partner_api","staff","shared_channel","phone"],"description":"How the ticket reached support: `app` or `guide` when your customer opened it, `partner_api` or `partner_console` when you did."},"due_at":{"type":["string","null"],"format":"date-time","description":"The Personal Academy response target, when one applies."},"first_response_at":{"type":["string","null"],"format":"date-time","description":"The first reply from the side that handles the ticket."},"resolved_at":{"type":["string","null"],"format":"date-time","description":"When it was resolved or closed; cleared if it is reopened."},"escalated_to_platform":{"type":"boolean","description":"True once the ticket has been handed to Personal Academy support (L2)."},"escalated_at":{"type":["string","null"],"format":"date-time","description":"When it was handed to Personal Academy support."}},"required":["id","tenant_id","partner_id","origin","severity","subject","body","status","external_ref","created_at","updated_at","handled_by","category","channel","due_at","first_response_at","resolved_at","escalated_to_platform","escalated_at"]},"PartnerSupportTicketsPostItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ticket id."}},"required":["id"]},"PartnerTenantsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The organisation id."},"partner_id":{"type":"string","format":"uuid","description":"The owning partner."},"name":{"type":"string","description":"Organisation name."},"slug":{"type":"string","description":"The subdomain."},"status":{"type":"string","enum":["active","suspended","deleted"],"description":"Lifecycle state."},"plan":{"type":["string","null"],"description":"Deprecated: the legacy plan key, null for an organisation created on a tier."},"active_learners_30d":{"type":"integer","description":"Learners active in the last 30 days."},"learners_total":{"type":"integer","description":"Active learners."},"created_at":{"type":"string","format":"date-time","description":"When it was provisioned."}},"required":["id","partner_id","name","slug","status","plan","active_learners_30d","learners_total","created_at"]},"PartnerTenantsPostItem":{"type":"object","properties":{"tenant_id":{"type":"string","format":"uuid","description":"The new organisation."},"domain":{"type":["object","null"],"description":"Present when `domain` was sent: `{ hostname, verification_token }` or `{ hostname, error }`."},"products":{"type":["object","null"],"description":"The product switch: `{ products, enabled, disabled, unreachable }` (as PUT /api/v1/partner/tenants/{id}/products returns), `{ error, code }` when it was refused, or null when no products were named and the partner has no default set."}},"required":["tenant_id","domain","products"]},"PartnerTenantsIdAi-studioProfileItem":{"type":"object","properties":{"data":{"type":"object","description":"The settings map and definitions list for AI Studio."}},"required":["data"]},"PartnerTenantsIdAi-studioProfilePutItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated AI Studio settings map."}},"required":["data"]},"PartnerTenantsIdAssessmentsItem":{"type":"object","properties":{"data":{"type":"object","description":"List of assessments."}},"required":["data"]},"PartnerTenantsIdAssessmentsPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created assessment details."}},"required":["data"]},"PartnerTenantsIdAssessmentsAssessmentIdItem":{"type":"object","properties":{"data":{"type":"object","description":"The assessment object and questions array."}},"required":["data"]},"PartnerTenantsIdAssessmentsAssessmentIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated assessment details."}},"required":["data"]},"PartnerTenantsIdAssessmentsAssessmentIdQuestionsItem":{"type":"object","properties":{"data":{"type":"object","description":"Confirmation object { ok: true }."}},"required":["data"]},"PartnerTenantsIdAssessmentsAssessmentIdQuestionsPostItem":{"type":"object","properties":{"data":{"type":"object","description":"The attached assessment question record."}},"required":["data"]},"PartnerTenantsIdAuthoringJobsJobIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Authoring job status object."}},"required":["data"]},"PartnerTenantsIdAuthoringUploadsItem":{"type":"object","properties":{"data":{"type":"object","description":"Upload ticket with signed upload_url, method, and expiration."}},"required":["data"]},"PartnerTenantsIdBadgesItem":{"type":"object","properties":{"data":{"type":"array","description":"List of badges."}},"required":["data"]},"PartnerTenantsIdBadgesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created badge object."}},"required":["data"]},"PartnerTenantsIdBadgesBadgeIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Deletion confirmation: { id, deleted: true }."}},"required":["data"]},"PartnerTenantsIdBadgesBadgeIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated badge object."}},"required":["data"]},"PartnerTenantsIdBrandingItem":{"type":"object","properties":{"tenant_id":{"type":"string","format":"uuid","description":"The organisation."},"updated":{"type":"array","description":"Keys that were set."},"reset":{"type":"array","description":"Keys reset to their default."}},"required":["tenant_id","updated","reset"]},"PartnerTenantsIdCatalogueItemsItemIdAddItem":{"type":"object","properties":{"course_id":{"type":"string","format":"uuid","description":"The new draft course."},"licence_source":{"type":"string","enum":["tenant","partner"],"description":"Whose licence the item was added under."}},"required":["course_id","licence_source"]},"PartnerTenantsIdCatalogueSearchItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Item id; pass to the add endpoint."},"provider_key":{"type":"string","description":"The provider."},"provider_name":{"type":"string","description":"The provider's display name."},"licence_source":{"type":"string","enum":["tenant","partner"],"description":"Whose licence applies."},"title":{"type":"string","description":"Item title."},"description":{"type":["string","null"],"description":"Item description."},"url":{"type":"string","description":"Where the item is hosted."},"image_url":{"type":["string","null"],"description":"Thumbnail."},"duration_minutes":{"type":["integer","null"],"description":"Length, when the provider states it."},"language":{"type":["string","null"],"description":"Language code."},"licence_bucket":{"type":["string","null"],"description":"Licence bucket A-D."}},"required":["id","provider_key","provider_name","licence_source","title","description","url","image_url","duration_minutes","language","licence_bucket"]},"PartnerTenantsIdChallengesItem":{"type":"object","properties":{"data":{"type":"array","description":"List of team challenges."}},"required":["data"]},"PartnerTenantsIdChallengesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created challenge object."}},"required":["data"]},"PartnerTenantsIdChallengesChallengeIdCancelItem":{"type":"object","properties":{"data":{"type":"object","description":"Cancellation confirmation: { id, status: \"cancelled\" }."}},"required":["data"]},"PartnerTenantsIdChatInstall-linksItem":{"type":"object","properties":{"platform":{"type":"string","description":"The platform the link installs."},"install_url":{"type":"string","description":"The link to hand to the customer's chat administrator. Treat it as a secret until it is used."},"expires_at":{"type":"string","format":"date-time","description":"When the link stops working."}},"required":["platform","install_url","expires_at"]},"PartnerTenantsIdChatInstallationsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The installation id."},"platform":{"type":"string","description":"`slack`, `teams`, or another chat platform the organisation connected itself."},"display_name":{"type":["string","null"],"description":"The workspace or Microsoft 365 organisation name."},"is_enterprise_install":{"type":"boolean","description":"True for a Slack Enterprise Grid org-wide install."},"status":{"type":"string","description":"`active` or `disabled`."},"installed_at":{"type":"string","format":"date-time","description":"When it was connected."},"last_event_at":{"type":["string","null"],"format":"date-time","description":"When the bot last heard from the workspace."},"has_error":{"type":"boolean","description":"True when the last delivery failed."}},"required":["id","platform","display_name","is_enterprise_install","status","installed_at","last_event_at","has_error"]},"PartnerTenantsIdCompetenciesItem":{"type":"object","properties":{"data":{"type":"array","description":"List of competencies."}},"required":["data"]},"PartnerTenantsIdCompetenciesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created competency object."}},"required":["data"]},"PartnerTenantsIdCompetenciesCompetencyIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Deletion confirmation."}},"required":["data"]},"PartnerTenantsIdCompetenciesCompetencyIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated competency object."}},"required":["data"]},"PartnerTenantsIdCoursesItem":{"type":"object","properties":{"data":{"type":"array","description":"List of courses."},"meta":{"type":"object","description":"Pagination metadata including cursor."}},"required":["data","meta"]},"PartnerTenantsIdCoursesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created draft course ID and background job ID."}},"required":["data"]},"PartnerTenantsIdCoursesCourseIdExportsItem":{"type":"object","properties":{"data":{"type":"object","description":"Export result with download_url and expiry."}},"required":["data"]},"PartnerTenantsIdCoursesCourseIdReviewsItem":{"type":"object","properties":{"data":{"type":"object","description":"Recorded review record."}},"required":["data"]},"PartnerTenantsIdCoursesCourseIdStatusItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated course status and published timestamp."}},"required":["data"]},"PartnerTenantsIdDomainsItem":{"type":"object","properties":{"hostname":{"type":"string","description":"The claimed hostname."},"verification_token":{"type":"string","description":"The CNAME target the hostname must point at before it verifies."},"verified":{"type":"boolean","description":"Always false at claim time."}},"required":["hostname","verification_token","verified"]},"PartnerTenantsIdDrip-campaignsItem":{"type":"object","properties":{"data":{"type":"array","description":"List of drip campaigns."}},"required":["data"]},"PartnerTenantsIdDrip-campaignsPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created drip campaign ID: { id }."}},"required":["data"]},"PartnerTenantsIdDrip-campaignsCampaignIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Deletion confirmation: { id, deleted: true }."}},"required":["data"]},"PartnerTenantsIdDrip-campaignsCampaignIdGetItem":{"type":"object","properties":{"data":{"type":"object","description":"Drip campaign with items array."}},"required":["data"]},"PartnerTenantsIdDrip-campaignsCampaignIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated campaign ID: { id }."}},"required":["data"]},"PartnerTenantsIdIntegrationsContent-providersItem":{"type":"object","properties":{"provider_key":{"type":"string","description":"The provider."},"deleted":{"type":"boolean","description":"Always true."}},"required":["provider_key","deleted"]},"PartnerTenantsIdIntegrationsContent-providersGetItem":{"type":"object","properties":{"providers":{"type":"array","description":"One object per provider: `provider_key`, `enabled`, `credential_mode`, `credential_hint`."}},"required":["providers"]},"PartnerTenantsIdIntegrationsContent-providersPutItem":{"type":"object","properties":{"provider_key":{"type":"string","description":"The content provider key (e.g. `go1`)."},"enabled":{"type":"boolean","description":"Whether the organisation uses this provider."},"credential_mode":{"type":"string","enum":["tenant","platform","none"],"description":"`tenant` = the organisation's own account; `none` = no own account (a partner credential may apply)."},"credential_hint":{"type":["string","null"],"description":"A non-secret hint of the stored credential (e.g. `api_key=…ab12`); null when none is stored."}},"required":["provider_key","enabled","credential_mode","credential_hint"]},"PartnerTenantsIdIntegrationsHrisItem":{"type":"object","properties":{"provider":{"type":"string","description":"The provider removed."},"deleted":{"type":"boolean","description":"Always true."}},"required":["provider","deleted"]},"PartnerTenantsIdIntegrationsHrisGetItem":{"type":"object","properties":{"connections":{"type":"array","description":"One object per connection: `id`, `provider`, `display_name`, `identity_mode`, `rules`, `status`, `schedule`, `last_sync_at`, `last_error`."},"providers":{"type":"array","description":"The HRIS providers available: `id`, `label`."}},"required":["connections","providers"]},"PartnerTenantsIdIntegrationsHrisPutItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The connection."},"provider":{"type":"string","description":"The HRIS adapter key (e.g. `darwinbox`)."},"display_name":{"type":"string","description":"Name shown to the organisation's admins."},"identity_mode":{"type":"string","enum":["pseudonymous","email_allowed"],"description":"Whether synced people may carry an email address."},"rules":{"type":"object","description":"Sync rules (departments, leavers, safety limits)."},"status":{"type":"string","enum":["disabled","active","error"],"description":"Whether scheduled syncs run."},"schedule":{"type":"string","enum":["hourly","daily","manual"],"description":"How often the sync runs."},"last_sync_at":{"type":["string","null"],"format":"date-time","description":"When it last synced."},"last_error":{"type":["string","null"],"description":"The last sync error, if any."}},"required":["id","provider","display_name","identity_mode","rules","status","schedule","last_sync_at","last_error"]},"PartnerTenantsIdJob-titlesItem":{"type":"object","properties":{"data":{"type":"array","description":"List of job titles."}},"required":["data"]},"PartnerTenantsIdJob-titlesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created job title."}},"required":["data"]},"PartnerTenantsIdJob-titlesJobTitleIdCompetenciesItem":{"type":"object","properties":{"data":{"type":"object","description":"Resulting expectations."}},"required":["data"]},"PartnerTenantsIdKeysItem":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid","description":"The key id (use it to revoke)."},"secret":{"type":"string","description":"The raw key. Shown once; only its hash is stored."},"key_prefix":{"type":"string","description":"Display prefix, safe to log."},"environment":{"type":"string","enum":["live","test"],"description":"test for a test (sandbox) customer: the secret starts pak_test_ and reaches only that customer."},"scopes":{"type":"array","description":"Scopes on the key."},"permissions":{"type":"array","description":"Permissions on the key."},"expires_at":{"type":["string","null"],"format":"date-time","description":"When the key stops working (365 days after creation unless you set another date)."}},"required":["key_id","secret","key_prefix","environment","scopes","permissions","expires_at"]},"PartnerTenantsIdKeysKeyIdItem":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid","description":"The revoked key."},"revoked":{"type":"boolean","description":"Always true."}},"required":["key_id","revoked"]},"PartnerTenantsIdKnowledgeArticlesArticleIdAttachmentsItem":{"type":"object","properties":{"attachments":{"type":"array","description":"List of attachments."}},"required":["attachments"]},"PartnerTenantsIdKnowledgeArticlesArticleIdAttachmentsPostItem":{"type":"object","properties":{"attachment":{"type":"object","description":"The created attachment record."}},"required":["attachment"]},"PartnerTenantsIdKnowledgeArticlesArticleIdAttachmentsAttachmentIdItem":{"type":"object","properties":{"ok":{"type":"boolean","description":"Whether the attachment was successfully deleted."}},"required":["ok"]},"PartnerTenantsIdKnowledgeCategoriesItem":{"type":"object","properties":{"data":{"type":"array","description":"List of knowledge category items."}},"required":["data"]},"PartnerTenantsIdKnowledgeCategoriesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created knowledge category."}},"required":["data"]},"PartnerTenantsIdKnowledgeCategoriesCategoryIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Deletion confirmation: { id, deleted: true }."}},"required":["data"]},"PartnerTenantsIdKnowledgeCategoriesCategoryIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated knowledge category."}},"required":["data"]},"PartnerTenantsIdLearnersItem":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","description":"The learner's user id."},"created":{"type":"boolean","description":"True when this call created the learner."}},"required":["user_id","created"]},"PartnerTenantsIdLearnersExternal_idItem":{"type":"object","properties":{"external_id":{"type":"string","description":"The identifier that was erased."},"erased":{"type":"boolean","description":"True when the erasure ran."},"detail":{"type":"object","description":"What the erasure removed (counts)."},"auth_retired":{"type":["boolean","null"],"description":"Whether the pseudonymous sign-in identity was retired as well."}},"required":["external_id","erased","detail","auth_retired"]},"PartnerTenantsIdLearnersExternal_idPatchItem":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","description":"The learner's user id."},"external_id":{"type":"string","description":"The identifier used in the path."},"active":{"type":"boolean","description":"Whether the learner is active after the update."},"updated":{"type":"array","description":"The fields that were changed."}},"required":["user_id","external_id","active","updated"]},"PartnerTenantsIdLessonsLessonIdContentItem":{"type":"object","properties":{"data":{"type":"object","description":"Saved lesson content, estimated duration minutes, and optional quiz balance warnings."}},"required":["data"]},"PartnerTenantsIdPackagesItem":{"type":"object","properties":{"data":{"type":"object","description":"List of installed packages."}},"required":["data"]},"PartnerTenantsIdPackagesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Installed package metadata including format standard and parse warnings."}},"required":["data"]},"PartnerTenantsIdPackagesUploadsItem":{"type":"object","properties":{"data":{"type":"object","description":"Signed staging upload ticket: bucket, path, and token."}},"required":["data"]},"PartnerTenantsIdPathsItem":{"type":"object","properties":{"data":{"type":"array","description":"Array of learning paths."},"meta":{"type":"object","description":"Cursor pagination metadata."}},"required":["data","meta"]},"PartnerTenantsIdPathsPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created learning path with course_ids."}},"required":["data"]},"PartnerTenantsIdPathsPathIdItem":{"type":"object","properties":{"data":{"type":"object","description":"{ id, deleted: true }"}},"required":["data"]},"PartnerTenantsIdPathsPathIdGetItem":{"type":"object","properties":{"data":{"type":"object","description":"Learning path object with course_ids."}},"required":["data"]},"PartnerTenantsIdPathsPathIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated learning path with course_ids."}},"required":["data"]},"PartnerTenantsIdProductsItem":{"type":"object","properties":{"tenant_id":{"type":"string","format":"uuid","description":"The organisation."},"products":{"type":"array","description":"Per product: `{ product, name, unit, on, reachable, needsTier, modules }`. `reachable` is false when the product is on but the organisation's tier does not include all of its modules (a switch never raises a tier)."},"defaults":{"type":"array","description":"The partner-wide default product keys."}},"required":["tenant_id","products","defaults"]},"PartnerTenantsIdProductsPutItem":{"type":"object","properties":{"tenant_id":{"type":"string","format":"uuid","description":"The organisation."},"products":{"type":"array","description":"Per product: `{ product, name, unit, on, reachable, needsTier, modules }`. `reachable` is false when the product is on but the organisation's tier does not include all of its modules (a switch never raises a tier)."},"enabled":{"type":"array","description":"Products switched on by this request."},"disabled":{"type":"array","description":"Products switched off by this request."},"unreachable":{"type":"array","description":"Products that are on but that the organisation's tier does not reach yet."}},"required":["tenant_id","products","enabled","disabled","unreachable"]},"PartnerTenantsIdProgrammesItem":{"type":"object","properties":{"data":{"type":"object","description":"List of programme templates."}},"required":["data"]},"PartnerTenantsIdProgrammesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created programme template."}},"required":["data"]},"PartnerTenantsIdProgrammesProgrammeIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Deletion status."}},"required":["data"]},"PartnerTenantsIdProgrammesProgrammeIdGetItem":{"type":"object","properties":{"data":{"type":"object","description":"Programme template with steps."}},"required":["data"]},"PartnerTenantsIdProgrammesProgrammeIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated programme template."}},"required":["data"]},"PartnerTenantsIdProgrammesProgrammeIdStepsItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated programme template and steps."}},"required":["data"]},"PartnerTenantsIdSessionsItem":{"type":"object","properties":{"data":{"type":"object","description":"Sessions list with metadata."}},"required":["data"]},"PartnerTenantsIdSessionsPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created session object and series metadata."}},"required":["data"]},"PartnerTenantsIdSessionsSessionIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Cancellation status and notification count."}},"required":["data"]},"PartnerTenantsIdSessionsSessionIdGetItem":{"type":"object","properties":{"data":{"type":"object","description":"Session object."}},"required":["data"]},"PartnerTenantsIdSessionsSessionIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated session and rescheduled count."}},"required":["data"]},"PartnerTenantsIdSetupItem":{"type":"object","properties":{"tenant_id":{"type":"string","format":"uuid","description":"The customer organisation."},"resources":{"type":"array","description":"Available setup resources with entitlement and product switches."}},"required":["tenant_id","resources"]},"PartnerTenantsIdSkillsItem":{"type":"object","properties":{"data":{"type":"array","description":"List of skills."}},"required":["data"]},"PartnerTenantsIdSkillsPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created skill object."}},"required":["data"]},"PartnerTenantsIdSkillsSkillIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Deletion confirmation."}},"required":["data"]},"PartnerTenantsIdSkillsSkillIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated skill object."}},"required":["data"]},"PartnerTenantsIdSpacesItem":{"type":"object","properties":{"data":{"type":"object","description":"List of spaces."}},"required":["data"]},"PartnerTenantsIdSpacesPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created space object."}},"required":["data"]},"PartnerTenantsIdSpacesSpaceIdItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated space object."}},"required":["data"]},"PartnerTenantsIdTraining-needsItem":{"type":"object","properties":{"data":{"type":"array","description":"Competency gap analysis records."}},"required":["data"]},"PartnerTenantsIdWebhooksItem":{"type":"object","properties":{"data":{"type":"array","description":"List of PartnerWebhook objects."}},"required":["data"]},"PartnerTenantsIdWebhooksPostItem":{"type":"object","properties":{"data":{"type":"object","description":"Created webhooks array and the signing secret."}},"required":["data"]},"PartnerTenantsIdWebhooksHookIdItem":{"type":"object","properties":{"data":{"type":"object","description":"{ id, deleted: true }"}},"required":["data"]},"PartnerTenantsIdWebhooksHookIdGetItem":{"type":"object","properties":{"data":{"type":"object","description":"PartnerWebhook object."}},"required":["data"]},"PartnerTenantsIdWebhooksHookIdPatchItem":{"type":"object","properties":{"data":{"type":"object","description":"Updated PartnerWebhook object."}},"required":["data"]},"PartnerTenantsIdWebhooksHookIdRotateItem":{"type":"object","properties":{"data":{"type":"object","description":"{ webhook, secret, previous_secret_expires_at }"}},"required":["data"]},"PartnerTenantsIdWebhooksEventsItem":{"type":"object","properties":{"data":{"type":"array","description":"List of subscribable events: event_type, module_key, description, emitted."}},"required":["data"]},"PartnerUsageItem":{"type":"object","properties":{"from":{"type":"string","format":"date","description":"The first day covered."},"to":{"type":"string","format":"date","description":"The last day covered."},"group_by":{"type":"string","enum":["tenant","feature","key"],"description":"The grouping used."},"rows":{"type":"array","description":"One object per group: `key`, `ai_credits`, `api_calls`, `embed_sessions`, `lti_launches`, `active_learner_days`."},"totals":{"type":"object","description":"The same counters summed over every row."}},"required":["from","to","group_by","rows","totals"]},"PartnerWalletTopupsItem":{"type":"object","properties":{"topup_id":{"type":"string","format":"uuid","description":"The top-up."},"status":{"type":"string","enum":["pending","paid","manual"],"description":"Where it stands."},"credits":{"type":"integer","description":"Credits this amount buys."},"invoice_url":{"type":["string","null"],"description":"Pay link when `status` is `pending`."}},"required":["topup_id","status","credits","invoice_url"]}},"securitySchemes":{"ApiKeyAuth":{"type":"http","scheme":"bearer","description":"Raw API key issued to the tenant, sent as `Authorization: Bearer <key>`. Hashed (sha256) server-side before lookup; the raw value is never stored or logged."}}}}