Skip to main content
POST
/
contests
/
daily
/
templates
/
{template_id}
/
start-round
Start Round Now
curl --request POST \
  --url http://localhost:8080/contests/daily/templates/{template_id}/start-round \
  --header 'Content-Type: application/json' \
  --data '
{
  "starts_at": "2023-11-07T05:31:56Z",
  "ends_at": "2023-11-07T05:31:56Z",
  "cooldown_hours": 2,
  "payload": {},
  "force": false
}
'
{
  "id": 123,
  "template_id": 123,
  "template_slug": "<string>",
  "starts_at": "2023-11-07T05:31:56Z",
  "ends_at": "2023-11-07T05:31:56Z",
  "status": "<string>",
  "winners_count": 123,
  "max_winners": 123,
  "attempts_per_user": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "template_name": "<string>",
  "payload": {}
}

Path Parameters

template_id
integer
required

Body

application/json
starts_at
string<date-time> | null
ends_at
string<date-time> | null
cooldown_hours
integer | null
Required range: x >= 1
payload
Payload · object
force
boolean
default:false

Response

Successful Response

id
integer
required
template_id
integer
required
template_slug
string
required
starts_at
string<date-time>
required
ends_at
string<date-time>
required
status
string
required
winners_count
integer
required
max_winners
integer
required
attempts_per_user
integer
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
template_name
string | null
payload
Payload · object