tag:help.lighthouseapp.com,2008-09-20:/discussions/questions/1010-changeset-apiLighthouse: Discussion 2012-02-27T19:57:32Ztag:help.lighthouseapp.com,2008-09-20:Comment/116454072011-11-29T21:53:03Z2011-11-29T21:53:03Zchangeset API<div><p>Hi Isak,</p>
<p>The format is slightly different for POST. If you look at the
<a href=
"http://lighthouseapp.com/api/changesets">documentation</a>, you
should instead submit this:</p>
<pre>
<code><changeset>
<body></body>
<body-html></body-html>
<changed-at type="datetime"></changed-at>
<changes type="yaml">---
- A /foo/bar.rb
- M /foo/bar.rb
</changes>
<revision>1234</revision>
<title>bob committed changeset [1234]</title>
</changeset></code>
</pre>
<p>The easiest way to generate the YAML part is generally to go
through a <a href="http://www.yaml.org/">dedicated library</a> for
your language, rather than trying to create the string
manually.</p>
<p>Let me know if you have any other question.</p></div>Julien