PATCH /v1/categories/{categoryId}
Partially update a category with a JSON request body.
PATCH /v1/categories/{categoryId} updates an existing category.
Authentication
Send an organization API key in x-api-key or
Authorization: Bearer <key>.
Path Parameters
| Name | Type | Description |
|---|---|---|
categoryId | string (uuid) | UUID of the category to update. |
Request Body
Send a JSON object containing the fields you want to change.
| Name | Type | Description |
|---|---|---|
name | string | Category name, from 1 to 100 characters. |
color | string | Category color, from 1 to 50 characters. |
description | string | Category description, up to 500 characters. |
Example
curl -X PATCH "https://api.blueputto.com/v1/categories/CATEGORY_ID" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"color":"#7c3aed"}'Success Response
200 OK
{
"data": {}
}Error Responses
400 Bad Request401 Unauthorized404 Not Found429 Too Many Requests