AI Gateway Policies
Update an AI Gateway Policy
Pre-release Endpoint This endpoint is currently in beta and is subject to change.
Updates the configuration of an existing AI Gateway policy.
put/v1/ai-gateways/{gatewayId}/policies/{policyIdOrName}
Request body
Example request
{
"display_name": "My Cool AI PII Sanitizer Policy",
"name": "my-entity-name",
"type": "ai-sanitizer",
"enabled": true,
"config": {
"anonymize": [
"phone",
"creditcard"
],
"stop_on_error": true
},
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
}
}Response
Policy updated successfully.
Example response
{
"display_name": "My Cool AI PII Sanitizer Policy",
"name": "my-entity-name",
"type": "ai-sanitizer",
"enabled": true,
"config": {
"anonymize": [
"phone",
"creditcard"
],
"stop_on_error": true
},
"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"
}