This endpoint allows you to configure a new badge
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"
}
]Whether to hide this badge in the user interface
false
The description of the badge
"Example description"
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
The date and time the badge was created
"2021-01-01T00:00:00.000Z"
The date and time the badge was updated
"2021-01-01T00:00:00.000Z"
Whether to hide this badge in the user interface
false
Array of user badges
Array of loyalty rules associated with the badge
Array of data jobs associated with the badge