The v5 Pardot API claims to support the creation of Prospects using POST: Prospects | Pardot APIs | Salesforce Developers (https://developer.salesforce.com/docs/marketing/pardot/guide/prospect-v5.html#prospect-create). From my experience it does not seem that this API is supported. See example below: Example Request:
POST https://pi.demo.pardot.com/api/v5/objects/prospects HTTP/1.1
Host: pi.demo.pardot.com
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Pardot-Business-Unit-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Cookie: pardot=mmhfmul710rfh7je6jt5j52r17
Content-Type: application/json; charset=utf-8
Content-Length: 32
{"email":"sample@gmail.com"}
Example Response:
HTTP/1.1 405 Method Not Allowed
date: Wed, 26 Jan 2022 22:05:59 GMT
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
x-pardot-rsp: 0/0/1
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding,User-Agent
content-length: 51
content-type: application/json
X-Pardot-Route: 6ce930eaa2a6f6d8763617e4a9f6a495
Server: PardotServer
X-Pardot-LB: 81ef3179da45557cd28f9ba13d8805bd
{"code":60,"message":"Invalid HTTP request method"}
Is this expected? Maybe this is because i'm using a developer edition?
Got an answer here; Updating incase anyone else comes across this: v5 Documentation for Prospect Create is incorrect · Issue #234 · pardot/api-docs (github.com)