curl -X PUT https://api.portkey.ai/v1/admin/organisation/enforcements/data-plane \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"debug_log": 1,
"cache_ttl": 3600
}'{
"object": "organisation_data_plane_enforcements",
"cache_ttl": 61,
"debug_log": 0,
"disable_portkey_gateway": 0
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}Update Data Plane Enforcements
Update organisation-wide data plane enforcements. Only the fields you send are changed, and at least one field is required. debug_log is applied to workspaces that have not overridden it.
Setting cache_ttl is available on Enterprise plans and cannot exceed the maximum TTL allowed by your plan; larger values are rejected.
Requires an organisation API key with the organisation_enforcements.update scope.
PUT
/
admin
/
organisation
/
enforcements
/
data-plane
curl -X PUT https://api.portkey.ai/v1/admin/organisation/enforcements/data-plane \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"debug_log": 1,
"cache_ttl": 3600
}'{
"object": "organisation_data_plane_enforcements",
"cache_ttl": 61,
"debug_log": 0,
"disable_portkey_gateway": 0
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us
Body
application/json
Response
OK
Last modified on December 4, 2026
Was this page helpful?

