cant create webhook
I'm Trying to create an account-wide webhook. Im making a POST request (VI python requests lib) to /webhooks. When I use the hookUrl and events parameters (in the requests URL as query params like ?hookUrl=<hookUrlValue>) I get an 'invalid request' error saying that my parameter is not allowed. If i switch the order of my params, then whichever is first comes in the error, meaning the value I'm passing inst the issue.
I tried moving the query parameters into a json payload, but the response i got seemed to list all the webhooks. It seems like wrike thinks im making a get requests even though im making a post request. The same things happens when I use postman.
Can someone provide a postman collection or something for account-wide webhooks? No matter what I do I get some kind of error
I just had to configure postman to follow original http method.
Hi Alex Lang, do you still need help with this? I'd be happy to ask our Support specialists to look into your question 👍
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
Hi Lisa Its working now. I think the webhooks section of the developer page should mention that for webhooks specifically, there is a redirect when making requests. If you dont configure your request to follow the original HTTP method on redirects, it doesnt work. For me, when using python requests module or Postman, this is not a default configuration. So I sat there scratching my head for hours trying to figure out why my post requests were being interpreted as get requests.
Thank you for this feedback Alex Lang, I've passed it on to our team 👍
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