lichess.org
Donate

The date must be set in the future

Good afternoon

Tell me, I can not install the tournament in the future. I specify the correct timestamp, for example 1654197335

curl --location --request POST 'lichess.org/api/tournament?{BEARER_TOKEN}' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'name=5th 3+0 ClubName' \
--data-urlencode 'clockTime=3' \
--data-urlencode 'clockIncrement=0' \
--data-urlencode 'minutes=35' \
--data-urlencode 'rated=false' \
--data-urlencode 'variant=standard' \
--data-urlencode 'startDate=1654197335' \
--data-urlencode 'conditions.teamMember.teamId=teamClubName'

My response is:

{
"startDate": [
"The date must be set in the future"
],
"error": {
"startDate": [
"The date must be set in the future"
]
}
}

I hope for a speedy reply, thanks
I found a solution to the issue, you need to use the date format like this 2022-07-02T09:00:00.000Z

it's not a timestamp as your api says - it's a datetime

This topic has been archived and can no longer be replied to.