Want an api end-point (2) | Community
Skip to main content

Want an api end-point (2)

  • January 14, 2022
  • 1 reply
  • 0 views

Neeraj12

I want an api end-point which will resolve my problem stated below:

I want to store end-user further comments on the same ticket by calling api-end-point some another request.

The problem which I am facing is that I am able to store the comments of the end-user for some other time but in the zendesk interface it is shown with the admin name not with the requester name.

In the above image:

The comments: "I am still looking in this problem2" has to be from Roger side but when an api end-point is called it will show the name of the administrator.

 

For Authentication: Using Admin credentials

api: https://xyz1462.zendesk.com/api/v2/tickets/{{ticket_id}}

body:

{
  "ticket": {
    "comment": {
      "body": "Not satisfied10",
      "public": true
    },
    "status": "open",
    "requester": {
            "requester_id": 390692754238,
            "name": "Roger",
            "email": "xyz@gmail.com"
        },
    "submitter_id": 390692754238
  }
}

1 reply

Eric27
  • January 18, 2022
Hi Aman,

You should use the requests endpoints to create or update tickets on behalf of a customer. You can read about that here.

Hope this helps,