Skip to Content
Client Labels

Assign Client Labels

Replaces the client's custom label assignments with the submitted set. An empty array removes all of them. System labels are maintained automatically: they cannot be submitted here (422) and are never removed by this call. The response lists every label the client carries afterwards, system ones included.

PUT
/api/v2/clients/{client}/labels

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

client*integer

Client identifier

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v2/clients/42/labels" \  -H "Content-Type: application/json" \  -d '{    "labels": [      0    ]  }'
{  "total": 0,  "data": [    {      "code": "string",      "name": "string",      "kind": "system",      "colour": "string"    }  ]}