tag:help.lighthouseapp.com,2008-09-20:/discussions/problems/597-api-ticket-creationLighthouse: Discussion 2011-11-07T22:29:18Ztag:help.lighthouseapp.com,2008-09-20:Comment/1053162009-03-18T21:29:53Z2009-03-18T21:29:53ZAPI Ticket Creation<div><p>You have to send the xml as the raw post data. It's not a POST
field really. If you're using curl, it'd look something like:</p>
<p><code>curl http://foo.lighthouseapp.com/projects/1/tickets.xml
-d "<ticket>...</ticket>"</code></p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/1053162009-04-02T22:49:44Z2009-04-02T22:49:44ZAPI Ticket Creation<div><p>curl will also need to POST the request and mark the POST data
as XML. Here are the options I use:<br></p>
<p>curl -H "Content-Type: text/xml" -X POST -d "..."</p>
<p>Run curl with -v to see what it is doing -- that's how I found
curl was sending a "Content-Type:
application/x-www-form-urlencoded" header.</p>
<p>The "title can't be blank" message is lighthouse's way of saying
"I don't understand your request", it sends that all sorts of
malformed requests.</p></div>nghidav