Use API to create ticket with replies?

  • 26 July 2016
  • 1 reply
  • 37 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"


      }


   ]


}



This topic has been closed for comments

1 reply


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.