Skip to main content
POST
/
contests
/
referral
/
{contest_id}
/
toggle
Toggle Referral
curl --request POST \
  --url http://localhost:8080/contests/referral/{contest_id}/toggle
{
  "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
}

Path Parameters

contest_id
integer
required

Query Parameters

is_active
boolean
required

Активировать или остановить конкурс

Response

Successful Response

id
integer
required
title
string
required
contest_type
string
required
start_at
string<date-time>
required
end_at
string<date-time>
required
daily_summary_time
string<time>
required
timezone
string
required
is_active
boolean
required
final_summary_sent
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
prize_text
string | null
daily_summary_times
string | null
last_daily_summary_date
string<date> | null
last_daily_summary_at
string<date-time> | null
created_by
integer | null