Recherches récentes
Pas de recherche récente
How to update a ticket on behalf of the requestor
Publication le 14 sept. 2023
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"
}
}
}
0
2
2 commentaire
Asim Chakraborty
4453309851418 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.
0
Rafael Santos
Hey 6102951489050,
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:
Developer Documentation > Making API requests on behalf of end users
API Reference > Ticketing > Tickets > Requesters and submitters
API Reference > Ticketing > Requests
1
Vous connecter pour laisser un commentaire.