Cannot create ticket using the API
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?
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
1 Posted by ram.viswanadha ... on 13 Oct, 2011 08:22 PM
Any help?
Support Staff 2 Posted by Tiger Team on 13 Oct, 2011 08:23 PM
Looking into it now..
Support Staff 3 Posted by Tiger Team on 13 Oct, 2011 08:29 PM
You aren't using the right post body, I think.. 1 moment..
Support Staff 4 Posted by Tiger Team on 13 Oct, 2011 08:30 PM
Add this to your curl:
Tiger Team closed this discussion on 13 Oct, 2011 08:30 PM.
ram.viswanadha (at adgentdigital) re-opened this discussion on 13 Oct, 2011 08:49 PM
5 Posted by ram.viswanadha ... on 13 Oct, 2011 08:49 PM
that worked. Can you guys please update the docs with this information? Thanks
Nicole closed this discussion on 13 Oct, 2011 08:57 PM.