Rules
Create custom rule
Create a natural language security rule. Only name and rule are required — all other fields are optional. Rules apply org-wide by default. Pass repositoryIds to restrict the rule to specific repos, or pass tagIds without repositoryIds to scope the rule to repositories carrying those tags. Use allRepositories: true when you want org-wide scope while also associating tags.
post/api/v2/rules/create
Request
- Base URLhttps://zeropath.com
- AuthAPI key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret
Request body
Response
Rule created successfully
Changes
No recorded changes to this operation across all 1 revision of this API.