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:
- stagehttps://asia.stage.rubyplay.io/api/v1/campaign/{campaignId}/participant
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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 contentRequest Schema:
playerIdsArray of stringsuniquerequired
Example: ["player one"]