---
title: Update a service tag
description: Renames or recolors a tag.
api_method: PATCH
api_path: "/v1/service-tags/{tagId}"
canonical_url: https://wiblo.app/docs/developers/api/service-tags/update-service-tag
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/service-tags/update-service-tag.md
---

# Update a service tag

`PATCH /v1/service-tags/{tagId}`

Renames or recolors a tag. Owner/admin only. Cross-workspace ids and unknown ids collapse onto the same 404 `TAG_NOT_FOUND`. Per-user rate-limited at 60/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `tagId` | `string` | Yes |  |

## Headers

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `X-Wiblo-Workspace` | `string` | Yes | Workspace id the call is scoped to. The actor must hold an active membership in it; a foreign or unknown id collapses onto 404 WORKSPACE_NOT_FOUND. |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | No | Display name, unique per workspace (case-insensitive). |
| `color` | `string \| null` | No | `#rrggbb` chip colour; `null` uses the default chip style. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/service-tags/d4c8b1a2-3e5f-4a6b-8c9d-0e1f2a3b4c5d \
  -X PATCH \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Intro call",
  "color": null
}'
```

**TypeScript**

```ts
import { createSdk, updateServiceTag } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await updateServiceTag({
  client: sdk,
  path: { tagId: "d4c8b1a2-3e5f-4a6b-8c9d-0e1f2a3b4c5d" },
  headers: { "X-Wiblo-Workspace": "..." },
  body: {
    "name": "Intro call",
    "color": null
  },
})
```

## Example response

```json
{
  "id": "d4c8b1a2-3e5f-4a6b-8c9d-0e1f2a3b4c5d",
  "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
  "name": "Intro call",
  "color": null,
  "created_at": "2026-06-10T15:20:00.000Z",
  "updated_at": "2026-07-28T09:12:00.000Z"
}
```

## Responses

**`200`** — The updated tag. Returns `TagResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique id of the tag. |
| `workspace_id` | `string` | Yes | Workspace the tag belongs to. |
| `name` | `string` | Yes | Display name, unique per workspace (case-insensitive). |
| `color` | `string \| null` | Yes | `#rrggbb` chip colour; `null` uses the default chip style. |
| `created_at` | `string` | Yes | Creation timestamp (RFC 3339). |
| `updated_at` | `string` | Yes | Last-update timestamp (RFC 3339). |

**`400`** — Body failed Zod validation (`VALIDATION_FAILED`). Returns `ApiErrorEnvelope`.

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`403`** — The actor is a plain member; owner or admin is required (`ADMIN_REQUIRED`). Returns `ApiErrorEnvelope`.

**`404`** — No tag visible to the actor with this id in this workspace (`TAG_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`409`** — Another tag in the workspace already uses the new name, case-insensitively (`TAG_NAME_TAKEN`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
