Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,630
Community Members
 
Community Events
176
Community Groups

Is it possible to change a repository avatar using the Bitbucket Cloud REST API?

Edited

Hello humans,

I have a million repositories, and I would like to make stepping through them a bit easier by colour-coding them using their avatars. Since it's an absolute **** to do this by hand, I wrote a python script that GETs the repository JSON, overrides //links/avatar/href and then PUTs it back.

This does not seem to do anything, however: the response is an HTTP 200 that contains the JSON with the original link, not the override.

Is it even possible to change the avatar using the REST API? Documentation has very little to say about this...

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
seanaty Atlassian Team Feb 11, 2022

This isn't possible to do via the API, unfortunately.

Thanks for the reply! 

Do you know if this will be possible at some point, or if there's some other method of automating changing avatars for repositories?

@seanatyIs it possible to create a feature request on https://jira.atlassian.com (BCLOUD) for this?

 

A rest API which is the backbone for an as-code definition can help in any recovery and for central repository management.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events