AI Gateway Auth Strategies

Update an AI Gateway Auth Strategy

Changed on

Updates the configuration of an existing AI Gateway auth strategy.

put/v1/ai-gateways/{gatewayId}/auth-strategies/{authStrategyIdOrName}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

gatewayId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway.

authStrategyIdOrName, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway Auth Strategy.

Request body

union required
AIGatewayAuthStrategyKeyAuth required

Configuration for an auth strategy.

OR
AIGatewayAuthStrategyOpenIDConnect required

Configuration for an auth strategy.

Example request

{
  "display_name": "Okta AI SE",
  "name": "okta-ai-se",
  "labels": {
    "category": "finance"
  },
  "managed_by": {
    "owner": "terraform"
  },
  "datastores": [
    {
      "name": "vault-konnect-prod"
    }
  ]
}

Response

Auth strategy updated successfully.

union required
AIGatewayAuthStrategyKeyAuthResponse required

Configuration for an auth strategy.

OR
AIGatewayAuthStrategyOpenIDConnectResponse required

Configuration for an auth strategy.

Example response

{
  "display_name": "Okta AI SE",
  "name": "okta-ai-se",
  "labels": {
    "category": "finance"
  },
  "managed_by": {
    "owner": "terraform"
  },
  "datastores": [
    {
      "name": "vault-konnect-prod"
    }
  ],
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      the response property oneOf[subschema #1: AIGatewayAuthStrategyKeyAuthConfig]/config/identity_realms/items/id became nullable for the status

    • info

      the request property oneOf[subschema #1: AIGatewayAuthStrategyKeyAuthConfig]/config/identity_realms/items/id became nullable

    • breaking

      request property oneOf[subschema #2: AIGatewayAuthStrategyOpenIDConnectConfig]/config/http_version was restricted to a list of enum values

    67 more changes in this revision