Creating ticket API

Alexander Telegin's Avatar

Alexander Telegin

02 Jun, 2012 07:59 AM

Hello,

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

Thanks!

  1. Support Staff 2 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.

    Thanks,
    Nicole

  2. Support Staff 3 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

Generic

? 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