Archive an achievement type
Owners and admins (achievement_rule.manage), signed in; API keys are refused. A built-in type is never archived (409 REVISION_CONFLICT, details.reason_code: builtin), nor is one a rule in use counts (details.reason_code: type_in_use). Archiving one already archived changes nothing and answers a null receipt_id; otherwise writes an archive_achievement_type receipt. Another workspace's type is 404.
Auth: cookie session only; no scope. Idempotency-Key: ignored.
cookieSession__Host-werft_session<token>For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.
id*stringThe achievement type's id.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidX-Requested-With?"werft-web"Required with a cookie session: the literal werft-web.
"werft-web"The type as archived.
application/json- response
type*receipt_id*|nullcurl -X POST 'https://example.com/v1/achievement-types/497f6eca-6276-4993-bfeb-53cbbbba6f08/archive'{ "type": { "id": "6c2f3d4e-5a6b-4c7d-9e8f-0a1b2c3d4e5f", "key": "design_doc", "name": "Design doc", "evidence_kind": "out_file", "builtin": false, "created_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35", "created_at": "2026-11-02T01:00:00.000Z", "archived_at": "2026-11-02T02:00:00.000Z", "archived_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35" }, "receipt_id": "c4a1e9d2-7b3f-4e8a-a6c5-1d2e3f4a5b6c"}