# Update project label

```http
PUT /projects/{project_reference}/labels/{label_id}
```

Update project label. Requires project.settings.manage.

## Parameters

| Name                | In   | Required | Description                              |
| ------------------- | ---- | -------- | ---------------------------------------- |
| `project_reference` | path | Yes      | Project UUID or slug.                    |
| `label_id`          | path | Yes      | Label UUID within the selected resource. |

## Request body

| Field   | Type        | Required | Description                                                                                                               |
| ------- | ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
| `key`   | string      | Yes      | Required key, trimmed and lowercased. Maximum 64 characters. Normalized duplicate labels are rejected.                    |
| `value` | string,null |          | Label value. Trimmed; a supplied blank value is invalid. Omit or use null for a key-only label, including on replacement. |
| `color` | string,null |          | Display color. Omit, use null or supply a blank string to clear it, including on replacement.                             |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Updated label.                                                                                              |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
