Skip to content
Last updated

Add New Players to List of Players in Campaign

This endpoint allows you to add a list of new players to a campaign.

Players cannot be added if any of the following conditions are met:

  • the campaign is ended or disabled
  • the campaign doesn't use PLAYER_LIST strategy.

API Call Sample:

curl -i -X PUT \
  -u <username>:<password> \
  https://asia.stage.rubyplay.io/api/v1/campaign/123/participant \
  -H 'Content-Type: application/json' \
  -d '{
    "playerIds": [
      "player one"
    ]
  }'
Response
No content

Request Schema:

playerIdsArray of stringsuniquerequired
Example: ["player one"]