# veryfront__create_branch_policy

Create a merge policy for branches matching a pattern. Requires project.settings.manage.

Risk: mutating.

## Arguments

| Name                    | Type        | Required | Description                                                                                      |
| ----------------------- | ----------- | -------- | ------------------------------------------------------------------------------------------------ |
| `name`                  | string      | Yes      | Policy name                                                                                      |
| `is_enabled`            | boolean     |          | Enable the policy (default: true).                                                               |
| `required_approvals`    | integer     |          | Required approvals (default: 1). REST/GraphQL default to 0.                                      |
| `allow_self_approval`   | boolean     |          | Allow the merger’s approval to count (default: false). REST/GraphQL default to true.             |
| `target_branch_pattern` | string,null |          | Pattern to match branches (e.g., "main", "release/\*"). Omit or send null to match every branch. |
| `required_reviewer_ids` | array       |          | User IDs who must approve before a matching branch can merge.                                    |
| `project_reference`     | string      |          | Project ID or slug                                                                               |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_branch_policy",
    "arguments": {
      "name": "<name>"
    }
  }
}
```
