---
title: "updateBranchRestriction"
canonical: "https://support.appfire.com/space/SCLI/73369448/updateBranchRestriction"
format: markdown
---
See also: [Actions](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368507)

> Macro (details)
> 
> | **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](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368805), [repository](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368867), ([branch](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370663) or [id](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370775)) |
> | **Optional Parameters** | [restriction](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371487), [matchingType](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370597), [userId](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368641), [group](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370813), [replace](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371611) |
> | **Type** | [Update](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370540/Action+Types#ActionTypes-Update) |
> | **Category** | [Branches](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371318/Action+Categories#ActionCategories-Branches) |
> | **Output Formats** |  |
> | **Replacement Variables** |  |
> | **Hosting** | server,datacenter |
> | **Since Version** | 9.3 |
> | **Examples** |  |

## Related How To's

> Macro (cql-query)