# Update a tag

PATCH https://api.oletapp.com/your-store/v1/tags/{id}

A rename is title-cased and recomputes the uniqueness slug. Renaming onto another live tag is refused with `409 CONFLICT`. A foreign or unknown id is `404 NOT_FOUND`.

**Requires scope:** `catalog:write`

Required scope: `catalog:write`

## Parameters

| Name | In | Type | Required |
|---|---|---|---|
| `id` | path | string | yes |

## Request body

```
{
  name?: string
}
```

## Response (200)

```
{
  data: {
  id: string
  name: string
  version: string
}
}
```

Errors follow the standard error envelope: https://getolet.com/resources/developers/errors.md

## Example

```bash
curl -X PATCH "https://api.oletapp.com/your-store/v1/tags/{id}" \
  -H "Authorization: Bearer olet_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
