Add deployment branch rule on environments

I could not find any API to create deployment branch rule on environments by Branch name pattern.

I was being able to create for branch using graphql, there is another to create that?