Skip to main content

Creating new tickets

  • August 25, 2014
  • 2 replies
  • 36 views

Dear all,


how do you create a ticket via API? I carefully read the docs, and I am also able to retrieve ticket information via API, but had no luck creating a ticket so far.


Posting the following request results in a status 200 response, but does neither return a JSON string nor create a ticket:

Accept: */*
Accept-Encoding: gzip, deflate
Content-Type: application/json
Authorization: Basic [hash removed]
Accept-Language: de-de

{
   "helpdesk_ticket": {
      "description": "My problem is this...",
      "email": "sample@somewhere.org",
      "priority": 1,
      "status": 2,
      "subject": "Creating a test ticket"
    }
  }

Any pointers welcome :)


rgds

Lutz

This topic has been closed for replies.

2 replies

  • Author
  • Apprentice
  • September 3, 2014

Finally figured it out: You have to use an SSL connection (which is a good thing by itself of course). 


You might want to update your examples ;)



  • Community Debut
  • September 3, 2014

Thanks for sharing. We will update the documentation shortly to mention the SSL requirement more explicitly.