Create custom rule
Create a new natural language security rule that will be applied during scans
Headers
X-ZeroPath-API-Token-Id
X-ZeroPath-API-Token-Secret
Request
This endpoint expects an object.
name
Name for the custom rule
rule
Natural language description of the security rule
organizationId
globPattern
Glob pattern for files this rule applies to
sourceTypes
Source types this rule applies to
repositoryIds
Specific repository IDs to apply this rule to (if not specified, applies to all)
Response
Rule created successfully
id
name
rule
Natural language description of the security rule
globPattern
sourceTypes
repositoryIds
createdAt
updatedAt