curl --request POST \
--url https://api.example.com/contests/referral/{contest_id}/toggle \
--header 'X-API-Key: <api-key>'{
"id": 123,
"title": "<string>",
"contest_type": "<string>",
"start_at": "2023-11-07T05:31:56Z",
"end_at": "2023-11-07T05:31:56Z",
"daily_summary_time": "<string>",
"timezone": "<string>",
"is_active": true,
"final_summary_sent": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"prize_text": "<string>",
"daily_summary_times": "<string>",
"last_daily_summary_date": "2023-12-25",
"last_daily_summary_at": "2023-11-07T05:31:56Z",
"created_by": 123
}Включение или отключение реферального конкурса.
curl --request POST \
--url https://api.example.com/contests/referral/{contest_id}/toggle \
--header 'X-API-Key: <api-key>'{
"id": 123,
"title": "<string>",
"contest_type": "<string>",
"start_at": "2023-11-07T05:31:56Z",
"end_at": "2023-11-07T05:31:56Z",
"daily_summary_time": "<string>",
"timezone": "<string>",
"is_active": true,
"final_summary_sent": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"prize_text": "<string>",
"daily_summary_times": "<string>",
"last_daily_summary_date": "2023-12-25",
"last_daily_summary_at": "2023-11-07T05:31:56Z",
"created_by": 123
}Активировать или остановить конкурс
Successful Response