Update contact api works but get no response


#1

I’m sending an http request to update a contact with:

https://api.hubapi.com/contacts/v1/contact/vid/XXX/profile?hapikey=XXX

and the contact is getting updated with the data i send but i get no 204 response just an empty string.

is this normal behavior?

Thank you


#2

Hi @Constantine_Bulichov

Are you getting a different status code from the response? Or not getting any response at all? A 204 response would not have any data in the response body so it’s possible that it could be interpreted as an empty string.


#3

The way I do it is with c# WebClient UploadString that should return a string response but the string I get is empty
Is there a way to get the response code even if its not in the body of the response?


#4

Any input on the question above?