Info
Endpoint added: PATCH /accounts/{}/ai-gateway/gateways/{}/policies/{}
openapi:PATCH /accounts/{}/ai-gateway/gateways/{}/policies/{}::operation.endpoint-added- Product
- Cloudflare API
- Source
- Repository Spec
- Change kind
- Endpoint Added
- Detected
- Last updated
Deterministic evidence
Before / after
Extracted from Cloudflare's published contract. Shows the whole operation — a narrower excerpt was not available for this change. Open the source ↗
null
{
"operationId": "aig-config-edit-policy",
"parameters": [
{
"in": "path",
"name": "account_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "gateway_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"action": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"no-limit"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"except": {
"type": "boolean"
},
"type": {
"enum": [
"block"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"alerts": {
"items": {
"additionalProperties": false,
"properties": {
"percentage": {
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"required": [
"percentage"
],
"type": "object"
},
"maxItems": 5,
"type": "array"
},
"amount": {
"exclusiveMinimum": true,
"minimum": 0,
"type": "number"
},
"period": {
"enum": [
"monthly",
"weekly",
"daily",
"hourly"
],
"type": "string"
},
"technique": {
"enum": [
"fixed",
"sliding",
"named-interval"
],
"type": "string"
},
"type": {
"enum": [
"limit"
],
"type": "string"
},
"window": {
"exclusiveMinimum": true,
"minimum": 0,
"type": "integer"
}
},
"required": [
"type",
"amount",
"technique"
],
"type": "object"
}
]
},
"actor": {
"type": "string"
},
"condition": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"name": {
"type": "string"
},
"resource": {
"additionalProperties": false,
"properties": {
"models": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"providers": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"result": {
"properties": {
"action": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"no-limit"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"except": {
"type": "boolean"
},
"type": {
"enum": [
"block"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"alerts": {
"items": {
"additionalProperties": false,
"properties": {
"percentage": {
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"required": [
"percentage"
],
"type": "object"
},
"maxItems": 5,
"type": "array"
},
"amount": {
"exclusiveMinimum": true,
"minimum": 0,
"type": "number"
},
"period": {
"enum": [
"monthly",
"weekly",
"daily",
"hourly"
],
"type": "string"
},
"technique": {
"enum": [
"fixed",
"sliding",
"named-interval"
],
"type": "string"
},
"type": {
"enum": [
"limit"
],
"type": "string"
},
"window": {
"exclusiveMinimum": true,
"minimum": 0,
"type": "integer"
}
},
"required": [
"type",
"amount",
"technique"
],
"type": "object"
}
]
},
"actor": {
"type": "string"
},
"condition": {
"type": "string"
},
"created_at": {
"format": "date-time",
"readOnly": true,
"type": "string"
},
"enabled": {
"type": "boolean"
},
"id": {
"format": "uuid",
"type": "string"
},
"modified_at": {
"format": "date-time",
"readOnly": true,
"type": "string"
},
"name": {
"type": "string"
},
"resource": {
"additionalProperties": false,
"properties": {
"models": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"providers": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
}
},
"required": [
"id",
"name",
"actor",
"resource",
"condition",
"action",
"enabled",
"created_at",
"modified_at"
],
"type": "object"
},
"success": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"success",
"result"
],
"type": "object"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"properties": {
"errors": {
"items": {
"properties": {
"code": {
"type": "number"
},
"message": {
"type": "string"
},
"path": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"code",
"message",
"path"
],
"type": "object"
},
"type": "array"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"errors"
],
"type": "object"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"properties": {
"errors": {
"items": {
"properties": {
"code": {
"type": "number"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
"type": "array"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"errors"
],
"type": "object"
}
}
}
}
},
"security": [
{
"api_token": []
},
{
"api_email": [],
"api_key": []
}
],
"tags": [
"AI Gateway Policies"
],
"x-api-token-group": [
"AI Search Index Engine",
"Auto Rag Write Run Engine",
"AI Gateway Write"
],
"x-cfPermissionsRequired": {
"enum": [
"com.cloudflare.api.account.aig"
]
},
"x-cfPlanAvailability": {
"business": true,
"enterprise": true,
"free": true,
"pro": true
},
"x-fern-availability": "beta",
"x-fern-sdk-group-name": "ai-gateway.policies",
"x-fern-sdk-method-name": "edit",
"x-forge-availability": "beta",
"x-forge-group-name": "ai-gateway.policies",
"x-forge-method-name": "edit",
"x-forge-oauth-scopes": [
"aig.write",
"ai-search.index",
"rag.run"
]
}
Monitored for you
Does this change affect your integration?
Choose the operations and fields your services use. detektu matches Cloudflare findings to that declared usage so your team can review the relevant evidence. No agent or repository access required.