Forum Discussion
Trying to add a webhook returns Bad Request
Have you tried the List Webhooks API call in Postman or similar tool to make sure you have the correct API credentials for starters? And I would double check the JSON payload against the documentation especially the URL parameter, as I read the documentation differently
- gswartz12 months agoCommunity Member
Yes the api credentials are correct and working for every other api endpoint we're calling. I tried the list webhooks endpoint and it worked. The id and url look like properties returned in the response so I had them in the request since my DTO being used was going to be the same type. I removed the id and url from the class and then it went through properly. It's interesting because I swear I started without those properties and still got the bad request, which made me wonder if I need to have them on the json object being sent over. Anyway, it worked so we're good. Thanks for trying to help.
Related Content
- 3 months ago
- 2 months ago