Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12492

Add branch permission restrictions via REST API

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • API - REST
    • None
    • 1
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      https://docs.atlassian.com/bitbucket-server/rest/7.4.0/bitbucket-ref-restriction-rest.html.
      Under this, I refer POST method of /rest/branch-permissions/2.0/projects/{projectKey}/repos/{repositorySlug}/restrictions

      I am able to use this API successfully. I see that if the rule doesn't exist, it creates it.
      However, if the rule already exist with certain list of users, instead of appending new users to the rule it removes existing users & add new users specified in my rest api.

      This feature request is to provide a PUT method to add to the existing rules rather than replacing them.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cberry@atlassian.com Chris Berry
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: