Skip to main content
POST
/
admin
/
gaming
/
segments
Create wheel segment (admin)
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>"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Segment data

color
string
required

Background color (hex)

credits_won
integer
required

Credits awarded

Required range: x >= 0
id
integer
required

Segment ID

label
string
required

Display text

text_color
string
required

Text color (hex)

type
enum<string>
required

"win" or "lose"

Available options:
win,
lose
is_active
boolean

Whether segment is active

order
integer

Display order

site_id
string

Optional site ID

Response

Created

color
string

Background color (hex)

credits_won
integer

Credits awarded (optional in response)

id
integer

Segment ID

label
string

Display text (e.g., "NO LUCK", "1 FREE CREDIT")

textColor
string

Text color (hex)

type
string

"win" or "lose"