Save the app's sandbox files as the point it restarts from.
POST/ai-builder-api/cli/projects/:projectId/sandbox/checkpoint
Saves the sandbox's files so a sandbox that restarts comes back with them. Call it after a set of POST .../sandbox/edit calls and before starting the run that builds them: a sandbox that restarts in between otherwise comes back with the files as they were at the last save.
Request
Version stringrequired
The API version.
Available options
v3projectId stringrequired
Project identifier.
Possible values: Value must match regular expression ^prj_[A-Za-z0-9]+$
- application/json
- Body
- Example (auto)
Body
reasonstring
turn_complete after a set of edits (the default); build_passed after a build that passed.
Available options
turn_completebuild_passed{
"reason": "turn_complete"
}
The files were saved.
- application/json
- Schema
- Example (auto)
Schema
okbooleanrequired
Whether the files were saved.
outcomeobject
What the save did, as the sandbox reports it: ok, or skipped_clean when nothing changed since the last save.
{
"ok": true,
"outcome": {
"kind": "ok"
}
}