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

Add branch permission restrictions via REST API

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: API - REST
    • Labels:
      None
    • Feedback Policy:
      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

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

                Dates

                Created:
                Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but there is no synchronization info for this issue.