Create new Leaderboard Schedule
POST
https://api.lootlocker.io/admin/game/{game_id}/leaderboard/{leaderboard_id}/schedule
leaderboardsschedulescron
Cron Expressions
These expressions follow the traditional cron spec.
@daily
: everyday, at midnight UTC.@weekly
: on Sunday, at midnight UTC.@monthly
on the first day of the month, at midnight UTC.Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.lootlocker.io/admin/game//leaderboard/{{leaderboard_id}}/schedule' \
--header 'x-auth-token: ' \
--header 'x-auth-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"cron_expression": "@daily"
}'
Response Response Example
200 - Success
{
"next_run": "2024-02-25T04:05:00Z",
"schedule": [
"2024-02-25T04:05:00Z",
"2024-03-03T04:05:00Z",
"2024-03-10T04:05:00Z",
"2024-03-17T04:05:00Z",
"2024-03-24T04:05:00Z"
]
}
Request
Path Params
game_id
stringÂ
required
Example:
{{dev_game_id}}
leaderboard_id
stringÂ
required
Example:
{{leaderboard_id}}
Header Params
x-auth-token
stringÂ
optional
Example:
{{admin_auth_token}}
Body Params application/json
Responses
Modified at 2024-07-31 08:01:01