v128

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

update an existing protection rule

post/w/{workspace}/workspaces/protection_rules/{rule_name}

Path parameters

workspacestring required
rule_namestring required

Name of the protection rule to update

Request body

namestring

New name for the rule. Omit, or pass the current name, to leave it unchanged. The reserved dev_workspace_lock rule cannot be renamed, nor can another rule be renamed onto it.

rulesProtectionRuleKind[] required

Configuration of protection restrictions

bypass_groupsstring[] required

Groups that can bypass this ruleset

bypass_usersstring[] required

Users that can bypass this ruleset

Response

protection rule updated successfully