curl --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/write' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"files": [
{
"path": "string",
"content": "Two-person tent, green — replacement for damaged pole set."
}
]
}'
{
"success": true,
"files_written": 1
}
Write files to a sandbox
Files written
POST
/
api
/
v1
/
sandbox
/
{id}
/
files
/
write
curl --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/write' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"files": [
{
"path": "string",
"content": "Two-person tent, green — replacement for damaged pole set."
}
]
}'
{
"success": true,
"files_written": 1
}
Path parameters
string (uuid)
required
Sandbox identifier
Request body
WriteFilesRequest
object[]
required
Response
object
boolean
required
integer
required
Number of files written
Status codes
| Code | Meaning |
|---|---|
200 | Files written |
404 | Sandbox not found |
curl --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/write' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"files": [
{
"path": "string",
"content": "Two-person tent, green — replacement for damaged pole set."
}
]
}'
{
"success": true,
"files_written": 1
}
Last modified on August 31, 2026