Issue with HubSpot API: 400 Error on Adding Company to List
Something is off with the HTTP API action. I'm trying to add a company to a list using the Hubspot API https://api.hubapi.com/crm/v3/lists/5113/memberships/add . According to the API docs, I have to send a "a list of record ids" in the body, which looks like ["1234"]
The Hubspot API auth is correct. Other API calls work just fine, so it's not an auth issue
The payload works fine in a curl request, so it's not an issue with the body payload
It is correct that Hubspot wants record ids as a string
In Clay, I can actually send an empty array as [] and it works, I get a 200 back
In Clay, I cannot send the actual array ["1234"] I get the following error:
Clay received a 400 error from the API with Content: {"status":"error","message":"Invalid input JSON on line 1, column 2: Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT)","correlationId":"139506c7-6bf3-4c8d-88e6-c55cc12dd004"}