Update a category
A patch: omitted fields are left alone.
Renaming retags every product that carried the old label, because the label is the join key rather than an ID.
Errors
404 category_not_found— unknown ID, or one belonging to another tenant.409 category_name_taken— the new label already exists.409 preset_category_immutable— a built-in category can’t be edited.
PATCH
/api/v1/categories/{id}Authorization
AuthorizationBearer token (bloomcount_...) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsonnamestringcolorstring#RRGGBB, case-insensitive.
Responses
200Updated
categoryIdstringrequirednamestringrequiredThe label a product's category is matched against.
colorstringrequiredisPresetbooleanrequiredPreset categories ship with the account and can't be deleted.
401Missing or invalid API key, or revoked / expired.
errorstringrequired403Authenticated, but the key lacks the required scope or the tenant has no API access.
errorstringrequired404The requested resource doesn't exist or belongs to a different tenant.
errorstringrequired409The request is well formed, but it conflicts with the current state: a name already taken, a row the app
protects (the hidden Default supplier, a preset colour or category), or a staff member who has an account.
errorstringrequired422Request body or arguments failed validation.
errorstringrequired429Per-minute rate limit (60/min) or per-month cap exceeded.
errorstringrequired