Skip to content
Last updated

Add New Game to List of Games in Campaign

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:

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"