List all rules in edge order
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/example/projects/example/rules';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v2/organizations/example/projects/example/rules \ --header 'Authorization: Bearer <token>'Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus position (0-based index in this order) and managed (true when a template deploy owns the rule in this project). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so position values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The request has succeeded.
object
0-based index in the stored order.
True when a template deploy owns the rule in this project.
Examplegenerated
[ { "position": 1, "managed": true }]Access is forbidden.
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true}