Rules

Update custom rule

Update an existing natural language security rule

post/api/v2/rules/update

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring
ruleIdstring required
namestring
rulestring

Natural language description of the security rule

globPatternstring

Glob pattern for files this rule applies to

sourceTypesstring[]
repositoryIdsstring[]

Response

Rule updated successfully

idstring required
namestring required
rulestring required

Natural language description of the security rule

globPatternstring required
sourceTypesstring[] required
repositoryIdsstring[] required
createdAtstring date-time required
updatedAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.