curl --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/copy' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{}'
{
"success": true,
"source": "string",
"destination": "string"
}
Copy a file or directory
File copied
POST
/
api
/
v1
/
sandbox
/
{id}
/
files
/
copy
curl --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/copy' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{}'
{
"success": true,
"source": "string",
"destination": "string"
}
Path parameters
string (uuid)
required
Sandbox identifier
Request body
JSON body of typeCopyFileRequest.
Response
object
boolean
required
string
required
string
required
Status codes
| Code | Meaning |
|---|---|
200 | File copied |
404 | Sandbox not found |
curl --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/copy' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{}'
{
"success": true,
"source": "string",
"destination": "string"
}
Last modified on August 31, 2026