Quite recently - this week, I believe - I started to receive error code 400 during attempts to download the PTO information through API. A funny thing is, I’m using the same code, I have been using succesfully for months - and the same, which works fine when obtaining other information from Clockify API.
I posted the information on the forum because a response from the support team seemed to be delayed – and I hoped to receive hints from the community instead. The request body is included in my original post as “postdata” – apparently a misnomer.
In the meantime however, the case was solved in collaboration with the support team.
It seems that the root of the problem was that earlier the PTO API had accepted a pageSize keyword, while now it must be spelled as page-size.