pipedrive / client-nodejs

Pipedrive API client for NodeJS
MIT License
205 stars 82 forks source link

Regression in createANewWebhook(): "Failed to get user or company" error if no user_id passed #115

Closed bradvogel closed 4 years ago

bradvogel commented 4 years ago

(cross-posted from https://devcommunity.pipedrive.com/t/recent-pipedrive-api-regression-unable-to-create-webhook-without-user-id/2353)

We’re no longer able to create Pipedrive webhooks using createANewWebhook (or the endpoint https://developers.pipedrive.com/docs/api/v1/#!/Webhooks/get_webhooks) without providing the optional user_id field. The documentation (both here in the node library and in the developers.pipedrive.com site) states that the user_id is optional, but when omitted, the HTTP response returns the error message “Failed to get user or company”. We believe the API only recently started requiring the user_id parameter.

This can be easily reproduced using the developer documentation tool. Screenshot:

Screen Shot 2020-02-26 at 3 02 25 PM
AndreasSaltsberg commented 4 years ago

Hello, this has now been resolved.