Create a custom privacy tier
POST /api/v1/privacy/tiers/custom
Creates a custom tier from the supplied name, optional description, and rules.
Authenticate with a portal session token.
Request body
application/json object
descriptionstring or nullLength: at most 255 charactersnamestring requiredLength: at most 80 charactersrulesobject requiredProperties: at least 1 propertiesOther keys: string
Example
{
"name": "Demo integration",
"rules": {
"email": "balanced"
}
}Responses
201 Created tier.
application/json PrivacyTierEnvelope
tierPrivacyTier required
Generated sample
{
"tier": {
"created_at": "2026-01-01T00:00:00Z",
"description": "string",
"id": 0,
"name": "string",
"rules": {
"email": "balanced",
"phone": "max"
},
"updated_at": "2026-01-01T00:00:00Z",
"user_id": 0
}
}401 Authentication is required.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
403 The authenticated principal lacks the required permission.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
422 The request failed validation.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
429 The request rate limit was exceeded.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
text/html string