How to update a ticket on behalf of the requestor
Hi
I am using the below code. However, it is shown in my name (Asim), not in the one below email id (Akshata),
https://mydomain.zendesk.com/api/v2/tickets/751981.json
{
"ticket": {
"comment": {
"body": "This is an updated comment5 for the ticket."
},
"requester": {
"name": "akshata.sali@emeritus.com",
"email": "akshata.sali@emeritus.com"
}
}
}
-
Hey Asim Chakraborty,
In your shared example, you'd create a proactive ticket on behalf of the customer, sent by the authenticated user (you).
To submit the ticket on behalf of the User, you could either pass that User's id to the ticket object's submitter_id property using the Tickets API, or otherwise use the Requests API and pass their User id on the Request Header X-On-Behalf-Of. Example in curl:
-H "X-On-Behalf-Of: customer@example.com"
Developer Documentation > Making API requests on behalf of end users
API Reference > Ticketing > Tickets > Requesters and submitters
-
Rafael Santos I tried as suggested by you below, however result is the same, it shows my user ID, it is also for updating a ticket, creation is working perfectly.
Screenshot of my request
Zendesk screenshot
Please help.
Vous devez vous connecter pour laisser un commentaire.
2 Commentaires