You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have created blank repo using rest api post and passing description at the same time, it's worked out but for already existing repos how to add description, I have used PUT for existing repo but not working
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}{
"name": "my-repo",
"description": "My custom description"
}
Hey @himashuk,
It looks like the PUT request you're making ought to work - though if you're only attempting to modify the description, you shouldn't need to include the 'name' attribute in the PUT request's payload.
I tested the following cURL command against my local instance and it updated the description without issue - so look to see if it helps do the trick for you:
curl --location --request PUT 'https://mybitbucketinstance.com/rest/api/1.0/projects/PROJECTNAME/repos/REPOSLUG' \
-u adminusername:adminpassword \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "My custom description"
}' \
-k
If you look to still be getting an error, feel free to post back with the error or response you're getting back or shoot us the details over at https://support.atlassian.com/contact. :)
Thanks,
Evan
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.