Closed Roguelazer closed 1 month ago
The documentation for merging contacts has the following ruby example code:
require 'hubspot-api-client' api_client = Hubspot::Client.new(access_token: 'YOUR_ACCESS_TOKEN') body = { objectIdToMerge: "string", primaryObjectId: "string" } api_response = api_client.crm.contacts.merge_api.merge(body: body) puts api_response
Fun fact: there is no merge_api. From reading the (mostly inscruitable) auto-generated code, it appears that the correct thing would be something like
merge_api
api_response = api_client.crm.contacts.public_object_api.merge(body: body)
Oh, never mind, this was just added in 19.0 which was landed
The documentation for merging contacts has the following ruby example code:
Fun fact: there is no
merge_api
. From reading the (mostly inscruitable) auto-generated code, it appears that the correct thing would be something like