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.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

17 May, 2013 05:56 PM
24 May, 2013 04:35 PM
24 May, 2013 03:33 PM
24 May, 2013 03:19 PM
23 May, 2013 02:11 PM