Trying to build an API integration that involves two steps
1. Creating a contact
2. Using the corresponding ContactID from Step 1 to add that contact to a specific list within a HubSpot account
Having no problem with Step 1, but a little confused with Step 2. I am using the “Add Records to an Existing List” method found at this link
The API document says to post a “list of RecordIDs” in the request body. But every request I make I get a JSON formatting error response from the API. My question is pretty simple- What would the request body look like for this particular PUT request? Ie. Let’s say I’m trying to add record ID 123456 to a list. What does that request body look like? Sorry for the rudimentary question, but just can’t seem to get the body of this request formatted correctly and the API reference doc doesn’t have any examples to build off
Thanks in advance!