Update a category
PATCH
/categories/{id}
parent_id is immutable: the strict schema refuses it in the body, matching the admin app. A foreign or unknown id is 404 NOT_FOUND.
Requires scope: catalog:write
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
name
string
Examplegenerated
{ "name": "example"}Responses
Section titled “Responses”Update a category
Media typeapplication/json
object
Examplegenerated
{ "data": { "depth": 1, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "version": "example" }}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}