import { Textql } from "@textql/sdk";
const textql = new Textql({
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
const result = await textql.settings.update({
body: {},
});
console.log(result);
}
run();import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.settings.update()
# Handle response
print(res)curl --request POST \
--url https://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings \
--header 'Connect-Protocol-Version: <connect-protocol-version>' \
--header 'Content-Type: application/json' \
--header 'tql_api_key: <api-key>' \
--data '
{
"orgId": "<string>",
"secretsEnabled": true,
"hideExampleConnectors": true,
"paradigmParams": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"defaultConnectorIds": [
123
],
"trainingMode": true,
"dashboardsEnabled": true,
"methodologyEnabled": true,
"feedEnabled": true,
"contextV3Enabled": true,
"clearEnabledModelIds": true,
"clearRestrictedModelIds": true,
"enabledModels": [],
"restrictedModels": [],
"observabilityEnabled": true,
"notificationsEnabled": true,
"hideApiConnectors": true,
"fastModeEnabled": true,
"maxThinkingEnabled": true,
"configurableThinkingEnabled": true,
"clearDefaultConnectorIds": true,
"voiceInputEnabled": true,
"defaultDashboardOutput": true,
"tracesEnabled": true,
"sandboxObservabilityEnabled": true,
"dataAppsEnabled": true,
"issuesEnabled": true,
"spendTransparencyEnabled": true,
"sharingDisabled": true,
"toolRestrictions": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"subagentsEnabled": true
}
'const options = {
method: 'POST',
headers: {
'Connect-Protocol-Version': '<connect-protocol-version>',
tql_api_key: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
orgId: '<string>',
secretsEnabled: true,
hideExampleConnectors: true,
paradigmParams: {
webSearchEnabled: true,
sqlEnabled: true,
ontologyEnabled: true,
pythonEnabled: true,
powerbiEnabled: true,
googleDriveEnabled: true,
formEditorEnabled: true,
tableauEnabled: true,
fileUploadEnabled: true,
multipleConnectorMode: true,
playbookToolsEnabled: true,
microsoft365Enabled: true,
bashEnabled: true,
javascriptEnabled: true,
modelSwitchingEnabled: true,
feedExplorerEnabled: true,
feedPostEnabled: true,
feedCommentEnabled: true,
feedEngageEnabled: true,
compactionDisabled: true,
gmailEnabled: true,
chatHistorySearchEnabled: true,
googleCalendarEnabled: true,
parallelToolsEnabled: true,
emailOutputEnabled: true,
questionsToolEnabled: true,
powerbiSelections: [
{
workspaceId: '<string>',
reportIds: ['<string>'],
datasetIds: ['<string>'],
workspaceName: '<string>',
connectorId: 123
}
],
datasetId: '<string>'
},
defaultConnectorIds: [123],
trainingMode: true,
dashboardsEnabled: true,
methodologyEnabled: true,
feedEnabled: true,
contextV3Enabled: true,
clearEnabledModelIds: true,
clearRestrictedModelIds: true,
enabledModels: [],
restrictedModels: [],
observabilityEnabled: true,
notificationsEnabled: true,
hideApiConnectors: true,
fastModeEnabled: true,
maxThinkingEnabled: true,
configurableThinkingEnabled: true,
clearDefaultConnectorIds: true,
voiceInputEnabled: true,
defaultDashboardOutput: true,
tracesEnabled: true,
sandboxObservabilityEnabled: true,
dataAppsEnabled: true,
issuesEnabled: true,
spendTransparencyEnabled: true,
sharingDisabled: true,
toolRestrictions: {
webSearchEnabled: true,
sqlEnabled: true,
ontologyEnabled: true,
pythonEnabled: true,
powerbiEnabled: true,
googleDriveEnabled: true,
formEditorEnabled: true,
tableauEnabled: true,
fileUploadEnabled: true,
multipleConnectorMode: true,
playbookToolsEnabled: true,
microsoft365Enabled: true,
bashEnabled: true,
javascriptEnabled: true,
modelSwitchingEnabled: true,
feedExplorerEnabled: true,
feedPostEnabled: true,
feedCommentEnabled: true,
feedEngageEnabled: true,
compactionDisabled: true,
gmailEnabled: true,
chatHistorySearchEnabled: true,
googleCalendarEnabled: true,
parallelToolsEnabled: true,
emailOutputEnabled: true,
questionsToolEnabled: true,
powerbiSelections: [
{
workspaceId: '<string>',
reportIds: ['<string>'],
datasetIds: ['<string>'],
workspaceName: '<string>',
connectorId: 123
}
],
datasetId: '<string>'
},
subagentsEnabled: true
})
};
fetch('https://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings', 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://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings",
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([
'orgId' => '<string>',
'secretsEnabled' => true,
'hideExampleConnectors' => true,
'paradigmParams' => [
'webSearchEnabled' => true,
'sqlEnabled' => true,
'ontologyEnabled' => true,
'pythonEnabled' => true,
'powerbiEnabled' => true,
'googleDriveEnabled' => true,
'formEditorEnabled' => true,
'tableauEnabled' => true,
'fileUploadEnabled' => true,
'multipleConnectorMode' => true,
'playbookToolsEnabled' => true,
'microsoft365Enabled' => true,
'bashEnabled' => true,
'javascriptEnabled' => true,
'modelSwitchingEnabled' => true,
'feedExplorerEnabled' => true,
'feedPostEnabled' => true,
'feedCommentEnabled' => true,
'feedEngageEnabled' => true,
'compactionDisabled' => true,
'gmailEnabled' => true,
'chatHistorySearchEnabled' => true,
'googleCalendarEnabled' => true,
'parallelToolsEnabled' => true,
'emailOutputEnabled' => true,
'questionsToolEnabled' => true,
'powerbiSelections' => [
[
'workspaceId' => '<string>',
'reportIds' => [
'<string>'
],
'datasetIds' => [
'<string>'
],
'workspaceName' => '<string>',
'connectorId' => 123
]
],
'datasetId' => '<string>'
],
'defaultConnectorIds' => [
123
],
'trainingMode' => true,
'dashboardsEnabled' => true,
'methodologyEnabled' => true,
'feedEnabled' => true,
'contextV3Enabled' => true,
'clearEnabledModelIds' => true,
'clearRestrictedModelIds' => true,
'enabledModels' => [
],
'restrictedModels' => [
],
'observabilityEnabled' => true,
'notificationsEnabled' => true,
'hideApiConnectors' => true,
'fastModeEnabled' => true,
'maxThinkingEnabled' => true,
'configurableThinkingEnabled' => true,
'clearDefaultConnectorIds' => true,
'voiceInputEnabled' => true,
'defaultDashboardOutput' => true,
'tracesEnabled' => true,
'sandboxObservabilityEnabled' => true,
'dataAppsEnabled' => true,
'issuesEnabled' => true,
'spendTransparencyEnabled' => true,
'sharingDisabled' => true,
'toolRestrictions' => [
'webSearchEnabled' => true,
'sqlEnabled' => true,
'ontologyEnabled' => true,
'pythonEnabled' => true,
'powerbiEnabled' => true,
'googleDriveEnabled' => true,
'formEditorEnabled' => true,
'tableauEnabled' => true,
'fileUploadEnabled' => true,
'multipleConnectorMode' => true,
'playbookToolsEnabled' => true,
'microsoft365Enabled' => true,
'bashEnabled' => true,
'javascriptEnabled' => true,
'modelSwitchingEnabled' => true,
'feedExplorerEnabled' => true,
'feedPostEnabled' => true,
'feedCommentEnabled' => true,
'feedEngageEnabled' => true,
'compactionDisabled' => true,
'gmailEnabled' => true,
'chatHistorySearchEnabled' => true,
'googleCalendarEnabled' => true,
'parallelToolsEnabled' => true,
'emailOutputEnabled' => true,
'questionsToolEnabled' => true,
'powerbiSelections' => [
[
'workspaceId' => '<string>',
'reportIds' => [
'<string>'
],
'datasetIds' => [
'<string>'
],
'workspaceName' => '<string>',
'connectorId' => 123
]
],
'datasetId' => '<string>'
],
'subagentsEnabled' => true
]),
CURLOPT_HTTPHEADER => [
"Connect-Protocol-Version: <connect-protocol-version>",
"Content-Type: application/json",
"tql_api_key: <api-key>"
],
]);
$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://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings"
payload := strings.NewReader("{\n \"orgId\": \"<string>\",\n \"secretsEnabled\": true,\n \"hideExampleConnectors\": true,\n \"paradigmParams\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"defaultConnectorIds\": [\n 123\n ],\n \"trainingMode\": true,\n \"dashboardsEnabled\": true,\n \"methodologyEnabled\": true,\n \"feedEnabled\": true,\n \"contextV3Enabled\": true,\n \"clearEnabledModelIds\": true,\n \"clearRestrictedModelIds\": true,\n \"enabledModels\": [],\n \"restrictedModels\": [],\n \"observabilityEnabled\": true,\n \"notificationsEnabled\": true,\n \"hideApiConnectors\": true,\n \"fastModeEnabled\": true,\n \"maxThinkingEnabled\": true,\n \"configurableThinkingEnabled\": true,\n \"clearDefaultConnectorIds\": true,\n \"voiceInputEnabled\": true,\n \"defaultDashboardOutput\": true,\n \"tracesEnabled\": true,\n \"sandboxObservabilityEnabled\": true,\n \"dataAppsEnabled\": true,\n \"issuesEnabled\": true,\n \"spendTransparencyEnabled\": true,\n \"sharingDisabled\": true,\n \"toolRestrictions\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"subagentsEnabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Connect-Protocol-Version", "<connect-protocol-version>")
req.Header.Add("tql_api_key", "<api-key>")
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://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings")
.header("Connect-Protocol-Version", "<connect-protocol-version>")
.header("tql_api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orgId\": \"<string>\",\n \"secretsEnabled\": true,\n \"hideExampleConnectors\": true,\n \"paradigmParams\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"defaultConnectorIds\": [\n 123\n ],\n \"trainingMode\": true,\n \"dashboardsEnabled\": true,\n \"methodologyEnabled\": true,\n \"feedEnabled\": true,\n \"contextV3Enabled\": true,\n \"clearEnabledModelIds\": true,\n \"clearRestrictedModelIds\": true,\n \"enabledModels\": [],\n \"restrictedModels\": [],\n \"observabilityEnabled\": true,\n \"notificationsEnabled\": true,\n \"hideApiConnectors\": true,\n \"fastModeEnabled\": true,\n \"maxThinkingEnabled\": true,\n \"configurableThinkingEnabled\": true,\n \"clearDefaultConnectorIds\": true,\n \"voiceInputEnabled\": true,\n \"defaultDashboardOutput\": true,\n \"tracesEnabled\": true,\n \"sandboxObservabilityEnabled\": true,\n \"dataAppsEnabled\": true,\n \"issuesEnabled\": true,\n \"spendTransparencyEnabled\": true,\n \"sharingDisabled\": true,\n \"toolRestrictions\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"subagentsEnabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Connect-Protocol-Version"] = '<connect-protocol-version>'
request["tql_api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orgId\": \"<string>\",\n \"secretsEnabled\": true,\n \"hideExampleConnectors\": true,\n \"paradigmParams\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"defaultConnectorIds\": [\n 123\n ],\n \"trainingMode\": true,\n \"dashboardsEnabled\": true,\n \"methodologyEnabled\": true,\n \"feedEnabled\": true,\n \"contextV3Enabled\": true,\n \"clearEnabledModelIds\": true,\n \"clearRestrictedModelIds\": true,\n \"enabledModels\": [],\n \"restrictedModels\": [],\n \"observabilityEnabled\": true,\n \"notificationsEnabled\": true,\n \"hideApiConnectors\": true,\n \"fastModeEnabled\": true,\n \"maxThinkingEnabled\": true,\n \"configurableThinkingEnabled\": true,\n \"clearDefaultConnectorIds\": true,\n \"voiceInputEnabled\": true,\n \"defaultDashboardOutput\": true,\n \"tracesEnabled\": true,\n \"sandboxObservabilityEnabled\": true,\n \"dataAppsEnabled\": true,\n \"issuesEnabled\": true,\n \"spendTransparencyEnabled\": true,\n \"sharingDisabled\": true,\n \"toolRestrictions\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"subagentsEnabled\": true\n}"
response = http.request(request)
puts response.read_body{
"organization": {
"orgId": "<string>",
"slackTeamId": "<string>",
"slackKey": "<string>",
"defaultConnectorId": 123,
"limitDataVisibility": true,
"requireAttached": true,
"organizationName": "<string>",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"organizationLogoUrl": "<string>",
"emailAllowedDomains": [
"<string>"
],
"allowedAuthMethods": [
"<string>"
],
"theme": {
"bg": "<string>",
"headerBg": "<string>",
"cardBg": "<string>",
"primaryAccent": "<string>",
"cardAccent": "<string>",
"heading": "<string>",
"text": "<string>",
"cardHeading": "<string>",
"cardText": "<string>",
"logoUrl": "<string>",
"docsUrl": "<string>"
},
"orgMeta": "<string>",
"injectWholeOntologyDisableSearch": true,
"warning": "<string>",
"publicPreview": true,
"chatV5Cutover": true,
"defaultParadigmMode": "TYPE_UNKNOWN",
"secretsEnabled": true,
"emailPollingEnabled": true,
"logoUrl": "<string>",
"brandName": "<string>",
"paradigmParams": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"defaultLlmModel": 123,
"preferredProvider": "<string>",
"systemDefaultModel": 123,
"toolRestrictions": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"consoleAccess": true,
"defaultConnectorIds": [
123
],
"hideToolCells": true,
"disableEmojis": true,
"hideExampleConnectors": true,
"trainingMode": true,
"dashboardsEnabled": true,
"billingAdminId": "<string>",
"methodologyEnabled": true,
"allowAllApiAccess": true,
"feedEnabled": true,
"contextV3Enabled": true,
"bashEnabled": true,
"defaultRoutingEnabled": true,
"enabledModelIds": [
123
],
"restrictedModelIds": [
123
],
"restrictedFamilies": [
"<string>"
],
"discoverable": true,
"observabilityEnabled": true,
"notificationsEnabled": true,
"clientDbOverrideEnabled": true,
"contextReviewRequired": true,
"googleConnectorEnabled": true,
"hideApiConnectors": true,
"fastModeEnabled": true,
"maxThinkingEnabled": true,
"configurableThinkingEnabled": true,
"sandboxStateRetentionDays": 123,
"sandboxLeaseConfigEnabled": true,
"voiceInputEnabled": true,
"deleteInactiveThreadsEnabled": true,
"threadRetentionDays": 123,
"threadHardDeleteGraceDays": 123,
"deleteInactiveAppsEnabled": true,
"appRetentionDays": 123,
"appHardDeleteGraceDays": 123,
"assetUrlExpiry": "EXPIRY_NONE",
"emailOutputEnabled": true,
"defaultPlaybookPrivate": true,
"defaultDashboardOutput": true,
"defaultMethodology": 123,
"scimNewGroupDefaultRoleType": "<string>",
"groupsFeatureEnabled": true,
"availableProviders": [
"<string>"
],
"showTextqlUsage": true,
"tracesEnabled": true,
"allowLlmDataRetention": true,
"soxDbSessionMetadataEnabled": true,
"smsEnabled": true,
"scimAssignDefaultRole": true,
"migrationBannerDismissed": true,
"configMigrationsEnabled": true,
"sandboxObservabilityEnabled": true,
"dataAppsEnabled": true,
"issuesEnabled": true,
"configObjectsEnabled": true,
"configObjectsPlaybooksEnabled": true,
"configObjectsDashboardsEnabled": true,
"configAutofixEnabled": true,
"helmChartVersion": "<string>",
"spendTransparencyEnabled": true,
"sharingDisabled": true,
"appWritebackAutoApproveEnabled": true,
"subagentsEnabled": true
}
}{
"code": "not_found",
"message": "<string>",
"details": [
{
"type": "<string>",
"value": "<string>",
"debug": {}
}
]
}Update Organization Settings
import { Textql } from "@textql/sdk";
const textql = new Textql({
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
const result = await textql.settings.update({
body: {},
});
console.log(result);
}
run();import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.settings.update()
# Handle response
print(res)curl --request POST \
--url https://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings \
--header 'Connect-Protocol-Version: <connect-protocol-version>' \
--header 'Content-Type: application/json' \
--header 'tql_api_key: <api-key>' \
--data '
{
"orgId": "<string>",
"secretsEnabled": true,
"hideExampleConnectors": true,
"paradigmParams": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"defaultConnectorIds": [
123
],
"trainingMode": true,
"dashboardsEnabled": true,
"methodologyEnabled": true,
"feedEnabled": true,
"contextV3Enabled": true,
"clearEnabledModelIds": true,
"clearRestrictedModelIds": true,
"enabledModels": [],
"restrictedModels": [],
"observabilityEnabled": true,
"notificationsEnabled": true,
"hideApiConnectors": true,
"fastModeEnabled": true,
"maxThinkingEnabled": true,
"configurableThinkingEnabled": true,
"clearDefaultConnectorIds": true,
"voiceInputEnabled": true,
"defaultDashboardOutput": true,
"tracesEnabled": true,
"sandboxObservabilityEnabled": true,
"dataAppsEnabled": true,
"issuesEnabled": true,
"spendTransparencyEnabled": true,
"sharingDisabled": true,
"toolRestrictions": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"subagentsEnabled": true
}
'const options = {
method: 'POST',
headers: {
'Connect-Protocol-Version': '<connect-protocol-version>',
tql_api_key: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
orgId: '<string>',
secretsEnabled: true,
hideExampleConnectors: true,
paradigmParams: {
webSearchEnabled: true,
sqlEnabled: true,
ontologyEnabled: true,
pythonEnabled: true,
powerbiEnabled: true,
googleDriveEnabled: true,
formEditorEnabled: true,
tableauEnabled: true,
fileUploadEnabled: true,
multipleConnectorMode: true,
playbookToolsEnabled: true,
microsoft365Enabled: true,
bashEnabled: true,
javascriptEnabled: true,
modelSwitchingEnabled: true,
feedExplorerEnabled: true,
feedPostEnabled: true,
feedCommentEnabled: true,
feedEngageEnabled: true,
compactionDisabled: true,
gmailEnabled: true,
chatHistorySearchEnabled: true,
googleCalendarEnabled: true,
parallelToolsEnabled: true,
emailOutputEnabled: true,
questionsToolEnabled: true,
powerbiSelections: [
{
workspaceId: '<string>',
reportIds: ['<string>'],
datasetIds: ['<string>'],
workspaceName: '<string>',
connectorId: 123
}
],
datasetId: '<string>'
},
defaultConnectorIds: [123],
trainingMode: true,
dashboardsEnabled: true,
methodologyEnabled: true,
feedEnabled: true,
contextV3Enabled: true,
clearEnabledModelIds: true,
clearRestrictedModelIds: true,
enabledModels: [],
restrictedModels: [],
observabilityEnabled: true,
notificationsEnabled: true,
hideApiConnectors: true,
fastModeEnabled: true,
maxThinkingEnabled: true,
configurableThinkingEnabled: true,
clearDefaultConnectorIds: true,
voiceInputEnabled: true,
defaultDashboardOutput: true,
tracesEnabled: true,
sandboxObservabilityEnabled: true,
dataAppsEnabled: true,
issuesEnabled: true,
spendTransparencyEnabled: true,
sharingDisabled: true,
toolRestrictions: {
webSearchEnabled: true,
sqlEnabled: true,
ontologyEnabled: true,
pythonEnabled: true,
powerbiEnabled: true,
googleDriveEnabled: true,
formEditorEnabled: true,
tableauEnabled: true,
fileUploadEnabled: true,
multipleConnectorMode: true,
playbookToolsEnabled: true,
microsoft365Enabled: true,
bashEnabled: true,
javascriptEnabled: true,
modelSwitchingEnabled: true,
feedExplorerEnabled: true,
feedPostEnabled: true,
feedCommentEnabled: true,
feedEngageEnabled: true,
compactionDisabled: true,
gmailEnabled: true,
chatHistorySearchEnabled: true,
googleCalendarEnabled: true,
parallelToolsEnabled: true,
emailOutputEnabled: true,
questionsToolEnabled: true,
powerbiSelections: [
{
workspaceId: '<string>',
reportIds: ['<string>'],
datasetIds: ['<string>'],
workspaceName: '<string>',
connectorId: 123
}
],
datasetId: '<string>'
},
subagentsEnabled: true
})
};
fetch('https://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings', 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://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings",
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([
'orgId' => '<string>',
'secretsEnabled' => true,
'hideExampleConnectors' => true,
'paradigmParams' => [
'webSearchEnabled' => true,
'sqlEnabled' => true,
'ontologyEnabled' => true,
'pythonEnabled' => true,
'powerbiEnabled' => true,
'googleDriveEnabled' => true,
'formEditorEnabled' => true,
'tableauEnabled' => true,
'fileUploadEnabled' => true,
'multipleConnectorMode' => true,
'playbookToolsEnabled' => true,
'microsoft365Enabled' => true,
'bashEnabled' => true,
'javascriptEnabled' => true,
'modelSwitchingEnabled' => true,
'feedExplorerEnabled' => true,
'feedPostEnabled' => true,
'feedCommentEnabled' => true,
'feedEngageEnabled' => true,
'compactionDisabled' => true,
'gmailEnabled' => true,
'chatHistorySearchEnabled' => true,
'googleCalendarEnabled' => true,
'parallelToolsEnabled' => true,
'emailOutputEnabled' => true,
'questionsToolEnabled' => true,
'powerbiSelections' => [
[
'workspaceId' => '<string>',
'reportIds' => [
'<string>'
],
'datasetIds' => [
'<string>'
],
'workspaceName' => '<string>',
'connectorId' => 123
]
],
'datasetId' => '<string>'
],
'defaultConnectorIds' => [
123
],
'trainingMode' => true,
'dashboardsEnabled' => true,
'methodologyEnabled' => true,
'feedEnabled' => true,
'contextV3Enabled' => true,
'clearEnabledModelIds' => true,
'clearRestrictedModelIds' => true,
'enabledModels' => [
],
'restrictedModels' => [
],
'observabilityEnabled' => true,
'notificationsEnabled' => true,
'hideApiConnectors' => true,
'fastModeEnabled' => true,
'maxThinkingEnabled' => true,
'configurableThinkingEnabled' => true,
'clearDefaultConnectorIds' => true,
'voiceInputEnabled' => true,
'defaultDashboardOutput' => true,
'tracesEnabled' => true,
'sandboxObservabilityEnabled' => true,
'dataAppsEnabled' => true,
'issuesEnabled' => true,
'spendTransparencyEnabled' => true,
'sharingDisabled' => true,
'toolRestrictions' => [
'webSearchEnabled' => true,
'sqlEnabled' => true,
'ontologyEnabled' => true,
'pythonEnabled' => true,
'powerbiEnabled' => true,
'googleDriveEnabled' => true,
'formEditorEnabled' => true,
'tableauEnabled' => true,
'fileUploadEnabled' => true,
'multipleConnectorMode' => true,
'playbookToolsEnabled' => true,
'microsoft365Enabled' => true,
'bashEnabled' => true,
'javascriptEnabled' => true,
'modelSwitchingEnabled' => true,
'feedExplorerEnabled' => true,
'feedPostEnabled' => true,
'feedCommentEnabled' => true,
'feedEngageEnabled' => true,
'compactionDisabled' => true,
'gmailEnabled' => true,
'chatHistorySearchEnabled' => true,
'googleCalendarEnabled' => true,
'parallelToolsEnabled' => true,
'emailOutputEnabled' => true,
'questionsToolEnabled' => true,
'powerbiSelections' => [
[
'workspaceId' => '<string>',
'reportIds' => [
'<string>'
],
'datasetIds' => [
'<string>'
],
'workspaceName' => '<string>',
'connectorId' => 123
]
],
'datasetId' => '<string>'
],
'subagentsEnabled' => true
]),
CURLOPT_HTTPHEADER => [
"Connect-Protocol-Version: <connect-protocol-version>",
"Content-Type: application/json",
"tql_api_key: <api-key>"
],
]);
$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://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings"
payload := strings.NewReader("{\n \"orgId\": \"<string>\",\n \"secretsEnabled\": true,\n \"hideExampleConnectors\": true,\n \"paradigmParams\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"defaultConnectorIds\": [\n 123\n ],\n \"trainingMode\": true,\n \"dashboardsEnabled\": true,\n \"methodologyEnabled\": true,\n \"feedEnabled\": true,\n \"contextV3Enabled\": true,\n \"clearEnabledModelIds\": true,\n \"clearRestrictedModelIds\": true,\n \"enabledModels\": [],\n \"restrictedModels\": [],\n \"observabilityEnabled\": true,\n \"notificationsEnabled\": true,\n \"hideApiConnectors\": true,\n \"fastModeEnabled\": true,\n \"maxThinkingEnabled\": true,\n \"configurableThinkingEnabled\": true,\n \"clearDefaultConnectorIds\": true,\n \"voiceInputEnabled\": true,\n \"defaultDashboardOutput\": true,\n \"tracesEnabled\": true,\n \"sandboxObservabilityEnabled\": true,\n \"dataAppsEnabled\": true,\n \"issuesEnabled\": true,\n \"spendTransparencyEnabled\": true,\n \"sharingDisabled\": true,\n \"toolRestrictions\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"subagentsEnabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Connect-Protocol-Version", "<connect-protocol-version>")
req.Header.Add("tql_api_key", "<api-key>")
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://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings")
.header("Connect-Protocol-Version", "<connect-protocol-version>")
.header("tql_api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orgId\": \"<string>\",\n \"secretsEnabled\": true,\n \"hideExampleConnectors\": true,\n \"paradigmParams\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"defaultConnectorIds\": [\n 123\n ],\n \"trainingMode\": true,\n \"dashboardsEnabled\": true,\n \"methodologyEnabled\": true,\n \"feedEnabled\": true,\n \"contextV3Enabled\": true,\n \"clearEnabledModelIds\": true,\n \"clearRestrictedModelIds\": true,\n \"enabledModels\": [],\n \"restrictedModels\": [],\n \"observabilityEnabled\": true,\n \"notificationsEnabled\": true,\n \"hideApiConnectors\": true,\n \"fastModeEnabled\": true,\n \"maxThinkingEnabled\": true,\n \"configurableThinkingEnabled\": true,\n \"clearDefaultConnectorIds\": true,\n \"voiceInputEnabled\": true,\n \"defaultDashboardOutput\": true,\n \"tracesEnabled\": true,\n \"sandboxObservabilityEnabled\": true,\n \"dataAppsEnabled\": true,\n \"issuesEnabled\": true,\n \"spendTransparencyEnabled\": true,\n \"sharingDisabled\": true,\n \"toolRestrictions\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"subagentsEnabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.textql.com/rpc/public/textql.rpc.public.settings.SettingsService/UpdateOrganizationSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Connect-Protocol-Version"] = '<connect-protocol-version>'
request["tql_api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orgId\": \"<string>\",\n \"secretsEnabled\": true,\n \"hideExampleConnectors\": true,\n \"paradigmParams\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"defaultConnectorIds\": [\n 123\n ],\n \"trainingMode\": true,\n \"dashboardsEnabled\": true,\n \"methodologyEnabled\": true,\n \"feedEnabled\": true,\n \"contextV3Enabled\": true,\n \"clearEnabledModelIds\": true,\n \"clearRestrictedModelIds\": true,\n \"enabledModels\": [],\n \"restrictedModels\": [],\n \"observabilityEnabled\": true,\n \"notificationsEnabled\": true,\n \"hideApiConnectors\": true,\n \"fastModeEnabled\": true,\n \"maxThinkingEnabled\": true,\n \"configurableThinkingEnabled\": true,\n \"clearDefaultConnectorIds\": true,\n \"voiceInputEnabled\": true,\n \"defaultDashboardOutput\": true,\n \"tracesEnabled\": true,\n \"sandboxObservabilityEnabled\": true,\n \"dataAppsEnabled\": true,\n \"issuesEnabled\": true,\n \"spendTransparencyEnabled\": true,\n \"sharingDisabled\": true,\n \"toolRestrictions\": {\n \"webSearchEnabled\": true,\n \"sqlEnabled\": true,\n \"ontologyEnabled\": true,\n \"pythonEnabled\": true,\n \"powerbiEnabled\": true,\n \"googleDriveEnabled\": true,\n \"formEditorEnabled\": true,\n \"tableauEnabled\": true,\n \"fileUploadEnabled\": true,\n \"multipleConnectorMode\": true,\n \"playbookToolsEnabled\": true,\n \"microsoft365Enabled\": true,\n \"bashEnabled\": true,\n \"javascriptEnabled\": true,\n \"modelSwitchingEnabled\": true,\n \"feedExplorerEnabled\": true,\n \"feedPostEnabled\": true,\n \"feedCommentEnabled\": true,\n \"feedEngageEnabled\": true,\n \"compactionDisabled\": true,\n \"gmailEnabled\": true,\n \"chatHistorySearchEnabled\": true,\n \"googleCalendarEnabled\": true,\n \"parallelToolsEnabled\": true,\n \"emailOutputEnabled\": true,\n \"questionsToolEnabled\": true,\n \"powerbiSelections\": [\n {\n \"workspaceId\": \"<string>\",\n \"reportIds\": [\n \"<string>\"\n ],\n \"datasetIds\": [\n \"<string>\"\n ],\n \"workspaceName\": \"<string>\",\n \"connectorId\": 123\n }\n ],\n \"datasetId\": \"<string>\"\n },\n \"subagentsEnabled\": true\n}"
response = http.request(request)
puts response.read_body{
"organization": {
"orgId": "<string>",
"slackTeamId": "<string>",
"slackKey": "<string>",
"defaultConnectorId": 123,
"limitDataVisibility": true,
"requireAttached": true,
"organizationName": "<string>",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"organizationLogoUrl": "<string>",
"emailAllowedDomains": [
"<string>"
],
"allowedAuthMethods": [
"<string>"
],
"theme": {
"bg": "<string>",
"headerBg": "<string>",
"cardBg": "<string>",
"primaryAccent": "<string>",
"cardAccent": "<string>",
"heading": "<string>",
"text": "<string>",
"cardHeading": "<string>",
"cardText": "<string>",
"logoUrl": "<string>",
"docsUrl": "<string>"
},
"orgMeta": "<string>",
"injectWholeOntologyDisableSearch": true,
"warning": "<string>",
"publicPreview": true,
"chatV5Cutover": true,
"defaultParadigmMode": "TYPE_UNKNOWN",
"secretsEnabled": true,
"emailPollingEnabled": true,
"logoUrl": "<string>",
"brandName": "<string>",
"paradigmParams": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"defaultLlmModel": 123,
"preferredProvider": "<string>",
"systemDefaultModel": 123,
"toolRestrictions": {
"webSearchEnabled": true,
"sqlEnabled": true,
"ontologyEnabled": true,
"pythonEnabled": true,
"powerbiEnabled": true,
"googleDriveEnabled": true,
"formEditorEnabled": true,
"tableauEnabled": true,
"fileUploadEnabled": true,
"multipleConnectorMode": true,
"playbookToolsEnabled": true,
"microsoft365Enabled": true,
"bashEnabled": true,
"javascriptEnabled": true,
"modelSwitchingEnabled": true,
"feedExplorerEnabled": true,
"feedPostEnabled": true,
"feedCommentEnabled": true,
"feedEngageEnabled": true,
"compactionDisabled": true,
"gmailEnabled": true,
"chatHistorySearchEnabled": true,
"googleCalendarEnabled": true,
"parallelToolsEnabled": true,
"emailOutputEnabled": true,
"questionsToolEnabled": true,
"powerbiSelections": [
{
"workspaceId": "<string>",
"reportIds": [
"<string>"
],
"datasetIds": [
"<string>"
],
"workspaceName": "<string>",
"connectorId": 123
}
],
"datasetId": "<string>"
},
"consoleAccess": true,
"defaultConnectorIds": [
123
],
"hideToolCells": true,
"disableEmojis": true,
"hideExampleConnectors": true,
"trainingMode": true,
"dashboardsEnabled": true,
"billingAdminId": "<string>",
"methodologyEnabled": true,
"allowAllApiAccess": true,
"feedEnabled": true,
"contextV3Enabled": true,
"bashEnabled": true,
"defaultRoutingEnabled": true,
"enabledModelIds": [
123
],
"restrictedModelIds": [
123
],
"restrictedFamilies": [
"<string>"
],
"discoverable": true,
"observabilityEnabled": true,
"notificationsEnabled": true,
"clientDbOverrideEnabled": true,
"contextReviewRequired": true,
"googleConnectorEnabled": true,
"hideApiConnectors": true,
"fastModeEnabled": true,
"maxThinkingEnabled": true,
"configurableThinkingEnabled": true,
"sandboxStateRetentionDays": 123,
"sandboxLeaseConfigEnabled": true,
"voiceInputEnabled": true,
"deleteInactiveThreadsEnabled": true,
"threadRetentionDays": 123,
"threadHardDeleteGraceDays": 123,
"deleteInactiveAppsEnabled": true,
"appRetentionDays": 123,
"appHardDeleteGraceDays": 123,
"assetUrlExpiry": "EXPIRY_NONE",
"emailOutputEnabled": true,
"defaultPlaybookPrivate": true,
"defaultDashboardOutput": true,
"defaultMethodology": 123,
"scimNewGroupDefaultRoleType": "<string>",
"groupsFeatureEnabled": true,
"availableProviders": [
"<string>"
],
"showTextqlUsage": true,
"tracesEnabled": true,
"allowLlmDataRetention": true,
"soxDbSessionMetadataEnabled": true,
"smsEnabled": true,
"scimAssignDefaultRole": true,
"migrationBannerDismissed": true,
"configMigrationsEnabled": true,
"sandboxObservabilityEnabled": true,
"dataAppsEnabled": true,
"issuesEnabled": true,
"configObjectsEnabled": true,
"configObjectsPlaybooksEnabled": true,
"configObjectsDashboardsEnabled": true,
"configAutofixEnabled": true,
"helmChartVersion": "<string>",
"spendTransparencyEnabled": true,
"sharingDisabled": true,
"appWritebackAutoApproveEnabled": true,
"subagentsEnabled": true
}
}{
"code": "not_found",
"message": "<string>",
"details": [
{
"type": "<string>",
"value": "<string>",
"debug": {}
}
]
}Authorizations
Headers
Define the version of the Connect protocol
1 Define the timeout, in ms
Body
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Show child attributes
Show child attributes
TYPE_UNKNOWN, TYPE_UNIVERSAL Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
MODEL_UNKNOWN, MODEL_DEFAULT, MODEL_DEFAULT_SYSTEM, MODEL_HAIKU_4_5, MODEL_OPUS_4_8, MODEL_FABLE_5, MODEL_SONNET_5, MODEL_OPUS_5, MODEL_FABLE_5_1, MODEL_GPT_5_6_SOL, MODEL_GEMINI_3_FLASH, MODEL_GEMINI_3_PRO, MODEL_GEMINI_3_1_PRO, MODEL_GEMINI_3_5_FLASH, MODEL_GPT_5_6_TERRA, MODEL_GPT_5_6_LUNA, MODEL_GPT_6_ASTRA, MODEL_DEEPSEEK_3_2, MODEL_GLM_5, MODEL_VLLM, MODEL_KIMI_K2_6, MODEL_GLM_5_2, MODEL_KIMI_K2_7_CODE, MODEL_QWEN3_7_PLUS, MODEL_KIMI_K3, MODEL_DEEPSEEK_V4_FLASH_0731, MODEL_DEEPSEEK_V4_FLASH_VISION_EXP, MODEL_DEEPSEEK_V4P1_FLASH, MODEL_GLM_5_3_FLASH, MODEL_GLM_5_3, MODEL_MUSE_SPARK_1_1, MODEL_MUSE_SPARK_1_2 MODEL_UNKNOWN, MODEL_DEFAULT, MODEL_DEFAULT_SYSTEM, MODEL_HAIKU_4_5, MODEL_OPUS_4_8, MODEL_FABLE_5, MODEL_SONNET_5, MODEL_OPUS_5, MODEL_FABLE_5_1, MODEL_GPT_5_6_SOL, MODEL_GEMINI_3_FLASH, MODEL_GEMINI_3_PRO, MODEL_GEMINI_3_1_PRO, MODEL_GEMINI_3_5_FLASH, MODEL_GPT_5_6_TERRA, MODEL_GPT_5_6_LUNA, MODEL_GPT_6_ASTRA, MODEL_DEEPSEEK_3_2, MODEL_GLM_5, MODEL_VLLM, MODEL_KIMI_K2_6, MODEL_GLM_5_2, MODEL_KIMI_K2_7_CODE, MODEL_QWEN3_7_PLUS, MODEL_KIMI_K3, MODEL_DEEPSEEK_V4_FLASH_0731, MODEL_DEEPSEEK_V4_FLASH_VISION_EXP, MODEL_DEEPSEEK_V4P1_FLASH, MODEL_GLM_5_3_FLASH, MODEL_GLM_5_3, MODEL_MUSE_SPARK_1_1, MODEL_MUSE_SPARK_1_2 MODEL_UNKNOWN, MODEL_DEFAULT, MODEL_DEFAULT_SYSTEM, MODEL_HAIKU_4_5, MODEL_OPUS_4_8, MODEL_FABLE_5, MODEL_SONNET_5, MODEL_OPUS_5, MODEL_FABLE_5_1, MODEL_GPT_5_6_SOL, MODEL_GEMINI_3_FLASH, MODEL_GEMINI_3_PRO, MODEL_GEMINI_3_1_PRO, MODEL_GEMINI_3_5_FLASH, MODEL_GPT_5_6_TERRA, MODEL_GPT_5_6_LUNA, MODEL_GPT_6_ASTRA, MODEL_DEEPSEEK_3_2, MODEL_GLM_5, MODEL_VLLM, MODEL_KIMI_K2_6, MODEL_GLM_5_2, MODEL_KIMI_K2_7_CODE, MODEL_QWEN3_7_PLUS, MODEL_KIMI_K3, MODEL_DEEPSEEK_V4_FLASH_0731, MODEL_DEEPSEEK_V4_FLASH_VISION_EXP, MODEL_DEEPSEEK_V4P1_FLASH, MODEL_GLM_5_3_FLASH, MODEL_GLM_5_3, MODEL_MUSE_SPARK_1_1, MODEL_MUSE_SPARK_1_2 Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
METHODOLOGY_UNKNOWN, METHODOLOGY_ADAPTIVE, METHODOLOGY_PRESCRIPTIVE, METHODOLOGY_THOROUGH, METHODOLOGY_CAREFUL, METHODOLOGY_ONTOLOGY_BUILDING Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Show child attributes
Show child attributes
Wrapper message for bool.
The JSON representation for BoolValue is JSON true and false.
Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.
Response
Success
Show child attributes
Show child attributes