Developer Announcements

rhenry
HubSpot Employee
HubSpot Employee

Change to behaviour between GET and POST Contacts V1 endpoint


What's Happening?

We are making a change to the current inconsistent behaviour between the GET and POST Contacts V1 endpoints. 

What's Changing?

Currently if you request the Get a contact by email address endpoint and your request includes invalid characters like this example: (notice the invalid characters in the email address <>)

GET /v1/contact/email/<test.contact@testcompany.com>/profile 
A 200 server code is returned with the contact details in the response and the invalid characters get removed from the email address.

If you then create a contact using the Create a new contact endpoint and include invalid characters (<>) in the email address:

POST /v1/contact/email/<
test.contact@testcompany.com>/profile
A 400 server code is returned along with this error message:
404 OBJECT_NOT_FOUND "The contact <test.contact@testcompany.com> does not exist"

The GET request normalizes the email address and removes the invalid characters, but the POST request does not.


Today we will be changing this behaviour and normalizing email addresses for the Create a new contact endpoint (i.e removing invalid characters) so the behaviour is consistent with the Get a contact by email address endpoint. 

 

 

When is this happening?

The change is effective from today, October 29th, 2021.

Please let us know if you have any questions by replying below.


Rahmona Henry
0件の返信

0 コメント

この投稿にはまだ回答がありません

この投稿にはまだ回答が寄せられていません。しばらく経ってからもう一度ご確認ください。また、役に立つ情報をご存じの場合はぜひ回答を投稿してください。

投稿に回答する

回答の仕方についてご不明な場合は、コミュニティーのガイドラインをご覧ください。