---
title: "Changes to Update an AI Gateway Custom Policy"
method: PUT
path: "/v1/ai-gateways/{gatewayId}/custom-policies/{customPolicyIdOrName}"
---

# Changes to Update an AI Gateway Custom Policy

`PUT /v1/ai-gateways/{gatewayId}/custom-policies/{customPolicyIdOrName}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 6 of 155 revisions.

- **2026-11-16** `a209c8bfa7b7`: 4 breaking, 4 info
- **2026-11-12** `0c641a350d72`: 3 breaking
- **2026-11-12** `d8bd04cfbaf7`: 6 breaking, 4 warning, 8 info
- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
- **2026-10-05** `1efb48111817`: 4 breaking, 4 info
- **2026-09-30** `de79e1192f11`: 1 info

## Changes

- **2026-11-16** `a209c8bfa7b7`: 4 breaking, 4 info
  - the `type` request property const value `installed` was added
  - the `type` request property const value `streaming` was added
  - removed the enum value `installed` of the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/type`
  - removed the enum value `streaming` of the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/type`
  - the `type` response property const value `installed` was added for the status `200`
  - the `type` response property const value `streaming` was added for the status `200`
  - removed the `installed` enum value from the `oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/type` response property for the response status `200`
  - removed the `streaming` enum value from the `oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/type` response property for the response status `200`
- **2026-11-12** `0c641a350d72`: 3 breaking
  - the `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/schema` request property's minLength was increased from `0` to `1`
  - the `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/handler` request property's minLength was increased from `0` to `1`
  - the `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/schema` request property's minLength was increased from `0` to `1`
- **2026-11-12** `d8bd04cfbaf7`: 6 breaking, 4 warning, 8 info
  - request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/type` was restricted to a list of enum values
  - request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/type` was restricted to a list of enum values
  - the `type` response property const value `installed` was removed for the status `200`
  - the `type` response property const value `streaming` was removed for the status `200`
  - the `oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - the `oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - changed the pattern of the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - changed the pattern of the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - added the new `installed` enum value to the `oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/type` response property for the response status `200`
  - added the new `streaming` enum value to the `oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/type` response property for the response status `200`
  - the `type` request property const value `installed` was removed
  - the `type` request property const value `streaming` was removed
  - added the new `installed` enum value to the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/type`
  - added the new `streaming` enum value to the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/type`
  - the `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/managed_by/additionalProperties/` response's property pattern was changed from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$` for the status `200`
  - the `oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/managed_by/additionalProperties/` response's property pattern was changed from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$` for the status `200`
- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2026-10-05** `1efb48111817`: 4 breaking, 4 info
  - the `type` request property const value `installed` was added
  - the `type` request property const value `streaming` was added
  - removed the enum value `installed` of the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/type`
  - removed the enum value `streaming` of the request property `oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/type`
  - the `type` response property const value `installed` was added for the status `200`
  - the `type` response property const value `streaming` was added for the status `200`
  - removed the `installed` enum value from the `oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/type` response property for the response status `200`
  - removed the `streaming` enum value from the `oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/type` response property for the response status `200`
- **2026-09-30** `de79e1192f11`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/kong/apis/konnect-api-go-sdk/docs/v1/ai-gateways/:gatewayId/custom-policies/:customPolicyIdOrName/put.md) - [API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [Page](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/ai-gateways/:gatewayId/custom-policies/:customPolicyIdOrName/put)
