Skip to main content
POST
Create branch policy

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain that identifies the project.

Body

application/json
name
string
required
is_enabled
boolean
target_branch_pattern
string
required_approvals
integer

Required approval count. Defaults to 0; MCP create_branch_policy defaults to 1.

Required range: x >= 0
allow_self_approval
boolean

Allow the merger’s approval to count. Defaults to true; MCP create_branch_policy defaults to false.

required_reviewer_ids
string<uuid>[]

Response

Policy created

id
string<uuid>
required
project_id
string<uuid>
required
name
string
required
is_enabled
boolean
required
target_branch_pattern
string | null
required
required_approvals
number
required
allow_self_approval
boolean
required
required_reviewer_ids
string[] | null
required
created_at
string
required
updated_at
string
required