POST
/
api
/
loyalty
/
badges

Body

application/json

Schema for creating a new badge.

imageUrl
string
required

The URL of the badge image

name
string
required

The name of the badge

organizationId
string
required

UUID of the organization (optional, converted to lowercase)

rules
object[]
required

Array of rules for the badge

websiteId
string
required

UUID of the website (optional, converted to lowercase)

description
string

The description of the badge

Response

200 - application/json

Response returned upon successful creation of the badge.

id
string
required