Update my settings
curl --request PATCH \
--url https://{tenant}.cubecloud.dev/api/v1/users/me/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"alternatingRowColors": true,
"defaultDeploymentId": 123,
"lastSeenChangelogId": 123,
"locale": "<string>",
"sheets": {
"autoRunQueryOnChange": true,
"openExplorationFromSheet": true,
"revealSheetOnOpen": true,
"showAppliedFilters": true,
"suppressDuplicateValues": true
},
"theme": "<string>",
"timezone": "<string>"
}
'import requests
url = "https://{tenant}.cubecloud.dev/api/v1/users/me/settings"
payload = {
"alternatingRowColors": True,
"defaultDeploymentId": 123,
"lastSeenChangelogId": 123,
"locale": "<string>",
"sheets": {
"autoRunQueryOnChange": True,
"openExplorationFromSheet": True,
"revealSheetOnOpen": True,
"showAppliedFilters": True,
"suppressDuplicateValues": True
},
"theme": "<string>",
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alternatingRowColors: true,
defaultDeploymentId: 123,
lastSeenChangelogId: 123,
locale: '<string>',
sheets: {
autoRunQueryOnChange: true,
openExplorationFromSheet: true,
revealSheetOnOpen: true,
showAppliedFilters: true,
suppressDuplicateValues: true
},
theme: '<string>',
timezone: '<string>'
})
};
fetch('https://{tenant}.cubecloud.dev/api/v1/users/me/settings', 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://{tenant}.cubecloud.dev/api/v1/users/me/settings",
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([
'alternatingRowColors' => true,
'defaultDeploymentId' => 123,
'lastSeenChangelogId' => 123,
'locale' => '<string>',
'sheets' => [
'autoRunQueryOnChange' => true,
'openExplorationFromSheet' => true,
'revealSheetOnOpen' => true,
'showAppliedFilters' => true,
'suppressDuplicateValues' => true
],
'theme' => '<string>',
'timezone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://{tenant}.cubecloud.dev/api/v1/users/me/settings"
payload := strings.NewReader("{\n \"alternatingRowColors\": true,\n \"defaultDeploymentId\": 123,\n \"lastSeenChangelogId\": 123,\n \"locale\": \"<string>\",\n \"sheets\": {\n \"autoRunQueryOnChange\": true,\n \"openExplorationFromSheet\": true,\n \"revealSheetOnOpen\": true,\n \"showAppliedFilters\": true,\n \"suppressDuplicateValues\": true\n },\n \"theme\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://{tenant}.cubecloud.dev/api/v1/users/me/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alternatingRowColors\": true,\n \"defaultDeploymentId\": 123,\n \"lastSeenChangelogId\": 123,\n \"locale\": \"<string>\",\n \"sheets\": {\n \"autoRunQueryOnChange\": true,\n \"openExplorationFromSheet\": true,\n \"revealSheetOnOpen\": true,\n \"showAppliedFilters\": true,\n \"suppressDuplicateValues\": true\n },\n \"theme\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.cubecloud.dev/api/v1/users/me/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alternatingRowColors\": true,\n \"defaultDeploymentId\": 123,\n \"lastSeenChangelogId\": 123,\n \"locale\": \"<string>\",\n \"sheets\": {\n \"autoRunQueryOnChange\": true,\n \"openExplorationFromSheet\": true,\n \"revealSheetOnOpen\": true,\n \"showAppliedFilters\": true,\n \"suppressDuplicateValues\": true\n },\n \"theme\": \"<string>\",\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"email": "<string>",
"id": 123,
"isAdmin": true,
"notifications": {},
"username": "<string>",
"activeRoleId": 123,
"aliases": [
{
"createdAt": "<string>",
"id": 123,
"source": "ldap",
"updatedAt": "<string>",
"userId": 123,
"username": "<string>"
}
],
"createdAt": "2023-12-25",
"defaultRoles": [
"<string>"
],
"externalId": "<string>",
"firstName": "<string>",
"gitUser": "<string>",
"impersonation": {
"expiresAt": "2023-12-25",
"impersonatedUser": null,
"startedAt": "2023-12-25"
},
"isDeactivated": true,
"lastLogin": "2023-12-25",
"picture": "<string>",
"samlId": "<string>",
"settings": {
"alternatingRowColors": true,
"defaultDeploymentId": 123,
"lastSeenChangelogId": 123,
"locale": "<string>",
"sheets": {
"autoRunQueryOnChange": true,
"openExplorationFromSheet": true,
"revealSheetOnOpen": true,
"showAppliedFilters": true,
"suppressDuplicateValues": true
},
"theme": "<string>",
"timezone": "<string>"
},
"title": "<string>",
"tosAccepted": {},
"updatedAt": "2023-12-25",
"userPolicies": [
{
"actions": [
"All"
],
"resourceType": "Global",
"resources": [
"<string>"
]
}
]
}Users
Update my settings
PATCH
/
api
/
v1
/
users
/
me
/
settings
Update my settings
curl --request PATCH \
--url https://{tenant}.cubecloud.dev/api/v1/users/me/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"alternatingRowColors": true,
"defaultDeploymentId": 123,
"lastSeenChangelogId": 123,
"locale": "<string>",
"sheets": {
"autoRunQueryOnChange": true,
"openExplorationFromSheet": true,
"revealSheetOnOpen": true,
"showAppliedFilters": true,
"suppressDuplicateValues": true
},
"theme": "<string>",
"timezone": "<string>"
}
'import requests
url = "https://{tenant}.cubecloud.dev/api/v1/users/me/settings"
payload = {
"alternatingRowColors": True,
"defaultDeploymentId": 123,
"lastSeenChangelogId": 123,
"locale": "<string>",
"sheets": {
"autoRunQueryOnChange": True,
"openExplorationFromSheet": True,
"revealSheetOnOpen": True,
"showAppliedFilters": True,
"suppressDuplicateValues": True
},
"theme": "<string>",
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alternatingRowColors: true,
defaultDeploymentId: 123,
lastSeenChangelogId: 123,
locale: '<string>',
sheets: {
autoRunQueryOnChange: true,
openExplorationFromSheet: true,
revealSheetOnOpen: true,
showAppliedFilters: true,
suppressDuplicateValues: true
},
theme: '<string>',
timezone: '<string>'
})
};
fetch('https://{tenant}.cubecloud.dev/api/v1/users/me/settings', 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://{tenant}.cubecloud.dev/api/v1/users/me/settings",
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([
'alternatingRowColors' => true,
'defaultDeploymentId' => 123,
'lastSeenChangelogId' => 123,
'locale' => '<string>',
'sheets' => [
'autoRunQueryOnChange' => true,
'openExplorationFromSheet' => true,
'revealSheetOnOpen' => true,
'showAppliedFilters' => true,
'suppressDuplicateValues' => true
],
'theme' => '<string>',
'timezone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://{tenant}.cubecloud.dev/api/v1/users/me/settings"
payload := strings.NewReader("{\n \"alternatingRowColors\": true,\n \"defaultDeploymentId\": 123,\n \"lastSeenChangelogId\": 123,\n \"locale\": \"<string>\",\n \"sheets\": {\n \"autoRunQueryOnChange\": true,\n \"openExplorationFromSheet\": true,\n \"revealSheetOnOpen\": true,\n \"showAppliedFilters\": true,\n \"suppressDuplicateValues\": true\n },\n \"theme\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://{tenant}.cubecloud.dev/api/v1/users/me/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alternatingRowColors\": true,\n \"defaultDeploymentId\": 123,\n \"lastSeenChangelogId\": 123,\n \"locale\": \"<string>\",\n \"sheets\": {\n \"autoRunQueryOnChange\": true,\n \"openExplorationFromSheet\": true,\n \"revealSheetOnOpen\": true,\n \"showAppliedFilters\": true,\n \"suppressDuplicateValues\": true\n },\n \"theme\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.cubecloud.dev/api/v1/users/me/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alternatingRowColors\": true,\n \"defaultDeploymentId\": 123,\n \"lastSeenChangelogId\": 123,\n \"locale\": \"<string>\",\n \"sheets\": {\n \"autoRunQueryOnChange\": true,\n \"openExplorationFromSheet\": true,\n \"revealSheetOnOpen\": true,\n \"showAppliedFilters\": true,\n \"suppressDuplicateValues\": true\n },\n \"theme\": \"<string>\",\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"email": "<string>",
"id": 123,
"isAdmin": true,
"notifications": {},
"username": "<string>",
"activeRoleId": 123,
"aliases": [
{
"createdAt": "<string>",
"id": 123,
"source": "ldap",
"updatedAt": "<string>",
"userId": 123,
"username": "<string>"
}
],
"createdAt": "2023-12-25",
"defaultRoles": [
"<string>"
],
"externalId": "<string>",
"firstName": "<string>",
"gitUser": "<string>",
"impersonation": {
"expiresAt": "2023-12-25",
"impersonatedUser": null,
"startedAt": "2023-12-25"
},
"isDeactivated": true,
"lastLogin": "2023-12-25",
"picture": "<string>",
"samlId": "<string>",
"settings": {
"alternatingRowColors": true,
"defaultDeploymentId": 123,
"lastSeenChangelogId": 123,
"locale": "<string>",
"sheets": {
"autoRunQueryOnChange": true,
"openExplorationFromSheet": true,
"revealSheetOnOpen": true,
"showAppliedFilters": true,
"suppressDuplicateValues": true
},
"theme": "<string>",
"timezone": "<string>"
},
"title": "<string>",
"tosAccepted": {},
"updatedAt": "2023-12-25",
"userPolicies": [
{
"actions": [
"All"
],
"resourceType": "Global",
"resources": [
"<string>"
]
}
]
}Merge a partial patch into the authenticated user’s own settings. Omitted fields are left as they are;
sheets merges field-by-field, and an explicit null clears it.Authorizations
Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.
Body
application/json
UserSettings
Deprecated and ignored. The changelog now arrives in the notification inbox, which carries its own read state. Accepted for backward compatibility but never read or written.
Show child attributes
Show child attributes
Response
200 - application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The caller's effective resource policies: direct grants, organization-wide grants, and grants inherited from their groups. Only populated by GET /api/v1/users/me.
Show child attributes
Show child attributes