APIs & Integrations

VaunMcCarthy
メンバー

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 いいね!
2件の返信
VaunMcCarthy
メンバー

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 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

POST to Contacts API creating blank contact

@VaunMcCarthy 

Did you enclose those properties in the properties object?

{
"properties": {

email....

firstname....

  }

}