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) 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.

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
key
additional properties
any
Examplegenerated
[
{
"position": 1,
"managed": true
}
]

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
}