Create category
Create one category. Account allowances and project availability apply.
/projects/{projectId}/categoriesprompts:writeThe key must include this project and its owner must still have access.
Authentication and permissions · Errors and limitsAuthorization
Authorizationstring · headerRequiredBearer access key. Never put a key in the URL.
Idempotency-Keystring · headerRequiredRequired for creation: 1–128 letters, numbers, dots, underscores, colons or hyphens. Reuse for retries of the same request within 24 hours.
Path parameters
projectIdstringRequiredProject identifier from List projects.
Request body
application/json. Unknown fields are rejected.
namestringRequiredCategory name, 1–100 characters.
Response fields
dataobjectRequiredCreate one category. Account allowances and project availability apply.
Child fields
idstringRequiredUnique identifier for this record.
projectIdstringRequiredProject that owns this record.
namestringRequiredSaved name.
metaobjectRequiredRequest metadata. Present on JSON success responses.
Child fields
requestIdstringRequiredRequest identifier to include when contacting support.
resultScope"saved"RequiredSaved customer information; excludes Overview preview results.