---
title: Set object tags
description: Replaces the whole tag set of the live version of one object.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Set object tags

`PUT /v1/workspaces/{workspaceId}/buckets/{bucketId}/objects/{keyToken}/tags`

Replaces the whole tag set of the live version of one object. An empty list removes every tag. A tag set that does not fit the object catalog fails with entity_too_large. Role: editor or higher.

## Authentication

Send `Authorization: Bearer <GRAPHON_API_KEY>`. Read the key from the
GRAPHON_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.
- `bucketId` (string) — The bucket id.
- `keyToken` (string) — The object key, base64url-encoded without padding.

## Request body

- `tags` (object[]) — The tags of the live version, sorted by key. Keys are unique. An empty list removes every tag.

## Example request

```bash
curl --request PUT \
  --url "https://storage.graphon.sh/v1/workspaces/wspq7ws2np5l8z4/buckets/bktA1b2C3d4E5/objects/aW5jaWRlbnRzL2NoZWNrb3V0LXRpbWVvdXQuanNvbg/tags" \
  --header "Authorization: Bearer $GRAPHON_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"tags":[{"key":"team","value":"support"}]}'
```

## CLI

```bash
graphon objects tags set support-tickets incidents/checkout-timeout.json team=support
```

## Example response

```json
{
  "tags": [
    {
      "key": "team",
      "value": "support"
    }
  ]
}
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
