Rules

List custom rules

List all custom rules for the organization, optionally filtered by repository, newest first. Supports cursor-based pagination via limit and cursor. A cursor marks the position after the last rule of its page, so rules created or deleted between page requests never make a later page repeat or skip a rule.

post/api/v2/rules/list

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
repositoryIdstring

Filter rules by repository

cursorstring

Opaque cursor for pagination (obtained from nextCursor in previous response)

limitinteger

Number of rules to return per page

Response

Successful response

totalCountinteger required
hasMoreboolean required
nextCursorstring nullable required

Changes

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