cURL
curl --request POST \ --url https://zeropath.com/api/v2/rules/list \ --header 'Content-Type: application/json' \ --header 'X-ZeroPath-API-Token-Id: <api-key>' \ --header 'X-ZeroPath-API-Token-Secret: <api-key>' \ --data '{ "organizationId": "<string>", "repositoryId": "<string>", "page": 1, "pageSize": 20 }'
{ "rules": [ { "id": "<string>", "name": "<string>", "rule": "<string>", "globPattern": "<string>", "sourceTypes": [ "HTTP_HANDLER" ], "repositoryIds": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ], "totalCount": 123, "page": 123, "pageSize": 123, "totalPages": 123 }
List all custom rules for the organization, optionally filtered by repository
Filter rules by repository
x >= 1
1 <= x <= 100
Successful response
Show child attributes