Applications

Update label

Update an application-level label. Only the fields provided are changed - a field sent as null is cleared, and fields left out are unchanged. PUT is also accepted, with the same behaviour. Workspace-level labels can't be changed through this endpoint (403). Requires applications:write or application:write scope.

PATCH/applications/{application_id}/labels/{label_identifier}

Authorization

bearerAuth
AuthorizationBearer <token>

API key. Bearer authentication header of the form Bearer <token>, where <token> is your Workspace or Application API key.

In: header

Path Parameters

application_id*string

Application ID.

label_identifier*string

Label ID or name.

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

curl -X PATCH "https://example.comapplications/aBc1234/labels/Production" \  -H "Authorization: Bearer YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d @- <<'EOF'{  "color": "#f59e0b"}EOF
{  "message": "Label updated successfully.",  "data": {    "id": "lbl1234",    "name": "needs-review",    "description": "Waiting on QA review",    "color": "#f59e0b",    "level": "application",    "created_at": "2025-06-10T09:15:00.000000Z",    "updated_at": "2025-06-15T14:30:00.000000Z",    "application_id": "aBc1234",    "workspace_id": "wSp1234"  }}
{  "message": "Unauthorized"}
{  "message": "This action requires 'resource:action' scope."}
{  "message": "Not found."}
{  "message": "string",  "errors": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}