Cannot create ticket using the API

ram.viswanadha (at adgentdigital)'s Avatar

ram.viswanadha (at adgentdigital)

13 Oct, 2011 12:40 AM

The following call is successful

curl -H 'X-LighthouseToken: secret_token' http://adgent.lighthouseapp.com/projects.xml

However the creation call fails

curl -H 'X-LighthouseToken:secret_token' http://adgent.lighthouseapp.com/projects/84244/tickets.xml -d '<ticket><body>Test posting from the API</body><state>new</state><title>Why is this null?</title></ticket>'

and returns the following error

<?xml version="1.0" encoding="UTF-8"?>
    <errors>
        <error>Title can't be blank</error>
   < /errors>

I don't get it. The title is right there. What is the issue?

  1. 1 Posted by ram.viswanadha ... on 13 Oct, 2011 08:22 PM

    ram.viswanadha (at adgentdigital)'s Avatar

    Any help?

  2. Support Staff 2 Posted by Tiger Team on 13 Oct, 2011 08:23 PM

    Tiger Team's Avatar

    Looking into it now..

  3. Support Staff 3 Posted by Tiger Team on 13 Oct, 2011 08:29 PM

    Tiger Team's Avatar

    You aren't using the right post body, I think.. 1 moment..

  4. Support Staff 4 Posted by Tiger Team on 13 Oct, 2011 08:30 PM

    Tiger Team's Avatar

    Add this to your curl:

    -H 'Content-Type: text/xml'
    
  5. Tiger Team closed this discussion on 13 Oct, 2011 08:30 PM.

  6. ram.viswanadha (at adgentdigital) re-opened this discussion on 13 Oct, 2011 08:49 PM

  7. 5 Posted by ram.viswanadha ... on 13 Oct, 2011 08:49 PM

    ram.viswanadha (at adgentdigital)'s Avatar

    that worked. Can you guys please update the docs with this information? Thanks

  8. Nicole closed this discussion on 13 Oct, 2011 08:57 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