Authorizations
Body
Body
Schema for creating a new badge.
UUID of the organization (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174222"
UUID of the website (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174111"
The name of the badge
"Example Badge"
The URL of the badge image
"https://example.com/image.png"
Array of conditions for the badge
[
{
"type": "rule",
"loyaltyRuleId": "123e4567-e89b-12d3-a456-426614174111"
}
]
The description of the badge
"Example description"
Response
200
Response returned upon successful creation of the badge.
UUID of the badge (converted to lowercase)
"123e4567-e89b-12d3-a456-426614174333"
The name of the badge
"Example Badge"
The description of the badge
"Example description"
The URL of the badge image
"https://example.com/image.png"
Array of conditions of the badge
Array of user badges
Array of loyalty rules associated with the badge
Array of data jobs associated with the badge