Skip to main content
PATCH
Replace a sandbox's tags

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Optional client-chosen key (e.g. a UUID, at most 255 characters) that makes the call safe to retry. Within 24 h, the same key with the same request returns the stored response instead of acting twice; the same key with a different request fails with idempotency_key_reused; a request with a key that's still being processed fails with request_in_progress.

Required string length: 1 - 255

Path Parameters

sandbox_id
string
required

Sandbox ID (sb-…).

Required string length: 1 - 64

Body

application/json

New tags for a sandbox. Nothing else can change after create.

tags
object
required

Replaces the whole tag set; {} clears it. Your own key/value labels, e.g. {"project": "llm-ft"}. At most 20 tags; keys 1–63 characters, values up to 255. Filter on them with GET /ai/sandboxes?tag[<key>]=<value>.

Response

The sandbox with its new tags.

data
object
required

A sandbox: one container image running in its own virtual machine. Terminated sandboxes stay readable for at least 30 days.