> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateBranchPolicyInput

> Input object in the GraphQL API.

| Field | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String`](/docs/cloud/graphql/types/string) | No | |
| `projectId` | [`ID`](/docs/cloud/graphql/types/id) | No | Deprecated: Use projectReference. |
| `name` | [`String!`](/docs/cloud/graphql/types/string) | Yes | |
| `isEnabled` | [`Boolean`](/docs/cloud/graphql/types/boolean) | No | Enable this policy. Null and omission use the true default. |
| `targetBranchPattern` | [`String`](/docs/cloud/graphql/types/string) | No | |
| `requiredApprovals` | [`Int`](/docs/cloud/graphql/types/int) | No | Required approval count. Null and omission default to 0; MCP create\_branch\_policy defaults to 1. |
| `allowSelfApproval` | [`Boolean`](/docs/cloud/graphql/types/boolean) | No | Allow the merger’s approval to count. Null and omission default to true; MCP create\_branch\_policy defaults to false. |
| `requiredReviewerIds` | [`[String!]`](/docs/cloud/graphql/types/string) | No | Reviewer UUIDs required for merge. Null and omission impose no specific reviewers; an empty list is accepted. |

[All GraphQL types](/docs/cloud/graphql/schema) · [Operations](/docs/cloud/graphql)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.