space_tools POST api broken?

11 views
Skip to first unread message

Matt Middleton

unread,
Mar 14, 2017, 3:08:18 AM3/14/17
to Assembla API Development
I am trying to add a git repository using the API.  I am getting a 201 Created response, but it is in fact not creating a new repository and the XML / JSON that is returned is information for an existing repository.

I have tried:
 -- Executing the POST with and without JSON data to provide a menu name
 -- Using the add.xml and the add.json
 -- Different spaces
 -- Using a bearer token and using a hardcoded personal key

For the case without sending JSON, I've used the command exactly ( except for including a valid token, space_id, and tool id (128) ) from the documentation:
curl -i -H "Authorization: Bearer _token" -X POST https://api.assembla.com/v1/spaces/_space_id/space_tools/_tool_id/add.json

Stanislav Kolotinskiy

unread,
Mar 14, 2017, 4:44:43 AM3/14/17
to Matt Middleton, Assembla API Development
Hi Matt,

I just checked out the code responsible for that, and looks like you indeed hit a bug. I’ll open a ticket with our development team, and will let you know as soon as it’s fixed. Thanks a lot and sorry for the inconvenience. Have a nice day!

Regards,
Stanislav

--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages