Modify Workspace Configuration¶
POST /api/v1/workspace/{workspace_uuid}/modify
Overview¶
Adjust the workspace name, query switches, multiple indexes, and data retention policy.
Before Calling and Usage Steps¶
First read Workspace Details and Index Template List and save the original configuration. Submit only the fields to be modified. For regular storage, explicitly include the current isOpenLogMultipleIndex to avoid disabling multiple indexes when the field is omitted. Changing the retention period affects the queryable range; shortening it may trigger cleanup of expired data. Switching the index merge mode also recalculates retention periods and clears custom templates. After success, re-read the details and index templates to verify, and confirm data query/collection. This operation may save first and then synchronize downstream; after a failure, verify the configuration and actual resources separately.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace_uuid | string | Y | Target workspace UUID; not the account UUID, and not the collection token. Example: wksp_example001How to obtain or enter: Obtain it from content.data[].uuid in the Workspace List or from content.wsInfo.uuid of a successful creation, and verify the site and workspace name. |
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Df-SVersion | string | Must match the example and must not be omitted while continuing to use this algorithm. Example: v20240417How to obtain or enter: Fill it in together with the original path and request body signing algorithm on this page. |
|
| X-Df-Access-Key | string | Y | This API requires External API credentials with w write permission. Example: <external-access-key>How to obtain or enter: Assigned by the site administrator with w permission; not a workspace OpenAPI Key. |
| X-Df-Signature | string | Y | Compute the HMAC-SHA256 hex digest of the uppercase method, nonce, original full path, timestamp, and original UTF-8 request body joined by spaces. Example: <hmac-sha256-hex>How to obtain or enter: Use the matching SK to calculate it according to External API Signature Authentication and the Python template below. |
| X-Df-Timestamp | string | Y | Do not reuse the fixed example time; it must fall within the site's signature validity window. Example: 1785427200How to obtain or enter: When sending, generate the current Unix seconds with str(int(time.time())). |
| X-Df-Nonce | string | Y | Update this value and the signature on every resend. Example: 97d275ee9f774315a7885ba7347acbd9How to obtain or enter: Generate uuid.uuid4().hex anew for each request. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| storagePolicy.rp | object | Metrics long-term storage configuration. Other categories not submitted are retained; an empty object for this category is treated as disabled. Example: {"longStorageEnabled": false}How to obtain or enter: Obtain it from storagePolicy.rp in the current Index Template List, and modify it according to the target policy. |
|
| storagePolicy.rp.longStorageEnabled | boolean | false explicitly disables it, true enables it; if the category object is present but this key is omitted, it is normalized to false, which may disable the original policy. To retain the original policy, omit the entire category object. Disabling does not change the standard durationSet. Example: falseHow to obtain or enter: Select a JSON boolean value according to whether long-term retention is required. |
|
| storagePolicy.rp.longStorageDuration | string | Fill in when enabled; can be omitted when disabled. Do not directly add the standard period and the long-term period together. Example: 180dHow to obtain or enter: Select from the long-term durations allowed by the site; it must be greater than the current or requested standard retention period for this type. |
|
| storagePolicy.logging | object | Logs long-term storage configuration. Other categories not submitted are retained; an empty object for this category is treated as disabled. Example: {"longStorageEnabled": false}How to obtain or enter: Obtain it from storagePolicy.logging in the current Index Template List, and modify it according to the target policy. |
|
| storagePolicy.logging.longStorageEnabled | boolean | false explicitly disables it, true enables it; if the category object is present but this key is omitted, it is normalized to false, which may disable the original policy. To retain the original policy, omit the entire category object. Disabling does not change the standard durationSet. Example: falseHow to obtain or enter: Select a JSON boolean value according to whether long-term retention is required. |
|
| storagePolicy.logging.longStorageDuration | string | Fill in when enabled; can be omitted when disabled. Do not directly add the standard period and the long-term period together. Example: 180dHow to obtain or enter: Select from the long-term durations allowed by the site; it must be greater than the current or requested standard retention period for this type. |
|
| isOpenCustomMappingRule | boolean | Optional boolean; omitted means retained; cannot be null. Allows null: False Example: falseHow to obtain or enter: First read the current switch from Workspace Details, then decide whether to adjust it. |
|
| maxSearchResultCount | integer | Optional integer; if omitted, the original configuration is not modified. When the same-named value is omitted in the response, it is 0; do not conclude from this that the original configuration has been cleared; cannot be null. Allows null: False Example: 0How to obtain or enter: Choose according to the total number of client query results; 0 means no additional limit is applied here. |
|
| name | string | Optional; omitted means retained; declared maximum 256 characters, 128 characters or fewer is recommended for compatibility with storage columns. Cannot be null. Allows null: False Maximum length: 256 Example: API示例空间新名称How to obtain or enter: Enter a new workspace display name. |
|
| esIndexMerged | boolean | Optional; omitted means retained. Can be switched only when logging=es; switching recalculates some retention policies and clears workspace custom index settings, so back up templates first. Allows null: False Example: falseHow to obtain or enter: First confirm the current esIndexMerged and datastore.logging from Index Template List. |
|
| isOpenLogMultipleIndex | boolean | Optional boolean, but omitting it for regular storage is treated as false and may disable newly created multiple indexes. For SLS/Beaver, this switch is not changed by this field. false does not delete existing indexes. Allows null: False Example: trueHow to obtain or enter: Read the current isOpenLogMultipleIndex from Workspace Details; for routine modifications, explicitly pass the current value to retain it. |
|
| logMultipleIndexCount | int | Optional; omitted means retained; for regular storage it must be >=1; for SLS/Beaver it must be >=0, where 0 means no count limit; cannot be null. Allows null: False Example: 30How to obtain or enter: Choose according to the number of business indexes, or confirm the current count limit with the administrator first. |
|
| loggingCutSize | int | Optional integer; when non-zero and changed, notify downstream and update; 0 does not disable cutting and does not change the original value; cannot be null. Allows null: False Example: 10240How to obtain or enter: Reuse the existing loggingCutSize or specify the number of bytes according to the actual oversized log policy. |
|
| leftWildcard | boolean | Optional boolean; omitted means retained; false disables, true enables; cannot be null. Allows null: False Example: falseHow to obtain or enter: Choose according to left wildcard fuzzy query requirements; omit it if it needs to be retained. |
|
| durationSet | object | Optional object; values are days plus a lowercase d. Omitted means retained; only keys for actually supported data types are merged, and an empty object does not clear existing settings. Before modification, confirm that the version supports the change; lowering the retention period affects queryable data. Example: {"logging": "7d"}How to obtain or enter: First obtain the current durationSet, esIndexMerged, and datastore from Index Template List, and choose according to the actual version/engine. |
|
| durationSet.rp | string | Standard retention period for metric time series; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.logging | string | Standard retention period for default logs; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.backup_log | string | Standard retention period for backup logs; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.security | string | Standard retention period for Security Check/security data; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.keyevent | string | Standard retention period for events; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.tracing | string | Standard retention period for application traces; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.rum | string | Standard retention period for Real User Monitoring (RUM) data; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.apm | string | Standard retention period for APM data in merged indexes; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| durationSet.network | string | Standard retention period for network data; updated only when the current index split/merge mode supports this key, and may be ignored in other modes. Allows null: False Example: 7dHow to obtain or enter: Obtain it from the corresponding field in the Index Template List of the current workspace or a workspace of the same version, then adjust it according to the range allowed by the site. |
|
| disableQueryAcceleration | integer | Optional integer 0/1; omitted means retained. The declaration allows null, but the current implementation produces a 500 with int(null); clients must not pass null. Allows null: True Allowed values: [0, 1] Example: 0How to obtain or enter: Read it from the current details, then choose 0 to not disable or 1 to disable. |
|
| enableRumMultipleTable | integer | Optional integer 0/1; omitted means retained; the declaration allows null, but the current implementation produces a 500 with int(null); clients must not pass null. Allows null: True Allowed values: [0, 1] Example: 1How to obtain or enter: Choose 1 to enable or 0 to disable according to RUM data splitting requirements. |
|
| storagePolicy | json | Optional object; updates by data type key, not a full replacement; omitting it or passing a top-level {} does not clear the original policy. Passing an empty object for a category is normalized as disabled. It is recommended to use only rp and logging; to disable a type, explicitly set longStorageEnabled=false. Cannot be null. Long-term storage is the total retention duration and must be greater than the standard retention duration for that type. Logs are supported only for scopedb and only for pay/enterprise/unlimited; metrics must comply with the billing type. pay and unlimited with Billing Center enabled require metric_point_total, and enterprise and others also reject explicit timeseries billing. By default, the repository allows 90d/120d/180d/360d for pay logs; pay metrics additionally allow 540d/720d; enterprise/unlimited logs allow 1d to 1800d and metrics 1d to 3600d, and must still be greater than the standard retention period. The actual available set and range are overridden by the site configuration. Allows null: False Example: {"logging": {"longStorageEnabled": false}}How to obtain or enter: Read the current storagePolicy and durationSet from Index Template List, and confirm the engine, version, and billing type. |
Additional Parameter Notes¶
Use site-level External API credentials with w permission. For authentication, see External API Signature Authentication. The examples calculate signatures according to v20240417; signing and sending use the same path, Query, and raw request body. All examples are demonstration values; replace them with actual targets before execution. After a write request timeout or 500, query the current state first, then decide whether to retry.
Long-term storage is the total retention duration and must be greater than the standard retention duration for that type. Logs are supported only for scopedb and only for pay/enterprise/unlimited; metrics must comply with the billing type. pay and unlimited with Billing Center enabled require metric_point_total, and enterprise and others also reject explicit timeseries billing. By default, the repository allows 90d/120d/180d/360d for pay logs; pay metrics additionally allow 540d/720d; enterprise/unlimited logs allow 1d to 1800d and metrics 1d to 3600d, and must still be greater than the standard retention period. The actual available set and range are overridden by the site configuration.
Request Example¶
import hashlib
import hmac
import json
import time
import uuid
from urllib.parse import urlencode
from urllib.request import Request, urlopen
from urllib.error import HTTPError, URLError
# Replace with the target site address and the External API AK/SK assigned by the administrator.
server = "https://external-api.guance.com"
access_key = "<external-access-key>"
secret_key = "<external-secret-key>"
method = 'POST'
path = '/api/v1/workspace/wksp_example001/modify'
query = {}
data = {'name': 'API示例空间新名称', 'isOpenLogMultipleIndex': True}
full_path = path + ("?" + urlencode(query) if query else "")
body = "" if data is None else json.dumps(data, ensure_ascii=False, separators=(",", ":"))
timestamp = str(int(time.time()))
nonce = uuid.uuid4().hex
string_to_sign = " ".join([method, nonce, full_path, timestamp, body])
signature = hmac.new(secret_key.encode("utf-8"), string_to_sign.encode("utf-8"), hashlib.sha256).hexdigest()
headers = {
"X-Df-Access-Key": access_key,
"X-Df-Timestamp": timestamp,
"X-Df-Nonce": nonce,
"X-Df-Signature": signature,
"X-Df-SVersion": "v20240417",
}
if data is not None:
headers["Content-Type"] = "application/json"
request = Request(server + full_path, data=None if data is None else body.encode("utf-8"), headers=headers, method=method)
try:
with urlopen(request, timeout=30) as result:
payload = json.loads(result.read().decode("utf-8"))
except HTTPError as error:
print("HTTP", error.code, error.read().decode("utf-8")) # Keep errorCode, content, and traceId to determine whether the request was committed.
raise SystemExit(1)
except (URLError, TimeoutError):
print("请求结果未知,请先查询目标空间配置和任务状态,不要自动重试写请求。")
raise SystemExit(1)
print(json.dumps(payload, ensure_ascii=False, indent=2))
Response¶
HTTP 200, application/json uniform envelope; External does not automatically inject declaration. content contains the modification result, and content.wsInfo is the modified workspace profile; the declaration in the profile itself is a business-saved field.
| Field | Type | Description |
|---|---|---|
| content.wsInfo.id | integer | Record sequence number within the site; use uuid in subsequent calls. |
| content.wsInfo.uuid | string | Workspace UUID. |
| content.wsInfo.status | integer | 0 normal, 3 marked for deletion; the snapshot returned for deletion is 3. |
| content.wsInfo.creator | string | Creator identity identifier; External creation is usually sys. |
| content.wsInfo.updator | string | Identity of the last modification; may be empty if not modified. |
| content.wsInfo.createAt | integer | Creation time, Unix seconds. |
| content.wsInfo.deleteAt | integer | Deletion time, Unix seconds; usually -1 if not deleted. |
| content.wsInfo.updateAt | integer | Update time, Unix seconds; usually -1 if not yet modified. |
| content.wsInfo.name | string | Workspace display name. |
| content.wsInfo.token | string | Default collection token for the workspace. Store it as a credential; it cannot be used as an External AK/SK; the example uses a placeholder value. |
| content.wsInfo.cliToken | string | Workspace CLI credential; store it as a credential; the example does not contain a real value. |
| content.wsInfo.dbUUID | string | Metrics database record UUID. |
| content.wsInfo.esInstanceUUID | string | Actual log storage instance UUID. |
| content.wsInfo.dashboardUUID | string | Workspace default view identifier; empty if not set. |
| content.wsInfo.exterId | string | External system workspace identifier; usually empty; not a writable field on this page. |
| content.wsInfo.rpName | string | Internal alias for the metrics retention policy; do not use it in place of durationSet.rp. |
| content.wsInfo.desc | string | Workspace description. |
| content.wsInfo.durationSet | object or null | Standard storage duration saved by data type; keys vary with engine, version, and index merge status; values are, for example, 7d. |
| content.wsInfo.storagePolicy | object or null | Long-term storage policy saved by data type; the long-term policy here is distinct from the standard durationSet. |
| content.wsInfo.datastore | object or null | Actual storage engine saved by data type, for example metric=guancedb, logging=doris. |
| content.wsInfo.lastDqlDataCheckTime | object or null | Information about the most recent DQL data check recorded by data type; a dynamic object maintained by the system. |
| content.wsInfo.declaration | object or null | Organization and business declaration of the workspace itself, which may contain organization and business; this is a workspace column, not a field automatically injected into the External common response. |
| content.wsInfo.esIndexSettings | object or null | Index configuration object saved by data type; an empty object means there is no workspace-level custom template, not that downstream has no default template. |
| content.wsInfo.bindInfo | object or null | Workspace branding text, email, and domain override object; for key definitions, see Set Binding Information. |
| content.wsInfo.versionType | string | Workspace version, for example free, freeEdition, pay, enterprise, unlimited; creation uses the site configuration, and this API does not provide a version input parameter. |
| content.wsInfo.billingState | string | Billing state identifier, for example free, normal, arrearage, expired, unlimited. |
| content.wsInfo.bossStation | string | Billing Center node identifier, for example CN, SG, or an empty string. |
| content.wsInfo.brandKey | string | Workspace brand identifier. |
| content.wsInfo.enablePublicDataway | integer | Whether public Dataway is allowed; 1 enabled, 0 disabled. |
| content.wsInfo.isOpenLogMultipleIndex | integer or boolean | Whether creation of new log multiple indexes is allowed; 1 enabled, 0 disabled; existing indexes are not deleted because of this. |
| content.wsInfo.esIndexMerged | integer | Whether indexes are merged; 1 merged, 0 split. |
| content.wsInfo.supportJsonMessage | integer | JSON message support flag; 1 enabled, 0 disabled. |
| content.wsInfo.isLocked | integer | Workspace lock flag; 1 locked, 0 unlocked. |
| content.wsInfo.lockMode | string | Lock mode, for example none, writeLocked. |
| content.wsInfo.lockAt | integer | Lock time, Unix seconds; usually -1 if not set. |
| content.wsInfo.delayDeleteAt | integer | Delay cleanup timer point, Unix seconds; usually -1 if not in the pending cleanup process. |
| content.wsInfo.inviteAudit | integer | Whether member invitation review is enabled; 1 enabled, 0 disabled. |
| content.wsInfo.makeResourceExceptionCode | string | Resource initialization issue flag; may be empty; the creation process also returns the latest issue flag at the top level of content. |
| content.wsInfo.loggingCutSize | integer | Oversized log cut unit, in bytes. |
| content.wsInfo.language | string | Workspace language identifier. |
| content.wsInfo.noviceGuide | boolean | Novice guide flag. |
| content.wsInfo.timezone | string | Workspace time zone; empty if not set. |
| content.wsInfo.menuStyle | string | Menu style identifier; empty if not set. |
| content.wsInfo.tenantId | integer | Workspace tenant ID; the creation response takes a snapshot before the tenant ID is generated and may be -1; read the final value from the details later. |
| content.wsInfo.isOpenCustomMappingRule | integer | Custom mapping rule switch; 1 enabled, 0 disabled. |
| content.wsInfo.enableRumMultipleTable | integer | RUM table splitting switch; 1 enabled, 0 disabled. |
| content.wsInfo.enableMFA | boolean | Whether MFA is required. |
| content.wsInfo.disableQueryAcceleration | integer | Query acceleration disabled flag; 1 disabled, 0 not disabled. |
| content.wsInfo.disableDataWrite | integer | Data write disabled flag; 1 disabled, 0 not disabled. |
| content.wsInfo.disableDataWriteAt | integer | Write disable time, Unix seconds; usually -1 if not set. |
| content.wsInfo.logBackupQueryTimeLimit | integer | Backup log query time range limit, in hours. |
| content.wsInfo.engineSetting | object | Engine-specific configuration dynamic object; the historical nodegroup field is normalized to node_group in the output. |
| content.wsInfo.enableAI | boolean | Workspace AI master switch. |
| content.wsInfo.enableAPIKeySecurityDisplayPolicy | boolean | API Key secure display policy switch. |
| content.wsInfo.enableObsyAISubscriptionBilling | boolean | Obsy AI subscription billing switch. |
| content.wsInfo.tokenIpSet | object or null | IP access restriction configuration dynamic object for workspace tokens; this page only returns it, and it cannot be modified through these request parameters. |
| content.wsInfo.singleConfig | object or null | Workspace feature configuration dynamic object; the existing workspace configuration prevails, and no fixed configuration keys are promised here. |
| content.wsInfo.issueUpgrade | boolean | Incident escalation capability switch. |
| content.wsInfo.durationSet.{dataType} | string | Standard retention period for this data type, such as rp, logging, keyevent, tracing, rum, apm, network, backup_log; there may be other read-only keys depending on the current configuration. |
| content.wsInfo.storagePolicy.{dataType} | object | Long-term policy for this type; commonly rp and logging. |
| content.wsInfo.storagePolicy.{dataType}.longStorageEnabled | boolean | Whether long-term storage is enabled. |
| content.wsInfo.storagePolicy.{dataType}.longStorageDuration | string | Total long-term retention duration, for example 180d; usually an empty string after disabling. |
| content.wsInfo.datastore.{dataType} | string | Name of the engine used by this type, for example es, doris, scopedb, volctls, sls, guancedb; not the instance UUID. |
| content.wsInfo.declaration.organization | string | Organization name, provided if declaration configuration exists. |
| content.wsInfo.declaration.business | string | Business description, provided if declaration configuration exists. |
| content.wsInfo.esIndexSettings.{dataType} | object | Index settings for the corresponding type. |
| content.wsInfo.esIndexSettings.{dataType}.number_of_shards | integer | Number of primary shards; whether it appears depends on the engine. |
| content.wsInfo.esIndexSettings.{dataType}.number_of_replicas | integer | Number of replicas. |
| content.wsInfo.esIndexSettings.{dataType}.rollover_max_size | integer | Shard rollover threshold; the API passes it through as defined by the engine. |
| content.wsInfo.esIndexSettings.{dataType}.hot_retention | integer | Hot data retention duration, in hours. |
| content.wsInfo.esIndexSettings.{dataType}.cold_retention | integer | Optional cold data retention duration, in hours. |
| content.wsInfo.esIndexSettings.{dataType}.archive_retention | integer | Optional archive data retention duration, in hours. |
| content.wsInfo.esIndexSettings.{dataType}.openAdvancedConfig | integer | Advanced configuration flag, usually 0 or 1. |
| content.wsInfo.engineSetting.node_group | string | Optional engine node group identifier; other configuration items are determined by the corresponding engine. |
| content.wsInfo.bindInfo.{configItem} | JSON value | Existing branding override value; for key meanings, refer to the Set Binding Information API. |
| content.wsInfo.lastDqlDataCheckTime.{dataType} | JSON value | System-maintained check value for this type, not a query result. |
| content.wsInfo.tokenIpSet.{configItem} | JSON value | Existing token IP policy; retain its structure after reading, and do not construct External authentication headers from it. |
| content.wsInfo.singleConfig.{configItem} | JSON value | Existing feature configuration value; the specific type and keys are defined by the corresponding feature configuration. |
| content.maxSearchResultCount | integer | Maximum search result count parsed for this request; returns 0 when this input parameter is omitted, and the original configuration may still retain a non-zero value. |
{
"code": 200,
"content": {
"wsInfo": {
"id": 1001,
"uuid": "wksp_example001",
"status": 0,
"creator": "sys",
"updator": "sys",
"createAt": 1785427200,
"deleteAt": -1,
"updateAt": 1785427200,
"name": "API示例空间新名称",
"token": "<workspace-token>",
"cliToken": "<workspace-cli-token>",
"dbUUID": "ifdb_example001",
"esInstanceUUID": "esinst_example001",
"dashboardUUID": "",
"exterId": "",
"rpName": "",
"desc": "接口文档演示工作空间",
"durationSet": {
"rp": "7d",
"logging": "7d",
"keyevent": "7d",
"tracing": "7d",
"rum": "7d",
"network": "1d"
},
"storagePolicy": {},
"datastore": {
"metric": "guancedb",
"logging": "doris",
"keyevent": "doris",
"tracing": "doris",
"rum": "doris",
"network": "doris",
"lineage": "doris"
},
"lastDqlDataCheckTime": {},
"declaration": {
"organization": "示例组织",
"business": ""
},
"esIndexSettings": {},
"bindInfo": {},
"versionType": "unlimited",
"billingState": "normal",
"bossStation": "",
"brandKey": "guance",
"enablePublicDataway": 1,
"isOpenLogMultipleIndex": 1,
"esIndexMerged": 0,
"supportJsonMessage": 1,
"isLocked": 0,
"lockMode": "none",
"lockAt": -1,
"delayDeleteAt": -1,
"inviteAudit": 0,
"makeResourceExceptionCode": "",
"loggingCutSize": 10240,
"language": "zh",
"noviceGuide": false,
"timezone": "",
"menuStyle": "",
"tenantId": -1,
"isOpenCustomMappingRule": 0,
"enableRumMultipleTable": 1,
"enableMFA": false,
"disableQueryAcceleration": 0,
"disableDataWrite": 0,
"disableDataWriteAt": -1,
"logBackupQueryTimeLimit": 24,
"engineSetting": {},
"enableAI": false,
"enableAPIKeySecurityDisplayPolicy": false,
"enableObsyAISubscriptionBilling": false,
"tokenIpSet": {},
"singleConfig": {},
"issueUpgrade": true
},
"maxSearchResultCount": 0
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
The following table lists the main error branches confirmed for this API's business validation. Downstream services may also return other 4xx errors mapped from specific errors; ordinary 5xx and unknown exceptions are returned as ft.InternalServerError through global handling. For write requests, determine whether changes have taken effect based on the current configuration and the error content; do not infer rollback solely from the HTTP status.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field is missing, or the field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Correct the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | JSON top level is not an object | Some json file format error | Submit a JSON object according to the parameter table; do not use an array or null as the entire request body. |
| 406 | ft.NotFoundWorkspace | Workspace does not exist, has been deleted, or does not satisfy the current active state query | Specified workspace not found | Obtain a valid UUID again from the workspace list and verify the status. |
| 429 | ft.OperationTooFrequently | The storage configuration lock for the same workspace is occupied, or lock ownership was lost during execution | Your operation is too frequent. Please try again later. | Later, read the current configuration first, then retry with a new nonce and signature; if the lock is lost during execution, do not assume that none of the writes occurred. |
| 400 | ft.InvalidActionForbiddenChange | A non-ES workspace attempts to switch the merge state, or the version/engine/billing type does not support the requested long-term storage | Returned according to the specific branch, for example, "Long-term storage policy can be enabled only for workspaces whose logging storage is scopedb." | Adjust the request according to the actual datastore and billing type. |
| 400 | ft.LogIndexCfgQuantityIllegal | The number of indexes for regular storage is less than 1, or the SLS/Beaver count is less than 0 | Invalid log multiple index count | Correct the count according to the storage type. |
| 400 | ft.FreeWKSPLimit | Free Plan/free edition attempts to change the standard retention period or long-term storage policy | Invalid operation. The current workspace is on the Free Plan. | Keep the current retention period, or change the workspace version through the formal upgrade process. |
| 400 | ft.IllegalDataKeepTime | The standard retention period changed by the pay version is not in the set allowed by the site | Invalid data retention period | Select from the standard retention periods available on the site. |
| 406 | ft.InvalidDuration | The retention period is not a number plus d, or the long-term retention period is not in the set allowed by the version | Invalid duration | Use the format in the table and the range for the site; the long-term retention period must be greater than the standard value. |
| 406 | ft.InvalidDurationRange | The custom retention period for enterprise/unlimited is out of range, or the long-term retention period is not greater than the standard retention period | Exceeds the valid data retention period range | Adjust the standard and long-term retention periods according to the range allowed by the site. |
| 406 | ft.CurrentVersionUnsupportRp | The current version does not support editing the requested retention policy | The current version does not support rp:{} |
Ask the administrator to confirm the workspace version and storage configuration. |
| 500 | ft.InternalServerError | Database, cache, resource service, or unhandled parameter conversion exception | Internal error | First read the workspace details and index templates, then verify the actual storage and downstream synchronization. If already saved, handle only the incomplete parts and do not blindly repeat modifications. Keep traceId and contact the administrator. |