APIs & Integrations

Not applicable

Adding Contacts to Static list returns 200, but empty content

Hi!

If I add some contacts (by their email IDs) to some static contact list, I get the 200 status code as described in the docs: https://developers.hubspot.com/docs/methods/lists/add_contact_to_list

But the response body is empty and contacts are not actually added to a list.

Any idea what is happening?

0 Upvotes
2 Replies 2
Dadams
HubSpot Employee
HubSpot Employee

Adding Contacts to Static list returns 200, but empty content

Hi @primoz-k

Are you setting the content-type: application/json request header? If that is set, do you have an example of the data you’re using in the request?

0 Upvotes
Not applicable

Adding Contacts to Static list returns 200, but empty content

My bad, the content-type header was not set.

Thank you very much!

0 Upvotes