Rename Snapshot
const url = 'https://aura-api-eu.strangeworks.com/api/v1/projects/example/snapshots/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"label":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://aura-api-eu.strangeworks.com/api/v1/projects/example/snapshots/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "example" }'Set or clear a snapshot’s label — its display title.
A label is never a ref; tag a snapshot to fetch it by name (ADR-026).
As a consequence a labeled snapshot is exempt from retention pruning
(see snapshot_service.select_expired_snapshots).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Set a snapshot’s display title. A blank/whitespace label clears back to the positional default.
label is required (nullable): an omitted field 422s rather than being
read as “clear” — clearing a label also unpins the snapshot from
retention, so it must be explicit.
Examplegenerated
{ "label": "example"}Responses
Section titled “Responses”Successful Response
Metadata for a single workspace snapshot (list view).
Built from the Snapshot ORM object via model_validate; solution_summary
is read from the model’s like-named property (the linked execution’s summary), so
the execution relationship must be eager-loaded.
object
Whether the live workspace sits on this snapshot: the basis set by the latest solve or checkout.
Example
{ "is_current": false, "kind": "solve", "tags": []}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}