Update an AI Gateway Custom Policy
Changed onUpdates the configuration of an existing AI Gateway custom policy.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
Contains a unique identifier used for this resource.
The unique ID of the AI Gateway.
Contains a unique identifier used for this resource.
The unique ID of the AI Gateway custom policy.
Request body
Request payload to update an existing AI Gateway custom policy.
Example request
{
"name": "my-installed-custom-policy",
"display_name": "Custom Policy - Installed plugin",
"schema": "<lua_schema>",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
}
}Response
Custom policy updated successfully.
An AI Gateway custom policy.
Example response
{
"name": "my-installed-custom-policy",
"display_name": "Custom Policy - Installed plugin",
"schema": "<lua_schema>",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"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
oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyInstalledRequest]/schemarequest property's minLength was increased from0to1 - breaking
the
oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/handlerrequest property's minLength was increased from0to1 - breaking
the
oneOf[#/components/schemas/UpdateAIGatewayCustomPolicyStreamingRequest]/schemarequest property's minLength was increased from0to1
8 more changes in this revision
- breaking