Restore a schema version
Restore a published version into the working draft.
Authorizations
Organisation API key from Settings → API / /api/keys/. The secret is
shown once. Send Authorization: Bearer sk-abacus-…. One active key
per organisation. Ingest (/api/v2/ingest/*) refuses API keys — that
surface is Auth0-only with ingest:read / ingest:write scopes.
Response
Response for POST /structs/{slug}/restore/{n}/ — returns the updated draft.
200^[-a-zA-Z0-9_]+$200List shape for StructVersion rows (no schema body).
draft- Draftactive- Activearchived- Archived
draft, active, archived Mirror of schema_json['mode'] for filtering/display; schema_json is authoritative.
form- Formdocument- Document
form, document Org-scoped black-hole participation flag (Decision 2). Only the current PUBLISHED, non-deprecated version participates in classification — enforced by documents.services.black_hole.black_hole_participants(), not here. The flag may be set on a draft; it becomes effective on first publish.

