You can use the REST API to specify custom name patterns that branches must match in order to deploy to an environment. The
deployment_branch_policy.custom_branch_policies
property for the environment must be set to
true
to use these endpoints. To update the
deployment_branch_policy
for an environment, see "
REST API endpoints for deployment environments
."
For more information about restricting environment deployments to certain branches, see "
Using environments for deployment
."