简体   繁体   中英

Can I create a sidebar link via REST?

I can create repos in BitBucket server (on-premises) using the REST API but I would like to add a sidebar link using REST as well. Does anyone know how to craete a sidebar link for a repo using REST?

Nevermind, I found it. Just send this JSON:

{"url":" http://www.stackoverflow ","label":"StackOverflow"}

To this URL as a POST:

http://bb.mydomain.com:7990/rest/repository-shortcuts/latest/projects/ {project}/repos/{slug}/shortcuts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM