AI Gateway
Update an AI Gateway model group
Update a model group. For id "default", save membership and request options atomically with expected_revision. Empty selections grant no organization-wide access. Applicable authorized named policies override organization-wide request options; a rejected named-policy request cannot fall back to organization-wide options. The organization-wide audience is fixed and grants resource use only. Requires configuration write permission; named policies also require edit access.
patch/api/v2/model-groups/{id}
Request
- Base URLhttps://api.datadoghq.com
- 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/tokenScopesai_gateway_config_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Model group ID, or "default" for the explicit organization-wide access policy.
Request body
Example request
{
"data": {
"attributes": {
"allow_fast_mode": true,
"max_reasoning_level": "high",
"model_ids": [
101
],
"name": "Coding models",
"routing_rule_slugs": [
"coding-route"
]
},
"id": "7",
"type": "model-groups"
}
}Response
OK
Changes
Changes to this operation have not been checked yet.