curl --request PATCH \
--url https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"config": {
"query_class": "<string>",
"title": "<string>",
"block_type": "big_number",
"display": {
"metric": "<string>",
"previous_period_comparison": "none"
},
"description": "",
"tooltip": "",
"query_scope": {
"filters": []
}
}
}
'import requests
url = "https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}"
payload = { "config": {
"query_class": "<string>",
"title": "<string>",
"block_type": "big_number",
"display": {
"metric": "<string>",
"previous_period_comparison": "none"
},
"description": "",
"tooltip": "",
"query_scope": { "filters": [] }
} }
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
config: {
query_class: '<string>',
title: '<string>',
block_type: 'big_number',
display: {metric: '<string>', previous_period_comparison: 'none'},
description: '',
tooltip: '',
query_scope: {filters: []}
}
})
};
fetch('https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}', 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/dashboards/{dashboard_id}/blocks/{block_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'config' => [
'query_class' => '<string>',
'title' => '<string>',
'block_type' => 'big_number',
'display' => [
'metric' => '<string>',
'previous_period_comparison' => 'none'
],
'description' => '',
'tooltip' => '',
'query_scope' => [
'filters' => [
]
]
]
]),
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/dashboards/{dashboard_id}/blocks/{block_id}"
payload := strings.NewReader("{\n \"config\": {\n \"query_class\": \"<string>\",\n \"title\": \"<string>\",\n \"block_type\": \"big_number\",\n \"display\": {\n \"metric\": \"<string>\",\n \"previous_period_comparison\": \"none\"\n },\n \"description\": \"\",\n \"tooltip\": \"\",\n \"query_scope\": {\n \"filters\": []\n }\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"query_class\": \"<string>\",\n \"title\": \"<string>\",\n \"block_type\": \"big_number\",\n \"display\": {\n \"metric\": \"<string>\",\n \"previous_period_comparison\": \"none\"\n },\n \"description\": \"\",\n \"tooltip\": \"\",\n \"query_scope\": {\n \"filters\": []\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"query_class\": \"<string>\",\n \"title\": \"<string>\",\n \"block_type\": \"big_number\",\n \"display\": {\n \"metric\": \"<string>\",\n \"previous_period_comparison\": \"none\"\n },\n \"description\": \"\",\n \"tooltip\": \"\",\n \"query_scope\": {\n \"filters\": []\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"config": {
"query_class": "<string>",
"title": "<string>",
"block_type": "big_number",
"display": {
"metric": "<string>",
"previous_period_comparison": "none"
},
"description": "",
"tooltip": "",
"query_scope": {
"filters": []
}
},
"create_time": "<string>",
"update_time": "<string>",
"etag": "<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": [
{}
]
}{
"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": [
{}
]
}Update a block
Applies a merge patch to a block. Omitted fields remain unchanged. config is replaced as a whole rather than merged field by field, so send the complete configuration the block should end up with.
curl --request PATCH \
--url https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"config": {
"query_class": "<string>",
"title": "<string>",
"block_type": "big_number",
"display": {
"metric": "<string>",
"previous_period_comparison": "none"
},
"description": "",
"tooltip": "",
"query_scope": {
"filters": []
}
}
}
'import requests
url = "https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}"
payload = { "config": {
"query_class": "<string>",
"title": "<string>",
"block_type": "big_number",
"display": {
"metric": "<string>",
"previous_period_comparison": "none"
},
"description": "",
"tooltip": "",
"query_scope": { "filters": [] }
} }
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
config: {
query_class: '<string>',
title: '<string>',
block_type: 'big_number',
display: {metric: '<string>', previous_period_comparison: 'none'},
description: '',
tooltip: '',
query_scope: {filters: []}
}
})
};
fetch('https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}', 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/dashboards/{dashboard_id}/blocks/{block_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'config' => [
'query_class' => '<string>',
'title' => '<string>',
'block_type' => 'big_number',
'display' => [
'metric' => '<string>',
'previous_period_comparison' => 'none'
],
'description' => '',
'tooltip' => '',
'query_scope' => [
'filters' => [
]
]
]
]),
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/dashboards/{dashboard_id}/blocks/{block_id}"
payload := strings.NewReader("{\n \"config\": {\n \"query_class\": \"<string>\",\n \"title\": \"<string>\",\n \"block_type\": \"big_number\",\n \"display\": {\n \"metric\": \"<string>\",\n \"previous_period_comparison\": \"none\"\n },\n \"description\": \"\",\n \"tooltip\": \"\",\n \"query_scope\": {\n \"filters\": []\n }\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"query_class\": \"<string>\",\n \"title\": \"<string>\",\n \"block_type\": \"big_number\",\n \"display\": {\n \"metric\": \"<string>\",\n \"previous_period_comparison\": \"none\"\n },\n \"description\": \"\",\n \"tooltip\": \"\",\n \"query_scope\": {\n \"filters\": []\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/dashboards/{dashboard_id}/blocks/{block_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"query_class\": \"<string>\",\n \"title\": \"<string>\",\n \"block_type\": \"big_number\",\n \"display\": {\n \"metric\": \"<string>\",\n \"previous_period_comparison\": \"none\"\n },\n \"description\": \"\",\n \"tooltip\": \"\",\n \"query_scope\": {\n \"filters\": []\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"config": {
"query_class": "<string>",
"title": "<string>",
"block_type": "big_number",
"display": {
"metric": "<string>",
"previous_period_comparison": "none"
},
"description": "",
"tooltip": "",
"query_scope": {
"filters": []
}
},
"create_time": "<string>",
"update_time": "<string>",
"etag": "<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": [
{}
]
}{
"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 block's current ETag.
The organization ID the request is scoped to.
Body
Changes to apply to a block.
Omitted fields remain unchanged. config is replaced as a whole rather than
merged field by field, so send the complete configuration you want the block
to end up with.
What the block shows and how it is displayed. Cannot be null.
- BigNumberBlockConfig
- ChartBlockConfig
- BarListBlockConfig
- TableBlockConfig
- FeedBlockConfig
- TextBlockConfig
- EntityCardBlockConfig
Show child attributes
Show child attributes
Response
Successful Response
A single unit of content on a dashboard, such as a chart, table, or note.
The unique identifier of the block.
What the block shows and how it is displayed.
- BigNumberBlockConfig
- ChartBlockConfig
- BarListBlockConfig
- TableBlockConfig
- FeedBlockConfig
- TextBlockConfig
- EntityCardBlockConfig
Show child attributes
Show child attributes
When the block was created, as an RFC 3339 UTC timestamp.
When the block was last changed, as an RFC 3339 UTC timestamp.
Opaque strong ETag. Supply it in an If-Match header when changing or deleting the block.

