Skip to content

Commit f360fd7

Browse files
minor edits and typo fixes
1 parent 9280b0f commit f360fd7

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

modules/ROOT/pages/locale-setting.adoc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,19 @@ ThoughtSpot application users can set their locale preference on the Profile set
101101
For more information, see link:https://docs.thoughtspot.com/cloud/latest/locale[ThoughtSpot Product Documentation, window=_blank].
102102

103103
== Set locale via REST API
104-
The following REST API v1 and v2 endpoints allow updating locale preference for ThoughtSpot users:
104+
To configure locale settings for a user via REST API, ThoughtSpot administrator can use the `"use_browser_language": true` or `"preferred_locale": "en-US"` settings when creating, importing, or updating user using the following API endpoints:
105105

106-
* +++<a href="{{navprefix}}/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fusers%2Fupdate-user">POST /api/rest/2.0/users/{user_identifier}/update </a>+++
107-
* +++<a href="{{navprefix}}/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fusers%2Fcreate-user"> POST /api/rest/2.0/users/create</a>+++
108-
* xref:user-api.adoc#updatepreference-api[POST /tspublic/v1/user/updatepreference]
106+
* +++<a href="{{navprefix}}/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fusers%2Fcreate-user"> POST /api/rest/2.0/users/create</a>+++ (user creation)
107+
* +++<a href="{{navprefix}}/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fusers%2Fupdate-user">POST /api/rest/2.0/users/{user_identifier}/update </a>+++ (User update)
108+
* +++<a href="{{navprefix}}/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fusers%2Fimport-users"> POST /api/rest/2.0/users/import</a>+++ (User import)
109+
110+
The `preferred_locale` parameter allows assigning a specific locale to the user, whereas the `use_browser_language` parameter determines whether the user's language preference should be set based on their browser's language settings. When both parameters are defined, the user's current locale preference is overridden and the browser's language takes precedence.
111+
112+
To get details of the browser language settings for a given user, administrators can use the following API endpoints:
113+
114+
* `POST /api/rest/2.0/users/search` +
115+
* `POST /api/rest/2.0/users/activate` +
116+
* `GET /api/rest/2.0/auth/session/user` +
109117

110118
== Limitations
111119

modules/ROOT/pages/rest-apiv2-changelog.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ To update the properties of a specific variable, use the `/api/rest/2.0/template
184184
==== Variables search API
185185

186186
* The variables search API endpoint `/api/rest/2.0/template/variables/search` now includes the `value_scope` parameter that allows you to filter the API response by the objects to which the variable is mapped.
187-
* Filtering API response by `EDITABLE_METADATA_AND_VALUES` output format is no longer supported.
187+
* Filtering API response by `EDITABLE_METADATA_AND_VALUES` is no longer supported.
188188

189189

190190
=== User API enhancements

modules/ROOT/pages/whats-new.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ For more information, see xref:code-based-custom-actions.adoc[Code based custom
204204
You can now configure a xref:webhooks-lb-schedule.adoc[webhook for Liveboard schedule events] to automate notifications to external applications. This feature allows you to send Liveboard reports directly to a webhook endpoint and create your own custom emails or workflow.
205205
206206
This feature is currently in beta and is not enabled by default. To enable it on your instance, contact ThoughtSpot Support.
207+
====
207208

208209
=== Template variables for publishing
209210
The variable APIs include several enhancements to streamline variable creation and update workflows.

0 commit comments

Comments
 (0)