I think that the Pipedrive API Reference web page endpoint testing functionality, for the procedure to UPDATE a PERSON, appears to be broken.
The web page URL that I’m writing about is:
https://developers.pipedrive.com/docs/api/v1/#!/Persons/put_persons_id
I’ve entered a valid TOKEN… and my token does work for other APIs like the GET PERSON DETAILS API call.
I’ve entered a valid Person id number … eg 10149 … for a Person that is added to our Pipedrive Persons collection and which can be edited through web access to Pipedrive account. Also, I can successfully use the GET PERSON DETAILS API to get details for that person. So Person id is valid.
I enter a new name for the Person like “joe smith”
Then I hit the ENDPOINT button … but it returns error 400.
When I look at the REQUEST that the web page generated, the BODY looks wrong.
The HTTP BODY is just raw text with the Person id that was entered:
10149
I would have expected the HTTP BODY to be something more like:
{data: {“id”:10149,“name”:“joe smith”}}
Or maybe:
{“id”:10149,“name”:“joe smith”}
For anyone else, does the UPDATE PERSON API endpoint test on the API References web page work for you?
And along those same lines, does anyone maybe know what the HTTP HEADERS and HTTP BODY might need to be for a working example for an UPDATE PERSON API request?
I ask this that because I am working in HTTP … not PHP … but the pipedive tutorial for updating a person is in PHP … and also the tutorial does not show the underlying HTTP HEADERS and HTTP BODY … and so I’m hoping to see/learn a valid HTTP configuration for a UPDATE PERSON API request. Also, it would be great if that UPDATE PERSON tutorial was edited to ADD the HTTP HEADERS and HTTP BODY for a valid working API call.
If anyone responds – a Big Thank You ahead of time!!!