Systems Management Question

Creating A New Ticket Through KACE API

07/15/2019 803 views

I was wondering if anyone has had success creating a ticket through the KACE API? I've written an application that connects successfully and sends a POST through an HttpWebResponse, but a ticket is not being created in my environment.  I receive a status code of 'OK'   and a response stream of '{\"Result\":\"Success\",\"IDs\":[]}"' from the response, which leads me to believe that the request was successful. I've read over the documentation and can't seem to come up with a solution. Perhaps the body of my request is incorrect? Any suggestions would be greatly appreciated.

0 Comments   [ + ] Show comments


All Answers


I document how to do this with Powershell in my community module here:


Here is a valid JSON body for submitting a ticket and an example on how to submit with Powershell.

    "Tickets":  [
                        "custom_4":  "value to populate custom field 4 with",
                        "submitter":  1,
                        "hd_queue_id":  1,
                        "category":  1234,
                        "title":  "My Title",
                        "custom_1":  "value to populate custom field 1 with"
$NewTicket = @{
'Tickets' = @(
'title' = "My Title"
'hd_queue_id' = 1 # ID of desired queue
'submitter' = 1 # ID of submitter
"custom_1" = 'value to populate custom field 1 with'
"custom_4" = 'value to populate custom field 4 with'
"category" = 1234 # ID of category to set

New-SmaServiceDeskTicket -Server 'https://kace.example.com' -Credential (Get-Credential) -Body $NewTicket
Answered 07/20/2019 by: isudothings
Senior Purple Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ