ReferenceHTTP APIWorkspace settings
Make an achievement category
POST
Owners and admins (achievement_rule.manage), signed in; API keys are refused. The name (1 to 32 characters) is unique among the workspace's categories that are not archived (409 ALREADY_EXISTS, details.reason_code: name_taken). The new category goes after the last one. Writes a create_achievement_category receipt.
Auth: cookie session only; no scope. Idempotency-Key: ignored.
cookieSessioncookie
__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.
X-Requested-With?"werft-web"Required with a cookie session: the literal werft-web.
Value in
"werft-web"application/json- body
name*stringLength
1 <= length <= 32The category made, and its receipt.
application/json- response
category*receipt_id*|nullcurl -X POST 'https://example.com/v1/achievement-categories' \ -H 'Content-Type: application/json' \ -d '{ "name": "Delivery"}'Example Response
{ "category": { "id": "5b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e", "name": "Delivery", "position": 0, "created_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35", "created_at": "2026-11-02T01:00:00.000Z", "archived_at": null, "archived_by": null }, "receipt_id": "c4a1e9d2-7b3f-4e8a-a6c5-1d2e3f4a5b6c"}