Create a colour
Adds a label to the palette. name is the join key products and events use; hex is how it renders in the
app.
Errors
422 color_name_required— no name, or a blank one.409 color_name_taken— that label already exists on the tenant.422 invalid_hex_format—hexisn’t a valid hex colour.
POST
/api/v1/colorsAuthorization
AuthorizationBearer token (bloomcount_...) · headerrequiredRequest body
requiredapplication/jsonnamestringhexstring#RRGGBB, case-insensitive.
Responses
201Created
colorIdstringrequirednamestringrequiredThe label a variant's colors array is matched against.
hexstringrequiredisPresetbooleanrequiredPreset colours 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.
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