I’m trying create a new Lead through an API call. This works successfully via the Pipedrive API Reference webpage, but fails when I try this via Postman or other tools.
Headers:
{ "Accept": "application/json", "Content-Type": "application/json" }
I’m submitting via token, so something like:
https://api.pipedrive.com/v1/leads?api_token=randomletters
The body of my json is simply:
{ "title": "Test", "owner_id": 11566939, "person_id": 2436 }
I receive the following response:
{ "success": false, "data": null, "additional_data": null, "error": "provided dataset is not valid", "error_info": "child \"title\" fails because [\"title\" is required]" }
I’ve tried this a multitude of ways, but I cannot get this to work. What’s strange is that this works via the webpage ( Pipedrive API v1 Reference) using the same exact information, but it fails for me on multiple toolsets.
Can someone else point me in the right direction here? I’m successfully using other API endpoints like organizations, contacts and deals in the same manner as above without issues.
Thanks for any help.