Cloud Cost Management
Reorder custom allocation rules
Reorder custom allocation rules - Change the execution order of custom allocation rules.
Important: You must provide the complete list of all rule IDs in the desired execution order. The API will reorder ALL rules according to the provided sequence.
Rules are executed in the order specified, with lower indices (earlier in the array) having higher priority.
Example: If you have rules with IDs [123, 456, 789] and want to change order from 123→456→789 to 456→123→789, send: [{"id": "456"}, {"id": "123"}, {"id": "789"}]
post/api/v2/cost/arbitrary_rule/reorder
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/cost/arbitrary_rule/reorder
- 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: cloud_cost_management_write
Request body
Example request
{
"data": [
{
"id": "456",
"type": "arbitrary_rule"
},
{
"id": "123",
"type": "arbitrary_rule"
},
{
"id": "789",
"type": "arbitrary_rule"
}
]
}Response
Successfully reordered rules
Changes
No recorded changes to this operation across all 1 revision of this API.