Discussions
How to PATCH update a user to assign them to an opportunity
10 days ago by Zach T
Hello,
I'm working on an API integration and I don't see a clear way to assign a user to an opportunity. I see a 'collaborators' object but when I add a user to the opportunity patch endpoint I do not see it when I call the user's opportunities.
"relationships": [
{
"collaborators": {
"data": [
// Added collaborator object here
{
"id": "LOo7lP", // The user ID provided
"type": "collaborators"
}
]
}
}
I get a 200 back but I don't get the data back when I call the opportunity endpoint for getting all the user's opportunities.
I would like to know how to assign a user to an opportunity and see all the opportunities they are assigned to after like we can with the api/v2/users/LOo7lP/opportunities endpoint.
Thanks