This endpoint allows you to enable/disable campaign:
- campaign can not be enabled after start date
- status can not be changed after campaign has ended
API Call Sample:
- stagehttps://asia.stage.rubyplay.io/api/v1/campaign/{campaignId}/enabled
- 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/enabled \
-H 'Content-Type: application/json' \
-d '{
"enabled": true,
"force": true
}'{ "id": 7, "type": "FREE_ROUNDS", "disabledAt": "2027-01-03T10:00:00Z", "disabledForcibly": true, "name": "New Year Promo", "externalCampaignId": "New Year Promo", "gameId": "rp_140", "gameIds": [ "rp_140" ], "startDateTime": "2027-01-01T08:00:00Z", "endDateTime": "2027-01-02T08:00:00Z", "expiresInDays": 7, "bet": 50, "currencyCode": "EUR", "betNumber": 7, "strategy": "PLAYER_LIST", "strategyData": { "eligiblePlayersNumber": 777, "playerIds": [ "player one" ] }, "countries": [ "[\"BR\",\"US\",\"FR\"]" ], "status": "UPCOMING", "rulesUrl": "https://url-to-rules.com", "validForDays": 7, "startEvent": "ACCEPT", "allowPostExpirationCompletion": true }
Request Schema:
Enabled = false to disable the campaign. Campaigns can not be enabled.
If the campaign was disabled forcibly (in case of disabling)
Response Schema:
ID of the campaign.
Possible values: FREE_ROUNDS, AWARDED_FEATURE
Campaign deactivation time in UTC.
Whether the campaign was disabled forcibly.
Campaign name
External campaign ID.
Campaign start time in UTC.
Campaign end time in UTC.
Size of a single bet in major currency units, e.g. 1.00 for 1 EUR. For awarded features will be the actual cost of the feature e.g. 1 EUR x 50 Multiplier = 50 EUR
ISO 4217 3-letter currency code.
Number of free bets/features for each participating player.
Strategy specific data.
This field will be removed in future versions of the API and the following operation should be used to add players instead : PUT /campaign/{campaignId}/participant
Possible values: UPCOMING, ONGOING, ENDED, DISABLED.
Link for campaign rules.
The number of days the offer remains valid, starting from the date of the startEvent
The event that marks the starting point for counting the validity period validForDays.
Defines if accepted promotion can be completed after the campaign end date.
Game ID.
Expires in x days from date of campaign start.
This field will be removed in future versions of the API and fields validForDays, startEvent and allowPostExpirationCompletion should be used instead
PLAYER_LIST or FIRST_N_PLAYERS.
This field will be removed in future versions of the API and default to PLAYER_LIST as FIRST_N_PLAYERS will not be supported in the future.