curl --request GET \
--url https://api-dev.narrative.io/v2/views/{view_id} \
--header 'Authorization: Bearer <token>'{
"name": "view1",
"id": "7409b999-2a9a-40cd-89dc-8430d85e0391",
"display_name": "Query One",
"owner": {
"company_id": 456,
"company_name": "ExampleCorp",
"company_slug": "examplecorp"
},
"tags": [
"tag1",
"tag2"
],
"collaborators": {
"query": {
"type": "inclusion",
"company_ids": [
789
]
},
"view": {
"type": "all"
}
},
"is_owned": true,
"metadata": {
"created_at": "2024-04-12T19:57:05.012908",
"created_by_user_id": 321,
"updated_at": "2024-04-12T20:03:48.031825",
"updated_by_user_id": 321
},
"nql": "SELECT age FROM narrative.rosetta_stone",
"schema": {
"type": "object",
"properties": {
"age": {
"display_name": "age",
"type": "double"
}
},
"required": [
"id"
]
}
}Get a view.
curl --request GET \
--url https://api-dev.narrative.io/v2/views/{view_id} \
--header 'Authorization: Bearer <token>'{
"name": "view1",
"id": "7409b999-2a9a-40cd-89dc-8430d85e0391",
"display_name": "Query One",
"owner": {
"company_id": 456,
"company_name": "ExampleCorp",
"company_slug": "examplecorp"
},
"tags": [
"tag1",
"tag2"
],
"collaborators": {
"query": {
"type": "inclusion",
"company_ids": [
789
]
},
"view": {
"type": "all"
}
},
"is_owned": true,
"metadata": {
"created_at": "2024-04-12T19:57:05.012908",
"created_by_user_id": 321,
"updated_at": "2024-04-12T20:03:48.031825",
"updated_by_user_id": 321
},
"nql": "SELECT age FROM narrative.rosetta_stone",
"schema": {
"type": "object",
"properties": {
"age": {
"display_name": "age",
"type": "double"
}
},
"required": [
"id"
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
View identifier.
OK
It should be unique. Must be <= 256 characters and consist of only alphanumeric characters and underscores.
Describes who can view or query a resource
Show child attributes
Information about the owner of the view
Show child attributes
Metadata about when and by whom a view was created/updated
Show child attributes
Optional. Display Name must be non-empty and less than 1000 chars.
Optional. Each tag must be less than 256 chars.
Whether the requestor owns the view.
NQL schema for the view.