Skip to content
Start here

Fraud

Get Fraud Detection Settings
client.Fraud.Get(ctx, query) (*FraudSettings, error)
GET/zones/{zone_id}/fraud_detection/settings
Update Fraud Detection Settings
client.Fraud.Update(ctx, params) (*FraudSettings, error)
PUT/zones/{zone_id}/fraud_detection/settings
ModelsExpand Collapse
type FraudSettings struct{…}
UserProfiles FraudSettingsUserProfilesoptional

Whether Fraud User Profiles is enabled for the zone.

One of the following:
const FraudSettingsUserProfilesEnabled FraudSettingsUserProfiles = "enabled"
const FraudSettingsUserProfilesDisabled FraudSettingsUserProfiles = "disabled"
UsernameExpressions []stringoptional

List of expressions to detect usernames in write HTTP requests.

  • Maximum of 10 expressions.
  • Omit or set to null to leave unchanged on update.
  • Provide an empty array [] to clear all expressions on update.
  • Invalid expressions will result in a 10400 Bad Request with details in the messages array.