Recent searches


No recent searches

Creating private tickets with API

Answered


Posted Feb 19, 2023

I have created an endpoint https://mybrand.zendesk.com/api/v2/tickets and use it to create different tickets from various Triggers. This ticket should be an "Internal" private ticket created when a user solves a provisioning ticket. The Json sent to the endpoint above is:

{
"ticket": {
    "requester": "{{ticket.requester.email}}",
    "subject": "Welcome Call Required",
    "public": false,
    "status": "new",
    "group_id": 5958512876047,
    "assignee_id": null,
    "comment": {
      "html_body": "<p>{{ticket.requester.first_names}}'s order has been completed and their service has been activated.</p><p>Please make a welcome call to:</p><ul><li>Make sure they are online</li><li>Have completed their first payment</li><li>Have added Premium Support</li></ul><p>Please make this a friendly, informative and efficient call so as to not overwhelm or annoy the customer.</p>"
    }
  }
}

For some reason, this is creating a public ticket which is also being sent to the requestor. Is anyone able to tell me what I have done/not done and how I might solve this quandry?


0

1

1 comment

Thank you Ahmed Zaid! I facepalmed the moment I read that. It's always the simple things!

Thanks for taking the time to comment, I really appreciate it.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post