---
raw: true
search:
  tags:
    - Teams
    - PATCH
seo:
  description: >-
    Renames a label, recolors it, or both. Every space wearing the… Reference
    for the PATCH /v1/teams/{teamId}/labels/{labelId} endpoint in the Spacefast
    API.
sidebar:
  label: Update a team label
  badge: PATCH
title: Update a team label
type: openapi-operation
---
Renames a label, recolors it, or both. Every space wearing the label shows the new name and color.

`PATCH /v1/teams/{teamId}/labels/{labelId}`

**Request body** (`application/json`, required)

- `name` (string) — Label name. Trimmed, and unique within the team ignoring case.
- `color` (string) — Label hue from the fixed palette.

Request body example:

```json
{
  "name": "string",
  "color": "red"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "teamId": "string",
    "name": "string",
    "color": "red",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```
