Approve Visual Tests
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new Approve Visual Tests 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 VT approve",
"type": "APPROVE_VT",
"trigger_time": "ON_EVERY_EXECUTION",
"comment": "Please review and approve the visual tests",
"description": "Waiting for visual test session approval",
"from_action": "Visual tests",
"ref": "refs/heads/main",
"permissions": {
"others": "DENIED",
"users": [
{
"id": 1,
"access_level": "ALLOWED"
}
],
"groups": [
{
"id": 1,
"access_level": "ALLOWED"
}
]
}
}'STATUS200 OK