Scorecards
Update an existing scorecard rule
Updates an existing rule.
put/api/v2/scorecard/rules/{rule_id}
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/scorecard/rules/{rule_id}
- 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: apm_service_catalog_write
Path parameters
rule_idstring required
The ID of the rule.
Request body
Example request
{
"data": {
"attributes": {
"enabled": true,
"level": 2,
"name": "Team Defined",
"scope_query": "kind:service",
"scorecard_name": "Deployments automated via Deployment Trains"
},
"type": "rule"
}
}Response
Rule updated successfully
Example response
{
"data": {
"attributes": {
"enabled": true,
"level": 2,
"name": "Team Defined",
"scope_query": "kind:service",
"scorecard_name": "Deployments automated via Deployment Trains"
},
"id": "q8MQxk8TCqrHnWkx",
"relationships": {
"scorecard": {
"data": {
"id": "q8MQxk8TCqrHnWkp",
"type": "scorecard"
}
}
},
"type": "rule"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.