--
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.
Hi Deepan,you have to pass only the numeric ID, i.e. 1435 . Please let me know if that helps.—Regards,Stanislav
On Nov 21, 2016, at 15:45, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
Hi Team,I want to update custom fields in Assembla by automation script.For that I am using curl with X-api-key and X-api-secretI am getting "Couldn't find WorkflowPropertyDef with 'id'=1435-created-for-testing [WHERE `workflow_property_defs`.`space_tool_id` = ?]"} errorCould you please help me out to update the ticket?ThanksDeepan--
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-dev+unsubscribe@googlegroups.com.
To post to this group, send email to assembla-api-dev@googlegroups.com.
On Nov 30, 2016, at 17:05, Deepan Chakravarthy <m.deepanch...@gmail.com> wrote:
--
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.
Hi Deepan,I’m sorry for the delay. Could you please provide the whole curl request?Regards,Stanislav
On Nov 30, 2016, at 17:05, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
On Monday, November 28, 2016 at 12:06:08 PM UTC-5, Deepan Chakravarthy wrote:Hi Stanislav,Any update on this?I have used only the ID, but its not working.ThanksDeepan
On Monday, November 21, 2016 at 8:45:50 AM UTC-5, Deepan Chakravarthy wrote:Hi Team,I want to update custom fields in Assembla by automation script.For that I am using curl with X-api-key and X-api-secretI am getting "Couldn't find WorkflowPropertyDef with 'id'=1435-created-for-testing [WHERE `workflow_property_defs`.`space_tool_id` = ?]"} errorCould you please help me out to update the ticket?ThanksDeepan--
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-dev+unsubscribe@googlegroups.com.
To post to this group, send email to assembla-api-dev@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Assembla API Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/assembla-api-dev/DDbJSKYX0II/unsubscribe.
To unsubscribe from this group and all its topics, send an email to assembla-api-dev+unsubscribe@googlegroups.com.
To post to this group, send email to assembla-api-dev@googlegroups.com.
Hi Deepan,
well, this is actually the wrong endpoint. In order to update a ticket, you have to send a PUT request to /v1/spaces/:space_id/tickets/:id.json . For more details, please check out http://api-doc.assembla.com/content/ref/tickets_update.html and let me know if you need any more help.Regards,Stanislav
On Dec 16, 2016, at 12:20, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
Hi Stanislav,Below is the command which I have used to update a ticketcurl -H "X-Api-Key: *************" -H "X-Api-Secret: ********" -H "Content-type: application/json" -X PUT -d '{"custom_field":{"title":"OS"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/custom_fields/1435.jsonPlease check and suggest.
On Thu, Dec 15, 2016 at 1:15 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,I’m sorry for the delay. Could you please provide the whole curl request?Regards,Stanislav
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.
Hi Deepan,
you are actually hitting the wrong endpoint. It should be https://api.assembla.com/v1/spaces/gm-info-3-cr/tickets/1435.xml - please note /v1 before /spaces . Please let me know if that helps.Regards,Stanislav
On Dec 22, 2016, at 15:08, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
Hi Stanislav,I am using below command, but its giving "Access Denied" error, but the same API key is working for fetching data.curl -i -X PUT -H "X-Api-Key: xxxxxx" -u "X-Api-Secret: xxxxx" -H "Content-type: application/json" -d '{"ticket":{"summary":"Data"}}' https://api.assembla.com/spaces/gm-info3-cr/tickets/1435-created-for-testing.xmlWhen I hit the URL "https://api.assembla.com/spaces/gm-info3-cr/tickets/1435-created-for-testing.xml" in my browser, its giving me the xml file output.Could you please help me out with this issue?is the update will work only using ""Authorization: Bearer _token" ? Please clarifyRegards,
On Fri, Dec 16, 2016 at 4:24 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,well, this is actually the wrong endpoint. In order to update a ticket, you have to send a PUT request to /v1/spaces/:space_id/tickets/:id.json . For more details, please check out http://api-doc.assembla.com/content/ref/tickets_update.html and let me know if you need any more help.Regards,Stanislav
Statuses on success:
This isn’t an error - 204 means successful update.Regards,Stanislav
On Dec 22, 2016, at 15:08, Deepan Chakravarthy <m.deepanch...@gmail.com> wrote:
Hi Stanislav,
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.
Hi Deepan,
command looks good. What’s the response code?Regards,Stanislav
On Dec 26, 2016, at 14:31, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
Hi Stanislav,I need to update summary of this 1435 ticket but its not updating.Please correct me if I am wrong.using below PUT command.curl -i -X PUT -H "X-Api-Key: xxxxxxxx" -u "X-Api-Secret: xxxxxxx" -H "Content-type: application/json" -d '{"ticket":{"summary":"Ddata values"}}' https://api.assembla.com/v1/spaces/gm-info-3-cr/tickets/1435.xmlStatuses on success:
- 200 OK Success from a GET, PUT or DELETE operation;
- 201 Created Success from a POST operation;
- 204 No Content Success from a GET operation with empty data;
On Mon, Dec 26, 2016 at 5:30 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
This isn’t an error - 204 means successful update.Regards,Stanislav
OK, that looks good - 204 is what is returned from Assembla API on successful PUT requests.Regards,Stanislav
Hi Deepan,
is it because of the typo in space name? I can see that it should be gm-info3-cr not gm-info-3-cr. Also, please try to use .json instead of .xml - will this help?Regards,Stanislav
On Dec 27, 2016, at 18:00, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
Hi Stanislav,But the ticket is not updating.
On Tue, Dec 27, 2016 at 9:17 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
OK, that looks good - 204 is what is returned from Assembla API on successful PUT requests.Regards,Stanislav
OK,
I think I see the issue now. Your ticket is 1435-a, not 1435-created-for-testing, since you updated summary. However, in order to exclude errors, you better include only ticket number - /tickets/1435.xml or /tickets/1435.json. Please try that and let me know if it helpsRegards,Stanislav
On Dec 28, 2016, at 12:26, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:
Hi Stanislav,Tried below command, still getting 204 and the ticket is not updated.curl -i -X PUT -H "X-Api-Key: ***********" -u "X-Api-Secret: **********" -H "Content-type: application/json" -d '{"ticket":{"description":"Ddata-values"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/1435-created-for-testing.jsonRegards,
On Wed, Dec 28, 2016 at 3:34 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,is it because of the typo in space name? I can see that it should be gm-info3-cr not gm-info-3-cr. Also, please try to use .json instead of .xml - will this help?Regards,Stanislav
Hi Stanislav,
I tried that as well, but its not working.curl -i -X PUT -H "X-Api-Key: xxxxxxx" -u "X-Api-Secret: xxxxxx" -H "Content-type: application/json" -d '{"ticket":{"description":"Ddata-values"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/1435.json
On Thu, Dec 29, 2016 at 3:01 AM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
OK,I think I see the issue now. Your ticket is 1435-a, not 1435-created-for-testing, since you updated summary. However, in order to exclude errors, you better include only ticket number - /tickets/1435.xml or /tickets/1435.json. Please try that and let me know if it helpsRegards,Stanislav
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.