Unable to create a project with the API
I'm following the example under "Create a new project" here:
http://help.lighthouseapp.com/kb/api/projects
While example says to use GET, that seems like a typo and I'm using
POST just like with other API objects. Here's the command I'm
running:
curl -X POST https://MY_SUBDOMAIN.lighthouseapp.com/projects.xml -H 'X-LighthouseToken: MY_TOKEN' -d "<project><archived type="boolean">false</archived><name>Foo</name><public type="boolean">false</public></project>"
I get back:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Name can't be blank</error>
</errors>
The project name is in the XML string I'm posting. Am I doing something wrong or is this a bug on the API? Any help would be greatly appreciated.
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
Support Staff 1 Posted by Tiger Team on 10 Mar, 2011 08:16 PM
Hey Martin,
Append this to the curl POST call:
and it should all work. We've modified the docs accordingly. Thanks for bringing this to our attention!
Courtenay
Tiger Team closed this discussion on 10 Mar, 2011 08:16 PM.