Creates a new access rule based on the provided NQL query.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
It should be unique. Also should not intersect with Dataset names. Must be <= 256 characters and consist of only alphanumeric characters and underscores.
NQL query of access rule.
Describes who can view or query a resource
How much to charge for a row which matches this access rule. Cost per mille (CPM), more commonly called “cost per thousand,” is how much a buyer pays for 1,000 records.
Optional. Display Name must be non-empty and less than 1000 chars.
A human-friendly description of the access rule.
Optional. _nio_access_rule will be added even if not presented. Access Rule tag must be non-empty and less than 256 chars.
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