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

      added the new required request property oneOf[subschema #2: AIGatewayAuthStrategyOpenIDConnectConfig]/config/cache_tokens_salt

    • breaking

      added the new required request property oneOf[subschema #2: AIGatewayAuthStrategyOpenIDConnectConfig]/config/issuer

    • breaking

      the response's body type changed from no type to object for status

    538 more changes in this revision