Hello,
On the V3 API itself, this page, I try out the Update a batch of deals function for python and it works on the page with the given input data, giving a 200 return code. But when I copy paste exactly that code as python to my local machine it gives an error.
What am I doing wrong?
code
import hubspot
from hubspot.crm.deals import BatchInputSimplePublicObjectBatchInput, ApiException
client = hubspot.Client.create(api_key=“xxxxxxxx”)
batch_input_simple_public_object_batch_input = BatchInputSimplePublicObjectBatchInput(
inputs={“properties”:{“test_wouter_data_import”:“1”},“id”:“2015419691”})
api_response = client.crm.deals.batch_api.update(
batch_input_simple_public_object_batch_input=batch_input_simple_public_object_batch_input)
400 code response on local machine
Invalid input JSON on line 1, column 12: Cannot deserialize instance of java.util.ArrayList out of START_OBJECT token"