Update custom rule

Update an existing natural language security rule

Headers

X-ZeroPath-API-Token-IdstringRequired
X-ZeroPath-API-Token-SecretstringRequired

Request

This endpoint expects an object.
ruleIdstringRequired
organizationIdstringOptional
namestringOptional
rulestringOptional
Natural language description of the security rule
globPatternstringOptional
Glob pattern for files this rule applies to
sourceTypeslist of enumsOptional
repositoryIdslist of stringsOptional

Response

Rule updated successfully
idstring
namestring
rulestring
Natural language description of the security rule
globPatternstring
sourceTypeslist of enums
repositoryIdslist of strings
createdAtdatetime
updatedAtdatetime

Errors