v106

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-03812347972.4 KB
workspace

create a new protection rule

post/w/{workspace}/workspaces/protection_rules

Path parameters

workspacestring required

Request body

namestring required

Unique name for the protection rule

rulesProtectionRuleKind[] required

Configuration of protection restrictions

bypass_groupsstring[] required

Groups that can bypass this ruleset

bypass_usersstring[] required

Users that can bypass this ruleset

Example request

{
  "name": "Production Protection"
}

Response

protection rule created successfully