curl --request POST \
--url https://api.select.dev/v2/saved-views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"url": "<string>",
"name": "<string>",
"params": "<string>",
"icon": "<string>",
"color": "<string>",
"team_id": "<string>",
"is_personal": false
}
'import requests
url = "https://api.select.dev/v2/saved-views"
payload = {
"url": "<string>",
"name": "<string>",
"params": "<string>",
"icon": "<string>",
"color": "<string>",
"team_id": "<string>",
"is_personal": False
}
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '<string>',
name: '<string>',
params: '<string>',
icon: '<string>',
color: '<string>',
team_id: '<string>',
is_personal: false
})
};
fetch('https://api.select.dev/v2/saved-views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.select.dev/v2/saved-views",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'name' => '<string>',
'params' => '<string>',
'icon' => '<string>',
'color' => '<string>',
'team_id' => '<string>',
'is_personal' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-tenant-id: <x-tenant-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.select.dev/v2/saved-views"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"name\": \"<string>\",\n \"params\": \"<string>\",\n \"icon\": \"<string>\",\n \"color\": \"<string>\",\n \"team_id\": \"<string>\",\n \"is_personal\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.select.dev/v2/saved-views")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"name\": \"<string>\",\n \"params\": \"<string>\",\n \"icon\": \"<string>\",\n \"color\": \"<string>\",\n \"team_id\": \"<string>\",\n \"is_personal\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/saved-views")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"name\": \"<string>\",\n \"params\": \"<string>\",\n \"icon\": \"<string>\",\n \"color\": \"<string>\",\n \"team_id\": \"<string>\",\n \"is_personal\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"etag": "<string>",
"url": "<string>",
"name": "<string>",
"params": "<string>",
"is_personal": true,
"create_time": "<string>",
"update_time": "<string>",
"view_type": "<string>",
"page": "<string>",
"icon": "<string>",
"color": "<string>",
"team_id": "<string>",
"email_address": "<string>",
"created_by": "<string>",
"updated_by": "<string>",
"team": {
"name": "<string>",
"is_all_users": true,
"default_member_role": "admin",
"sso_groups": [
{
"sso_group_name": "<string>",
"role": "admin"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "<string>",
"permission_entity": {
"type": "select_organization",
"id": "<string>",
"display_name": "<string>",
"usage_group_details": {
"set_name": "<string>",
"group_name": "<string>"
},
"parent_id": "<string>"
}
}
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}Create a saved view
curl --request POST \
--url https://api.select.dev/v2/saved-views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"url": "<string>",
"name": "<string>",
"params": "<string>",
"icon": "<string>",
"color": "<string>",
"team_id": "<string>",
"is_personal": false
}
'import requests
url = "https://api.select.dev/v2/saved-views"
payload = {
"url": "<string>",
"name": "<string>",
"params": "<string>",
"icon": "<string>",
"color": "<string>",
"team_id": "<string>",
"is_personal": False
}
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '<string>',
name: '<string>',
params: '<string>',
icon: '<string>',
color: '<string>',
team_id: '<string>',
is_personal: false
})
};
fetch('https://api.select.dev/v2/saved-views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.select.dev/v2/saved-views",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'name' => '<string>',
'params' => '<string>',
'icon' => '<string>',
'color' => '<string>',
'team_id' => '<string>',
'is_personal' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-tenant-id: <x-tenant-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.select.dev/v2/saved-views"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"name\": \"<string>\",\n \"params\": \"<string>\",\n \"icon\": \"<string>\",\n \"color\": \"<string>\",\n \"team_id\": \"<string>\",\n \"is_personal\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.select.dev/v2/saved-views")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"name\": \"<string>\",\n \"params\": \"<string>\",\n \"icon\": \"<string>\",\n \"color\": \"<string>\",\n \"team_id\": \"<string>\",\n \"is_personal\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/saved-views")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"name\": \"<string>\",\n \"params\": \"<string>\",\n \"icon\": \"<string>\",\n \"color\": \"<string>\",\n \"team_id\": \"<string>\",\n \"is_personal\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"etag": "<string>",
"url": "<string>",
"name": "<string>",
"params": "<string>",
"is_personal": true,
"create_time": "<string>",
"update_time": "<string>",
"view_type": "<string>",
"page": "<string>",
"icon": "<string>",
"color": "<string>",
"team_id": "<string>",
"email_address": "<string>",
"created_by": "<string>",
"updated_by": "<string>",
"team": {
"name": "<string>",
"is_all_users": true,
"default_member_role": "admin",
"sso_groups": [
{
"sso_group_name": "<string>",
"role": "admin"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "<string>",
"permission_entity": {
"type": "select_organization",
"id": "<string>",
"display_name": "<string>",
"usage_group_details": {
"set_name": "<string>",
"group_name": "<string>"
},
"parent_id": "<string>"
}
}
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}Authorizations
Organization API key (sl_…).
Headers
The organization ID the request is scoped to.
Body
The URL path this saved view represents.
Display name for the saved view.
Serialized filter/query parameters.
Identifier of an icon from SELECT's icon set, e.g. Storage or CircleStar. Not validated against the set; an unrecognized value falls back to a default icon in the UI.
Color name, e.g. Red, Green, or Blue (not a hex code). Not validated against a fixed palette; an unrecognized value falls back to a default color in the UI.
Team to assign this view to.
Whether this is a personal view owned by the creating user.
Response
Successful Response
The unique identifier of the saved view.
Opaque strong ETag for this saved view. Matches the ETag response header, and changes whenever any field on the saved view changes.
The URL path this saved view represents.
Display name for the saved view.
Serialized filter/query parameters.
Whether this is a personal view, owned only by email_address.
When the saved view was created.
When the saved view was last changed.
The ownership type: Public, Personal, or Team.
The page segment of the view URL.
Identifier of an icon from SELECT's icon set, e.g. Storage or CircleStar. Not validated against the set; an unrecognized value falls back to a default icon in the UI.
Color name, e.g. Red, Green, or Blue (not a hex code). Not validated against a fixed palette; an unrecognized value falls back to a default color in the UI.
Team that owns this view, if team-scoped.
Owner email, if this is a personal view.
Email of the user who created this view.
Email of the user who last updated this view.
Team details, when the view is team-scoped.
Show child attributes
Show child attributes

