Wait for apply
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new Wait for apply action in the pipeline
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Wait for manual apply",
"type": "WAIT_FOR_APPLY",
"trigger_time": "ON_EVERY_EXECUTION",
"comment": "Do you want to deploy ${BUDDY_RUN_COMMIT} to Production?",
"prevent_self_approval": true,
"permissions": {
"others": "DENIED",
"users": [
{
"id": 1,
"access_level": "ALLOWED"
}
],
"groups": [
{
"id": 1,
"access_level": "ALLOWED"
}
]
}
}'STATUS200 OK