AI Gateway

Replace an AI Gateway data capture override

Replace an override using its revision and the current configuration_revision. Changes to capture overrides don't affect routing rules. Returns HTTP 409 when configuration_revision or the override revision is stale, including a concurrent change during replacement. Missing revisions or required full-capture confirmation returns HTTP 400.

put/api/v2/data-capture/overrides/{id}

Request

Path parameters

idstring uuid required

Capture override UUID.

Data capture override ID.

Request body

Example request

{
  "data": {
    "attributes": {
      "configuration_revision": "capture-revision-1",
      "metadata_capture": [
        "tool_usage",
        "tool_output_size",
        "tool_names"
      ],
      "mode": "metadata_only",
      "name": "Research",
      "operation": "create",
      "revision": 1,
      "scope": {
        "tags": {
          "env": "prod"
        }
      }
    },
    "id": "11111111-1111-4111-8111-111111111111",
    "type": "data-capture-overrides"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "metadata_capture": [
        "tool_usage",
        "tool_output_size",
        "tool_names"
      ],
      "mode": "metadata_only",
      "name": "Research",
      "revision": 1,
      "scope": {
        "tags": {
          "env": "prod"
        }
      }
    },
    "id": "11111111-1111-4111-8111-111111111111",
    "type": "data-capture-overrides"
  }
}

Changes

Changes to this operation have not been checked yet.