Create a saved view
curl --request POST \
--url https://router.toqan.ai/eu/v3/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"description": "<string>",
"page": "<string>",
"filter_by": "<string>",
"columns": [
"<string>"
],
"column_labels": {},
"is_default": true,
"is_private": true,
"version": 123
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
description: '<string>',
page: '<string>',
filter_by: '<string>',
columns: ['<string>'],
column_labels: {},
is_default: true,
is_private: true,
version: 123
})
};
fetch('https://router.toqan.ai/eu/v3/views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://router.toqan.ai/eu/v3/views"
payload = {
"display_name": "<string>",
"description": "<string>",
"page": "<string>",
"filter_by": "<string>",
"columns": ["<string>"],
"column_labels": {},
"is_default": True,
"is_private": True,
"version": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"view": {
"id": "<string>",
"display_name": "<string>",
"description": "<string>",
"workspace_id": "<string>",
"page": "<string>",
"filter_by": "<string>",
"columns": [
"<string>"
],
"column_labels": {},
"is_default": true,
"private_for_ids": [
"<string>"
],
"version": 123,
"created_by_id": "<string>",
"updated_by_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Views
Create a saved view
Create a saved View with the API, storing filters, columns, column labels and default or private settings for the Traces and Logs pages.
POST
/
v3
/
views
Create a saved view
curl --request POST \
--url https://router.toqan.ai/eu/v3/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"description": "<string>",
"page": "<string>",
"filter_by": "<string>",
"columns": [
"<string>"
],
"column_labels": {},
"is_default": true,
"is_private": true,
"version": 123
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
description: '<string>',
page: '<string>',
filter_by: '<string>',
columns: ['<string>'],
column_labels: {},
is_default: true,
is_private: true,
version: 123
})
};
fetch('https://router.toqan.ai/eu/v3/views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://router.toqan.ai/eu/v3/views"
payload = {
"display_name": "<string>",
"description": "<string>",
"page": "<string>",
"filter_by": "<string>",
"columns": ["<string>"],
"column_labels": {},
"is_default": True,
"is_private": True,
"version": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"view": {
"id": "<string>",
"display_name": "<string>",
"description": "<string>",
"workspace_id": "<string>",
"page": "<string>",
"filter_by": "<string>",
"columns": [
"<string>"
],
"column_labels": {},
"is_default": true,
"private_for_ids": [
"<string>"
],
"version": 123,
"created_by_id": "<string>",
"updated_by_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
OK
Show child attributes
Show child attributes

