Skip to main content
PATCH
/
contests
/
daily
/
templates
/
{template_id}
Update Daily Template
curl --request PATCH \
  --url http://localhost:8080/contests/daily/templates/{template_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "prize_type": "<string>",
  "prize_value": "<string>",
  "max_winners": 2,
  "attempts_per_user": 2,
  "times_per_day": 2,
  "schedule_times": "<string>",
  "cooldown_hours": 2,
  "payload": {},
  "is_enabled": true
}
'
{
  "id": 123,
  "name": "<string>",
  "slug": "<string>",
  "prize_type": "<string>",
  "prize_value": "<string>",
  "max_winners": 123,
  "attempts_per_user": 123,
  "times_per_day": 123,
  "cooldown_hours": 123,
  "is_enabled": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "schedule_times": "<string>",
  "payload": {}
}

Path Parameters

template_id
integer
required

Body

application/json
name
string | null
description
string | null
prize_type
string | null
prize_value
string | null
max_winners
integer | null
Required range: x >= 1
attempts_per_user
integer | null
Required range: x >= 1
times_per_day
integer | null
Required range: x >= 1
schedule_times
string | null
cooldown_hours
integer | null
Required range: x >= 1
payload
Payload · object
is_enabled
boolean | null

Response

Successful Response

id
integer
required
name
string
required
slug
string
required
prize_type
string
required
prize_value
string
required
max_winners
integer
required
attempts_per_user
integer
required
times_per_day
integer
required
cooldown_hours
integer
required
is_enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
schedule_times
string | null
payload
Payload · object