Create or edit a label

Without id creates a label (anyone; an existing name — case-insensitive, Turkish rules — is returned with existed: true). Renaming / recolouring with id is admin-only. At most 60 labels.

POST/api/v1/notes/labels

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope: crm.write

Body application/json

idintegeroptional
Label to edit (admin).
namestringrequired
Name (max 40 characters).
colorstringoptional
Colour key; next free colour when empty.
Valuesbluetealgreenyelloworangeredpinkpurplegray

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
403forbiddenYou may not see / edit this record.
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/notes/labels \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response