Test Optimization
Update flaky test states
Update the state of multiple flaky tests in Flaky Test Management.
patch/api/v2/test/flaky-test-management/tests
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/test/flaky-test-management/tests
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token scopes: test_optimization_write
Request body
Example request
{
"data": {
"attributes": {
"tests": [
{
"id": "4eb1887a8adb1847",
"new_state": "active"
}
]
},
"type": "update_flaky_test_state_request"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"has_errors": true,
"results": [
{
"id": "4eb1887a8adb1847"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.