pipedrive/client-nodejs

updatePerson mandatory "name" param

fernandolangaro opened this issue · 4 comments

pipedrive API already updated and it is not mandatory anymore, please remove the offline validation of this field

if (opts['name'] === undefined || opts['name'] === null) {
throw new Error("Missing the required parameter 'name' when calling updatePerson");
}

I posted a pull request to solve it

Hey, @fernandolangaro! Our documentation says that name is still mandatory to send in the request body, therefore the validation is in place, it cannot be removed.

In order to update a person, id and name at a minimum, should be provided, something like api.updatePerson(ID, { "name": "Updated Name" }).

Hey, @fernandolangaro, I'm coming back to this issue to clarify, that there actually is a problem with our documentation and name should not be a required parameter in person update endpoint. The fix is in our roadmap.

Hello! @siirimangus, I know your documentation says it is mandatory, but when you make a request without sending the name, the request goes through. It only gives a error when using this node library. So both node library and api documentation are outdated