Update Quality Gate Profile settings API in Test Reporting & Analytics
Use this API to update the Quality Gate Profile settings programmatically.
To learn more about Quality Gate, read further here..
Update Quality Gate Profile settings
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X PUT \
-H "Content-Type: application/json" \
--data '{"enabled": true}' \
https://api-automation.browserstack.com/ext/v1/quality-gates/{normalized project name}/profiles/{profile uuid}/toggle
-
enabled* Boolean
Set to true to enable the Quality Gate profile, or false to disable it.
Response Attributes 200 OK
JSON
Response
{
"message": "Updated"
}
-
message String
Informs whether the Quality Gate profile settings were updated successfully.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.