Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Bitbucket Command Line Interface (CLI)
  • Reference
    Reference
     This trigger is hidden
  • User's Guide
    User's Guide
     This trigger is hidden
  • Administrator's Guide
    Administrator's Guide
     This trigger is hidden
  • Release notes
    Release notes
     This trigger is hidden
  • Share data with the Support team
    Share data with the Support team
     This trigger is hidden
  • Downloads
    Downloads
     This trigger is hidden
Results will update as you type.
  • grantProjectPermissions
  • grantRepositoryPermissions
  • help
  • installApp
  • mergePullRequest
  • removeAccessToken
  • removeApplicationLink
  • removeBranch
  • removeBranchRestriction
  • removeGroup
  • removeSshKey
  • removeSshKeys
  • removeUser
  • removeUserFromGroup
  • renderRequest
  • revokePermissions
  • revokeProjectPermissions
  • revokeRepositoryPermissions
  • run
  • runFromApplicationLinkList
  • runFromBranchList
  • runFromBranchRestrictionList
  • runFromCommitList
  • runFromCsv
  • runFromGroupList
  • runFromJson
  • runFromList
  • runFromProjectList
  • runFromPullRequestList
  • runFromRepositoryList
  • runFromSql
  • runIf
  • setBuildStatus
  • setReplacementVariables
  • updateHook
  • updateProject
  • updatePullRequest
  • updateRepository
  • updateUser
  • runFromUserList
  • updateBranchRestriction
  • addWebhook
  • getWebhookList
  • removeWebhook
  • runFromWebhookList
  • updateWebhook
  • addReviewCondition
  • getFileList
  • getReviewConditionList
  • getSource
  • removeReviewCondition
  • runFromReviewConditionList
  • updateReviewCondition
  • getFileInfo
  • getAuditLogList
  • xxxxvalidateLicense
  • validateLicense
  • getUpgradeInfo
  • provideFeedback
  • runFromPropertyFile
  • sleep
  • getSqlResultList
  • createBranch
  • deleteBranch
  • runFromHookList
  • getAutomation
  • getAutomationList
  • runAutomation
  • runFromAutomationList
    Calendars
You‘re viewing this with anonymous access, so some content might be blocked.
/
updateBranchRestriction



updateBranchRestriction

Dec 03, 2024

See also: Actions

Description

Update a branch level restriction with changes to exemptions for users and groups. Identify the branch restriction by id or by the same matching parameters as getBranchRestriction. By default, users or group or both specified by their respective parameters will be added to the existing exceptions. Use '--options remove' to remove users or group or both specified by their respective parameters. Use '--replace' to replace users or groups or both specified by their respective parameters. Use a blank parameter value to indicate no corresponding exceptions for remove and replace.

Required Parameters

project, repository, (branch or id)

Optional Parameters

restriction, matchingType, userId, group, replace

Type

Update

Category

Branches

Output Formats

Replacement Variables

Hostingserver,datacenter
Since Version9.3

Examples

Related How To's

, multiple selections available, Use left or right arrow keys to navigate selected items
cli-action
cli-action-updatebranchrestriction
cli-parameter-project
cli-parameter-repository
cli-parameter-branch
cli-parameter-id
cli-parameter-restriction
cli-parameter-matchingtype
cli-parameter-userid
cli-parameter-group
cli-parameter-replace
cli-parameter-action
cli-parameter-dateformat
cli-parameter-dateformat2
cli-parameter-help
cli-parameter-outputtype
cli-parameter-special
cli-parameter-quiet
cli-parameter-verbose
cli-parameter-debug
cli-action-category-branches
cli-action-type-update
cli-parameter-server
cli-parameter-user
cli-parameter-password
cli-parameter-token
Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.
{"serverDuration": 15, "requestCorrelationId": "a0571c7353b24544afd9ec566fa6a711"}