PATCH/categories/{id}
Partially update category
Partial update — only provided fields change. Triggers `categories.updated` webhook.
Parameters 1
| Name | Type | Description |
|---|---|---|
idrequired | path · integer | Resource identifier |
ReturnsCategory
AcceptsCategoryInput
Bearer token required
Response examples
200Category updated
{
"id": 1,
"name": "Electronics",
"slug": "electronics",
"description": "Gadgets, devices, and electronic accessories",
"image": "https://picsum.photos/seed/cat1/300/200",
"productCount": 5,
"createdAt": "2022-01-06T04:19:58.076Z"
}400400 — invalid input or malformed JSON
{
"error": {
"status": 400,
"message": "Request body required"
}
}404404 — resource not found
{
"error": {
"status": 404,
"message": "users #999 not found"
}
}