curl --request POST \
--url https://api.sprucecollective.co.uk/admin/gaming/segments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"color": "<string>",
"credits_won": 1,
"id": 123,
"label": "<string>",
"text_color": "<string>",
"type": "win",
"is_active": true,
"order": 123,
"site_id": "<string>"
}
'{
"color": "<string>",
"credits_won": 123,
"id": 123,
"label": "<string>",
"textColor": "<string>",
"type": "<string>"
}Create a new wheel segment
curl --request POST \
--url https://api.sprucecollective.co.uk/admin/gaming/segments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"color": "<string>",
"credits_won": 1,
"id": 123,
"label": "<string>",
"text_color": "<string>",
"type": "win",
"is_active": true,
"order": 123,
"site_id": "<string>"
}
'{
"color": "<string>",
"credits_won": 123,
"id": 123,
"label": "<string>",
"textColor": "<string>",
"type": "<string>"
}Type "Bearer" followed by a space and JWT token.
Segment data
Background color (hex)
Credits awarded
x >= 0Segment ID
Display text
Text color (hex)
"win" or "lose"
win, lose Whether segment is active
Display order
Optional site ID