This endpoint allows you to add a new game to a campaign.
A game cannot be added if any of the following conditions are met:
- the campaign is ended or disabled
- the game has already been added to the campaign
API Call Sample:
- stagehttps://asia.stage.rubyplay.io/api/v1/campaign/{campaignId}/game
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://asia.stage.rubyplay.io/api/v1/campaign/123/game \
-H 'Content-Type: application/json' \
-d '{
"gameId": "rp_140"
}'Response
application/json
{ "gameId": "rp_140" }
Request Schema:
gameIdstringrequired
Game ID.
Example: "rp_140"
Response Schema:
gameIdstring
Game ID.
Example: "rp_140"