Create new sandbox
- PATCH
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
- /:action_id
Update Create new sandbox action configuration
Warning
You can't change the type of an existing action. To change the type, remove the action and add it again.
Request example
curl -X PATCH "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions/:action_id" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Create sandbox",
"disabled": true,
"type": "SANDBOX_CREATE",
"trigger_time": "ON_EVERY_EXECUTION",
"timeout": 1800,
"retry_interval": 60,
"retry_count": 5,
"ignore_errors": true,
"current_revision": "21825f31ddce8a89b3ed9f4c92f038b339cde150",
"from": "SCRATCH",
"update_if_exists": true,
"start": false,
"spec": {
"name": "Running",
"identifier": "running",
"os": "ubuntu:24.04",
"resources": "3x6",
"first_boot_commands": "apt-get update\napt-get install -y nginx",
"tags": [
"azure",
"purple"
],
"apps": [
"nginx -t"
],
"app_dir": "/var/www/html",
"endpoints": [
{
"name": "buddy-graigmaribelesposito-dev-tcp",
"endpoint": "localhost:22",
"domain": "agent-dev.net",
"subdomain": null,
"region": "EU",
"type": "TCP",
"timeout": 60,
"whitelist": [
"12.34.56.78"
]
}
]
},
"loop": [
"env_key"
]
}'STATUS200 OK