Skip to main content

Use API to create ticket with replies?

  • July 26, 2016
  • 1 reply
  • 38 views

I have an export from Spiceworks that includes replies.  Is it possible to import/create the tickets with the embedded replies with one (or more) API calls?


Here is a sample of what the data looks like for a ticket


{

   "assigned_to": "Scott",

   "Summary":"This is a ticket from Spiceworks",

   "Comments": {

      {

         "body": "This is the first reply",

         "created_at":"2016-01-01 08:00:00"

      },{

         "body": "This is the first reply",

         "created_at":"2016-01-01 08:00:00"

      }

   ]

}

Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

  • Author
  • Contributor
  • 47 replies
  • July 26, 2016

I see an `attachments` property on the ticket object which is an array of objects.  It would be nice if there was a similar object for replies.