Get all accessible Access Rules.
‘owned_only’ and ‘owned_only’ are flags, they don’t require values.
‘tag’, ‘dataset_id’, and ‘company_id’ are multi-params.
Query like ‘tag=tag1&tag=tag2&company_id=1&company_id=2’ is interpreted as “access rules with tags that comprise ‘tag1’ or ‘tag2’ AND belonging to companies with id ‘1’ or ‘2’.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
If enabled, returns only owned rules.
If enabled, returns only shared (not owned) rules.
Check whether tag is presented. If multiple tags specified, looks if any of them is attached to a rule.
Check whether owned by the company. Can be specified multiple times.
Number of page. Stars from the first (1) page.
Number of records to return.
Check whether the rule is associated with specified dataset. Multiple values are allowed.
OK
{
"name": "access_rule_ebc86610_0907_4374_8fc9_be360f0ff8d0",
"id": 1,
"company_id": 1,
"company_name": "company",
"company_slug": "company_slug_60a4e678_1d56_48a7_8b8b_4e1d689b11a6",
"display_name": "display name",
"description": "description",
"image": "https://narrative.test/1.png",
"status": "active",
"tags": ["_nio_access_rule"],
"nql": "select company_data.\"1\".columnA from company_data.\"1\" WHERE columnA = columnB",
"schema": {
"type": "object",
"properties": {
"columnA": {
"display_name": "columnA",
"type": "string"
}
},
"required": ["columnA"]
},
"collaborators": {
"query": { "type": "inclusion", "company_ids": [789] },
"view": { "type": "all" }
},
"price_cpm_usd": 1000.054,
"metadata": {
"created_at": "2023-12-14T21:36:51.847901",
"updated_at": "2023-12-14T21:36:51.847901"
},
"dataset_ids": [42],
"type": "owned",
"is_owned": true
}The number of previous page (if exists). Also can refer to the latest existing page if non-existing page was requested.
1
The number of requested page.
1
The number of next page (if exists).
42
Total amount of accessible Access Rules
15000
Total amount of pages.
10