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

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.