Struggling with the ID format
Hi all,
I'm quite new to the Wrike API, and I fundamentally do not understand the ID. It's explained everywhere that the ID (task and folder) is in the permalink and URL (some number like `1862560904`). But first of all, it doesn't work in the API call. For example, `folders/1862560904` returns a 400 error:
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.wrike.com/api/v4/folders/1862560904
Secondly, that's not what is returned by the API; there, the ID looks like `IEABMHYCI5P7AYDW`. And when I use that ID, it works fine! For example, `folders/IEABMHYCI5P7AYDW`.
I don't understand how I am intended to use this. I would like to grab the timelogs from a particular folder as described here, but `/folders/{folderId}/timelogs` doesn't work with the `1862560904` ID format. And I don't know how to get the alphanumeric ID from the Wrike interface.
Help please!
Hi James Beck,
You need to use https://developers.wrike.com/api/v4/ids/ to convert the numeric id (v2 ID) into the v4 ID.
You can also use /tasks API with the permalink parameter (which contains the v2 ID) to get the task where the response payload will contains the v4 ID.
Hope it helps!
Ahhhhh I'll give that a try. I completely overlooked that documentation, thanks!