Creating ticket API

Alexander Telegin's Avatar

Alexander Telegin

02 Jun, 2012 07:59 AM


Is it possible to create ticket through JSONP or using generic HTTP form POST?


  1. 1 Posted by Nicole on 04 Jun, 2012 03:01 PM

    Nicole's Avatar

    Alexander -

    Have you had a chance to read our API documentation? The Lighthouse API uses standard HTTP requests to create tickets. I'll double check on whether you can create tickets using JSON.


  2. 2 Posted by Julien on 04 Jun, 2012 05:22 PM

    Julien's Avatar

    Hi Alexander,

    You can use JSON as long as you use .json in the URL rather than .xml and that the header are correct. Here is a simple example:

    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"ticket":{"title":"foo","body":"bar"}}' \
      "http://USER:[email blocked]/projects/XXXX/tickets.json"

    Let me know if you need help with anything else.

  3. Julien closed this discussion on 04 Jun, 2012 06:06 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

02 Oct, 2015 06:31 AM
03 Sep, 2015 10:03 PM
03 Sep, 2015 06:02 PM
25 Aug, 2015 11:34 PM
20 Jul, 2015 11:27 AM