tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/133-computed-vs-user-entered-fieldsLighthouse: Discussion 2011-04-07T05:37:01Ztag:help.lighthouseapp.com,2008-09-20:Comment/9820912010-02-07T04:45:47Z2010-02-07T04:45:47ZComputed vs. user entered fields<div><p>The <a href="http://lighthouseapp.com/api/tickets">ticket
documentation</a> lists which keys are available to be written:</p>
<blockquote>
<p>Create Ticket - POST /projects/#{project_id}/tickets.xml Creates
a ticket. Missing attributes will remain their default, as shown in
the new ticket request above. The shown fields are the only ones
you can set:</p>
<p>title body - follows the same formatting rules. state - Can be
any one of these: new, open, resolved, hold, invalid. Optional, set
to open by default for new tickets. assigned-user-id - optional
milestone-id - optional tag - space or comma delimited list of
tags</p>
</blockquote>
<p>There is no format for specifying in the actual API which fields
are read only.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/9820912010-02-07T05:20:38Z2010-02-07T05:20:38ZComputed vs. user entered fields<div><p>I was requesting a new feature. It would be helpful to have that
encoded in the API or accessible from the API so changes are
automatically accounted for without hard-coding the fields.</p>
<p>Michael</p></div>Michael Lattatag:help.lighthouseapp.com,2008-09-20:Comment/9820912010-02-07T07:06:13Z2010-02-07T07:06:13ZComputed vs. user entered fields<div><p>Thanks for the suggestion, but we're favoring JSON for all our
new API<br>
formats (though the existing XML calls will continue to work).
Most<br>
JSON APIs don't include any type of schema information, and our
users<br>
aren't demanding it. We'll reconsider if we get a lot more
requests<br>
for it.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/9820912010-02-07T07:24:22Z2010-02-07T07:24:22ZComputed vs. user entered fields<div><p>Hopefully project data will include som data or a separate call
can<br>
provide it? Where are the Jason calls documented? The XML docs
are<br>
getting out of date.</p>
<p>Michael</p></div>Michael Lattatag:help.lighthouseapp.com,2008-09-20:Comment/9820912010-02-07T07:55:36Z2010-02-07T07:55:36ZComputed vs. user entered fields<div><p>Projects have their own API endpoint:<br>
<a href=
"http://lighthouseapp.com/api/projects">http://lighthouseapp.com/api/projects</a>.
The JSON matches the XML key<br>
for key. Yes, the documentation does need a refresh though, as
some<br>
new attributes have been updated here and there.</p></div>Rick