Edit Sandbox YAML
- PATCH
- /workspaces
- /:workspace
- /sandboxes
- /:sandbox_id
- /yaml
Update a sandbox configuration using YAML. This endpoint allows you to modify sandbox properties by providing a base64 encoded YAML configuration.
Example:
curl -X PATCH "https://api.buddy.works/workspaces/:workspace/sandboxes/:sandbox_id/yaml" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"yaml": "LSBzYW5kYm94OiBzZXJ2aWNlX25naW54CiAgbmFtZTogU2VydmljZSBOZ2lueAogIG9zOiB1YnVudHU6MjQuMDQKICByZXNvdXJjZXM6IDJ4NAogIGluc3RhbGxfY29tbWFuZHM6IHwtCiAgICBhcHQtZ2V0IHVwZGF0ZQogICAgYXB0LWdldCBpbnN0YWxsIC15IG5naW54CiAgdGFnczoKICAtIG9yYW5nZQogIC0gcmFic3BlcnJ5CiAgLSBvbGl2ZQogIC0gcmVkCiAgcnVuX2NvbW1hbmQ6IG5naW54CiAgYXBwX3R5cGU6IFNFUlZJQ0UKICBlbmRwb2ludHM6CiAgLSBuYW1lOiB5cnRraW1rdnBqCiAgICBlbmRwb2ludDogODAKICAgIHJlZ2lvbjogRVUK"
}'
EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/buddy/sandboxes/jp517h9nuas7j", "html_url": "https://app.buddy.works/buddy/my-project/sandboxes/jp517h9nuas7j", "id": "jp517h9nuas7j", "identifier": "service_nginx", "name": "Service Nginx", "status": "RUNNING", "os": "ubuntu:24.04", "resources": "2x4", "install_commands": "apt-get update\napt-get install -y nginx", "run_command": "nginx", "app_type": "SERVICE", "tags": [ "orange", "rabsperry", "olive", "red" ], "app_status": "RUNNING", "boot_logs": [ "Sandbox starting..." ], "setup_status": "DONE", "endpoints": [ { "name": "yrtkimkvpj", "endpoint": "80", "type": "HTTP", "region": "EU", "timeout": 30, "http": { "verify_certificate": false, "compression": false, "http2": false, "log_requests": false } } ] }
STATUS200 OK
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999