curl -X POST "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
response = requests.post(
"https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
)
data = response.json()
print(f"Snapshot saved: {data['e2b_template_id']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot",
{
method: "POST",
headers: {
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
}
);
const data = await response.json();
console.log(`Snapshot saved: ${data.e2b_template_id}`);
{
"status": "ok",
"template_id": "tmpl_abc123",
"e2b_template_id": "e2b_tmpl_new789",
"message": "Template snapshot saved successfully"
}
Builds
Save Snapshot
Save current session state as a template snapshot
POST
/
api
/
org-templates
/
{template_id}
/
save-snapshot
curl -X POST "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
response = requests.post(
"https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
)
data = response.json()
print(f"Snapshot saved: {data['e2b_template_id']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot",
{
method: "POST",
headers: {
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
}
);
const data = await response.json();
console.log(`Snapshot saved: ${data.e2b_template_id}`);
{
"status": "ok",
"template_id": "tmpl_abc123",
"e2b_template_id": "e2b_tmpl_new789",
"message": "Template snapshot saved successfully"
}
Saves the current state of a template’s fix session as a new template snapshot. This captures the sandbox filesystem so future sessions using this template start from this point. Requires admin or owner role.
Required scope:
templates:write
Path Parameters
string
required
The template ID (e.g.
tmpl_abc123).Headers
string
required
Bearer token. Example:
Bearer runtm_xxxstring
required
Organization ID.
Response
string
Operation result (
ok).string
The template that was updated.
string
The new template ID for the snapshot.
string
Confirmation message.
curl -X POST "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
response = requests.post(
"https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
)
data = response.json()
print(f"Snapshot saved: {data['e2b_template_id']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/save-snapshot",
{
method: "POST",
headers: {
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
}
);
const data = await response.json();
console.log(`Snapshot saved: ${data.e2b_template_id}`);
{
"status": "ok",
"template_id": "tmpl_abc123",
"e2b_template_id": "e2b_tmpl_new789",
"message": "Template snapshot saved successfully"
}