cURL
curl --request PATCH \ --url https://dash.empirical.run/api/test-cases/v2/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "tags": [ "<string>" ] } '
{ "data": { "test_case": { "id": "<string>", "name": "<string>", "file_path": "<string>", "suites": [ "<string>" ], "playwright_project": "<string>", "tags": [ "<string>" ] }, "source_file_updated": true } }
Updates the tags for a given test case. This updates both the database record and the Playwright test source file on GitHub.
API key from the Empirical dashboard.
Playwright test ID (pw_test_id).
Tags to set.
Array of tags to assign to the test case.
Updated test case.
Show child attributes
Was this page helpful?