curl -X PUT https://api.portkey.ai/v1/admin/organisation/enforcements/log-exports \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"denied_fields": [
"request",
"response"
]
}'{
"object": "organisation_log_export_enforcements",
"denied_fields": [
"id"
]
}{
"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 Log Export Enforcements
Replace the list of log fields excluded from exports. The list is replaced as a whole rather than merged, so send the complete list; send [] or null to deny nothing. Duplicates are ignored. Changes apply to workspaces that have not overridden their export settings.
Requires an organisation API key with the organisation_enforcements.update scope.
PUT
/
admin
/
organisation
/
enforcements
/
log-exports
curl -X PUT https://api.portkey.ai/v1/admin/organisation/enforcements/log-exports \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"denied_fields": [
"request",
"response"
]
}'{
"object": "organisation_log_export_enforcements",
"denied_fields": [
"id"
]
}{
"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?

