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), managed (true when a template deploy owns the rule in this project) and, on a rule written by a deploy of quant/edge-rules.json, deployment (its namespace and id in that file). 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.
Present only on a rule that a deploy of quant/edge-rules.json wrote, or a copy of one. namespace is the file’s top-level namespace and id is the rule’s id in that file; a later deploy matches its rules to stored rules by this pair. A copy in another project (an environment or a clone) can keep the marker but has managed false.
object
The namespace of the edge-rules file that wrote the rule.
The id of the rule in that file.
Hash of the rule as the deploy last wrote it, used to detect changes by other paths.
Examplegenerated
[ { "position": 1, "managed": true, "deployment": { "namespace": "example", "id": "example", "hash": "example" } }]Access is forbidden.
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true}