Zero TrustZero Trust Accounts

Update Zero Trust account logging settings

PUT
Updates logging settings for the current Zero Trust account.

Path parameters

identifierstringRequired

Request

This endpoint expects an object.
redact_pii
booleanOptional
Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
settings_by_rule_type
objectOptional
Logging settings by rule type.

Response

This endpoint returns an object
result
objectOptional
PUT
1curl -X PUT https://api.cloudflare.com/client/v4/accounts/699d98642c564d2e855e9661899b7252/gateway/logging \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "redact_pii": true,
6 "settings_by_rule_type": {}
7}'
200Updated
1{
2 "result": {
3 "redact_pii": true,
4 "settings_by_rule_type": {}
5 }
6}