GOGETMUSCLE Community How do you add deal collaborator through the API

How do you add deal collaborator through the API

Hi,

It seems undocumented amd I looked in the postman collection with no success.

How do you add deal collaborator to a deal using the REST API ?

I have tried something like 

from hubspot import HubSpot

hubspot_client = HubSpot(access_token=”UNDISCOLED”)

hubspot_client.api_request({“method”: “PUT”, “path”: “/deal-execution/v1/deal-collaborators/32736363846”, “body”: {“ownerIds”:[“75017528″,”76146015”]}})

But I have the following error: 

{
“status”: “error”,
“message”: “Any of the listed authentication credentials are missing”,
“correlationId”: “ea604e58-fd68-6a64-b41a-85a519c6c029”,
“engagement”: {
“service-to-service”: “service-to-service not engaged. Metadata for service-to-service request not found.”,
“internal-cookie”: “internal-cookie not engaged. You can get a new internal auth cookie for host ‘api.hubapi.com’ by visiting following link from your current browser window: https://tools.hubteam.com/login/host/api.hubapi.com .”,
“app-cookie”: “app-cookie not engaged. App cookie is not present on the request.”
}
}

Leave a Reply

Your email address will not be published.

Related Post