Skip to main content
POST
Create a new Access Rule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

It should be unique. Also should not intersect with Dataset names. Must be <= 256 characters and consist of only alphanumeric characters and underscores.

nql
string
required

NQL query of access rule.

collaborators
object
required

Describes who can view or query a resource

price_cpm_usd
number<double>
required

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.

display_name
string

Optional. Display Name must be non-empty and less than 1000 chars.

description
string

A human-friendly description of the access rule.

tags
string[]

Optional. _nio_access_rule will be added even if not presented. Access Rule tag must be non-empty and less than 256 chars.

Response

OK

records
object[]
required
Example:
prev_page
integer<int64>

The number of previous page (if exists). Also can refer to the latest existing page if non-existing page was requested.

Example:

1

current_page
integer<int64>

The number of requested page.

Example:

1

next_page
integer<int64>

The number of next page (if exists).

Example:

42

total_records
integer<int64>

Total amount of accessible Access Rules

Example:

15000

total_pages
integer<int64>

Total amount of pages.

Example:

10