cURL
curl --request PATCH \ --url https://api.example.com/api/test-cases/v2/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "tags": [ "<string>" ] } '
{ "data": { "test_case": { "id": "a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee", "name": "search works", "file_path": "search.spec.ts", "suites": ["Search"], "playwright_project": "chromium", "tags": ["smoke", "critical"] }, "source_file_updated": true } }
Update tags for a test case in the database and source file
tag
Bearer <your-api-key>
pw_test_id
{ "tags": ["smoke", "critical"] }
Show properties
curl -X PATCH \ https://dash.empirical.run/api/test-cases/v2/a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $EMPIRICALRUN_KEY" \ -d '{ "tags": ["smoke", "critical"] }'
Was this page helpful?