Wrike Webhooks setup with curl ({"errorDescription":"Invalid Folder ID","error":"invalid_request"})

Hello,

i'd like to setup a webhook using cURL but i don't exactly know how to craft the whole command.

Right now i have this

curl -X POST -H "Authorization: Bearer <access_token>" https://www.wrike.com/api/v4/folders/<folderID>/webhooks?hookUrl=<hookUrl>

It returns: {"errorDescription":"Invalid Folder ID","error":"invalid_request"}

Next step was finding this doc on how to find folder IDs:

https://help.wrike.com/hc/en-us/articles/209603329-Folder-ID

But i still have the same problem. I also changed the Folder ID to see if it was an specific issue related to the first folder but it looks like its not.

 

0
4 comments
Spot On Innovative Approach Stellar Advice
Avatar

i've tried with spaces but i returns almost the same error:

{"errorDescription":"Invalid Space ID","error":"invalid_request"}

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Charly Enriquez, thank you for your interest in testing Wrike API. It's worth mentioning that different types of IDs are used in the Wrike workspace (numeric IDs) and API (alpha-numeric IDs). Please use the folder's API ID to make calls while working with API integrations. The easiest way to get the required API ID is via GET/folders call with the additional folder's permalink parameter:

When you create a webhook, please insert the URL of the server that will receive the payload to the hookUrl parameter.

Let me know if you have any additional questions!😉

Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Thanks for your reply!

Now it returns Account ID is invalid.

{
"errorDescription": "Invalid Account ID",
"error": "invalid_request"
}
 
i tried adding accountId to params but it returned
 
{
"errorDescription": "Parameter 'accountId' is not allowed",
"error": "invalid_request"
}
0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Hi Charly Enriquez 👋 I can see that you've also reached out to our Support team about this, and they are troubleshooting this for you 👍

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Comment actions Permalink

Folllowing List for Post: Wrike Webhooks setup with curl ({"errorDescription":"Invalid Folder ID","error":"invalid_request"})
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post