APIs & Integrations

VaunMcCarthy
Member

POST to Contacts API creating blank contact

Following the example  for using the contacts API I pass in the following body:

 

{
"email": "bcooper@biglytics.net",
"firstname": "Bryan",
"lastname": "Cooper",
"phone": "(877) 929-0687",
"website": "biglytics.net"
}

 

It creates a new contact, but all details of the new contact are blank.  What's going wrong there?

0 Upvotes
VaunMcCarthy
Member

POST to Contacts API creating blank contact

Yes I did, but just noticed a phantom space was in there too, which caused it.  I had expected that maybe the API would throw an error instead of creating a blank contact.

 

Thanks Dennis

0 Upvotes
dennisedson
Community Manager
Community Manager

POST to Contacts API creating blank contact

@VaunMcCarthy 

Did you enclose those properties in the properties object?

{
"properties": {

email....

firstname....

  }

}

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes