Neither of these options have worked and I’m receiving the following error:
‘Invalid input JSON on line 1, column 1: Cannot deserialize value of type `com.hubspot.inbounddb.publicobject.core.v2.SimplePublicObjectInput$Json` from Array value’
Neither of these options have worked and I’m receiving the following error:
‘Invalid input JSON on line 1, column 1: Cannot deserialize value of type `com.hubspot.inbounddb.publicobject.core.v2.SimplePublicObjectInput$Json` from Array value’
If I add the JSON.stringify command to the properties, I then get a ‘resource not found’ error.
Any help would be greatly appreciated, thanks!
The body of the request should have a properties object containing the fields you want to update. You don’t need to stringify individual values inside the properties object. Ensure that the lineItemId you’re passing in the URL is valid and belongs to an existing line item in your HubSpot account.
Make sure your bearer token has sufficient permissions to update line items.
Here is an updated example using Node.js with the fetch API that should work based on HubSpot’s documentation: