Skip to content

List all rules in edge order

GET
/api/v2/organizations/{organization}/projects/{project}/rules
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.

organization
required
string
project
required
string

The request has succeeded.

Media typeapplication/json
Array<object>
object
position

0-based index in the stored order.

integer
managed

True when a template deploy owns the rule in this project.

boolean
deployment

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
namespace
required

The namespace of the edge-rules file that wrote the rule.

string
id
required

The id of the rule in that file.

string
hash

Hash of the rule as the deploy last wrote it, used to detect changes by other paths.

string
nullable
key
additional properties
any
Examplegenerated
[
{
"position": 1,
"managed": true,
"deployment": {
"namespace": "example",
"id": "example",
"hash": "example"
}
}
]

Access is forbidden.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}