1. i want to delete plan through REST API as per Atlassian documentation reference
i have got this REST API
curl -k -u {username} \
-H 'X-Atlassian-Token: no-check' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'buildKey={planKey}' \
-X POST 'http://localhost:8085/chain/admin/deleteChain!doDelete.action'
2. when i trying to implement this i am facing authentication some error .
3.i have give permission in UI , and i am the admin of that plan, and project as well.
Can anyone with suggestions.
Hello @SunadhRaj.Malaka
I can see two issues here:
1 - You are enclosing your username with {} characters. This is used as a delimiter and should not be used on the request. Try using simply sumalaka and not {sumalaka} as the username. There is a clear error message stating that user is not authorised.
2 - This is not a Bamboo REST API call. That's actually an HTML form submission that may change between releases. If you are looking to use the REST API please try this:
$ curl -u sumalaka:password --request DELETE --url 'http://localhost:8085/rest/api/latest/plan/PROJ-PLAN'
Best regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! Make sure to Accept the Answer if it helped you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.