OpenapiPoints
Atomically upsert the Realm's registration distribution rule set.
PUT
application/json- body
PUT /api/points/registration-rules request body.
rules*array<>Registration rules upserted
application/json- response
GET /api/points/registration-rules response.
realmId*stringrules*array<>curl -X PUT 'https://example.com/api/points/registration-rules' \
-H 'Content-Type: application/json' \
-d '{
"rules": [
{
"bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
"grantMode": "string",
"triggerSources": [
"string"
]
}
]
}'Example Response
{
"realmId": "string",
"rules": [
{
"bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
"displayOrder": 0,
"enabled": true,
"grantMode": "string",
"grantPeriodType": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"pointsAmount": 0,
"quotaWindows": [
{
"limit": 0,
"windowSeconds": 0
}
],
"triggerSources": [
"string"
],
"validityDays": 0
}
]
}