Skip to main content
POST
/
local-sandbox
/
{local_sandbox_id}
/
reset
Reset local sandbox to initial state
curl --request POST \
  --url https://api.klavis.ai/local-sandbox/{local_sandbox_id}/reset \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.klavis.ai/local-sandbox/{local_sandbox_id}/reset"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.klavis.ai/local-sandbox/{local_sandbox_id}/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.klavis.ai/local-sandbox/{local_sandbox_id}/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

local_sandbox_id
string
required

The ID of the local sandbox to reset

Response

Successful Response