Skip to main content
PUT
/
admin
/
gaming
/
segments
/
{id}
Update wheel segment (admin)
curl --request PUT \
  --url https://api.sprucecollective.co.uk/admin/gaming/segments/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "color": "<string>",
  "credits_won": 1,
  "is_active": true,
  "label": "<string>",
  "order": 123,
  "text_color": "<string>",
  "type": "win"
}
'
{
  "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.

Path Parameters

id
integer
required

Segment ID

Body

application/json

Update data

color
string
credits_won
integer
Required range: x >= 0
is_active
boolean
label
string
order
integer
text_color
string
type
enum<string>
Available options:
win,
lose

Response

OK

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"