Hi, I have successfully implemented the hubspot-api-ruby gem (GitHub - HubSpot/hubspot-api-ruby: HubSpot API Ruby Client Libraries for V3 version of the API · GitHub), and am able to read contact information using the client and my access token. I am also able to create deals using the endpoint.
When I try to update a deal, however, the gem gives mysterious error messages.
Following the example on the API docs (Accounts Dashboard | HubSpot) I have done:
body = { properties: properties } # properties is a hash of properties
@client.crm.deals.basic_api.update({ dealId: “11368960786”, body: body })
This gives the error:
LoadError: cannot load such file -- hubspot/codegen/crm/deals/models/deal_id
I also get the exact same error when running
client.crm.deals.associations_api.create
No errors on create
Strangely, I do not get this error when I run
@client.crm.deals.basic_api.create(body: body.
This request is formatted exactly the same, works perfectly and connects to the API.
There seems to be something wrong with the methods that involve looking up the deal with the deal_id. Has anyone ever seen this before?