Skip to content

Create Manual Snapshot

POST
/api/v1/projects/{project_id}/snapshots
curl --request POST \
--url https://aura.strangeworks.com/api/v1/projects/example/snapshots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "label": "example" }'

Capture the live run workspace as a snapshot, on the user’s initiative.

Solve snapshots are recorded automatically when a run completes; this is the user-decided “keep this state” capture (kind="manual", no linked execution). Only meaningful once the project is in run mode — before that there is no run workspace worth freezing.

project_id
required
Project Id
string
Media typeapplication/json
CreateSnapshotRequest

User-initiated capture of the live run workspace (kind="manual").

object
label
Any of:
string
<= 255 characters
Examplegenerated
{
"label": "example"
}

Successful Response

Media typeapplication/json
SnapshotResponse

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
conversation_id
Any of:
string
created_at
required
Created At
string format: date-time
execution_id
Any of:
string
file_count
required
File Count
integer
id
required
Id
string
kind
SnapshotKind
string
default: solve
Allowed values: solve manual
label
Any of:
string
parent_snapshot_id
Any of:
string
project_id
required
Project Id
string
solution_path
Any of:
string
solution_summary
Any of:
string
tags
Tags
Array<string>
default:
total_size_bytes
required
Total Size Bytes
integer
Example
{
"kind": "solve",
"tags": []
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}