Create a Category
Token-authenticated; requires storefront.update (or legacy
categories.update during the migration).
Triggers fresh Lighthouse + compliance scans automatically
— a subsequent GET :id/lighthouse / :id/compliance
returns scan_status: pending while the queued scans run.
Authorizations
Bearer token authentication. Accepts company-admin tokens with
storefront.view for read operations and storefront.update
for writes and scan triggers (legacy per-resource grants like
categories.update / products.view / etc. are still accepted
during the migration), required on every company operation.
Storefront public operations under /api/v202604/{resource} and
/api/v202604/{resource}/{slug} are unauthenticated
(security: []).
Query Parameters
Response locale. ISO code (e.g. fr, de). When omitted,
responds in the company's default locale. On the public
surface, falls back to en for any translated field missing
in the requested locale.
"fr"
Body
Response
The created Category.
Shared success envelope for list / show / create / update
responses: the resource payload is returned alongside a top-level
integer status and meta. Composed onto each resource response
via allOf.
200
Response metadata included on every successful response body.
request_id and timestamp are always present; list endpoints
also add pagination.
Authenticated (company-surface) Category read shape: the public
CategoryBase plus custom_slug, which is admin metadata never
rendered on the public surface.