Skip to main content
PUT
/
players
/
{playerId}
Update player profile details
curl --request PUT \
  --url https://mock-api.cevro.ai/v1/players/{playerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Session-ID: <x-session-id>' \
  --data '
{
  "phone": "+49 174 1234567",
  "affiliate_name": "AffCo Direct",
  "blocked": false,
  "settings": {
    "marketing_email_subscription": true,
    "email_validation": true,
    "marketing_sms_subscription": true,
    "sms_validation": true,
    "want_bonus": true
  }
}
'
{
  "success": true,
  "message": "<string>",
  "transaction_id": "<string>"
}

Authorizations

Authorization
string
header
required

API Bearer token. For this demo, any non-empty string is accepted.

Headers

X-Session-ID
string
required

Path Parameters

playerId
string
required

Body

application/json
phone
string
Example:

"+49 174 1234567"

affiliate_name
string
Example:

"AffCo Direct"

blocked
boolean
Example:

false

settings
object

Response

Player profile updated successfully

success
boolean
message
string
transaction_id
string