API3
fordy at November 23rd, 2015 16:57 — #1
HI Guys,
When i create a contact i can assign it to a owner, however when i create a deal assigned to the user it uses my ID (admin) to create the deal and i can't seem to see how to handle this with the API is this possible?
If i go to the front end i can change the owner of the deal.
Tim.
cillian at November 24th, 2015 07:24 — #2
Hi Tim,
Thanks very much for getting in contact, and apologies for the slight delay.
I have passed all the details on to the dev team in charge of the API, and I will post the result of the inquiry when it is made available to me.
All the best,
Cillian
cillian at November 24th, 2015 10:42 — #3
Hi Tim,
I have done a bit of research on the matter; I think you may have found an error in our API documentation.
Previously the docs did not include the resource field "owner_id" in the Deals endpoint section. This is in fact the answer to your question; you should set the owner_id field in the body of your POST/PUT to the ID of the User (who you want to own the Deal).
I have personally verified that the following is working and should work for you:
- creating a Deal and setting the owner_id to someone else using a POST
request
- and changing the owner_id of an existing Deal using a PUT request
Looking forward to hearing your feedback.
PS - here's the updated documentation for Deals.
All the best,
Cillian
Powered by Discourse, best viewed with JavaScript enabled