Visual tests
- PATCH
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
- /:action_id
Update Visual tests 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": "Visual Test 2.0",
"type": "VISUAL_TEST_2",
"trigger_time": "ON_EVERY_EXECUTION",
"vt_suite": "my_first_suite",
"urls": [
"https://example.com",
"https://buddy.works"
],
"sitemap": "https://buddy.works/sitemap.xml",
"urls_file": "pages.txt",
"ignore_urls": [
"https://example.com/*"
],
"follow": true,
"respect_robots": true,
"ignores": [
"CSS=.ad-banner"
],
"delays": [
"1000"
],
"wait_for": [
"CSS=#content"
],
"cookies": [
"session=abc123"
],
"headers": [
"Authorization=Bearer token"
]
}'STATUS200 OK