Checkout Workspace
POST
/api/v1/projects/{project_id}/workspace/checkout
const url = 'https://aura.strangeworks.com/api/v1/projects/example/workspace/checkout';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"conversation_id":"example","source":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://aura.strangeworks.com/api/v1/projects/example/workspace/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "conversation_id": "example", "source": "example" }'Overwrite the workspace in place from source and set the basis.
A pure overwrite of the managed workspace tree (modeling/ + dotfiles are
left intact) plus a ProjectFile reconcile; no auto-snapshot. Only
meaningful once the project is in run mode — there is no run workspace to
reset before that. Refused with a 409 while any turn on the project is in
flight; the notice lands on conversation_id (else the active conversation).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceCheckoutRequest
Reset the workspace in place from a source.
source is dispatched by segment count: <snapshot_id>/<tag> (1),
a <group>/<name> deployment handle (2), or a <group>/<project>/<name>
in-project snapshot tag (3). See workspace_service.
Examplegenerated
{ "conversation_id": "example", "source": "example"}Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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" } ]}