Wait for variables
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new Wait for variables 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": "Pass parameters",
"type": "WAIT_FOR_VARIABLES",
"trigger_time": "ON_EVERY_EXECUTION",
"comment": "Version should be like X.Y.Z",
"variables": [
{
"key": "version"
},
{
"key": "pass",
"encrypted": true
}
],
"permissions": {
"others": "DENIED",
"users": [
{
"id": 1,
"access_level": "ALLOWED"
}
],
"groups": [
{
"id": 1,
"access_level": "ALLOWED"
}
]
}
}'STATUS200 OK