Skip to content

Modify Workspace Name and Description



POST /api/v1/workspace/modify

Overview

Modify the name and description of the current workspace.

Before You Call and Usage Steps

  1. Use a Key with the workspace.setManage permission for the current workspace to read Current Workspace and verify the UUID.
  2. Submit only the name or desc that needs to be changed. Do not send back all configuration fields from the details.
  3. Verify the change based on the returned workspace information. The Billing Center name and authorization name may be updated asynchronously. If the operation fails, first read back the actual values before deciding whether to perform supplementary synchronization or retry.

Use the API Key of the current workspace that has workspace.setManage. Only name/desc are supported; returning the complete backend workspace configuration is not supported. If omitted, the corresponding value is retained. Passing {} also updates the time and refreshes the cache, so it is not strictly a no-op.

When the name changes, it is first saved to the database, then the Billing Center name is synchronized according to the workspace version/Billing Center settings and the name in the workspace authorization is updated asynchronously, after which the cache is refreshed. If a subsequent step fails, the new name may already be saved while other systems still use the old name. First read back the workspace name and have an administrator verify Billing Center/authorization synchronization, then handle the failed parts. Success does not guarantee that all asynchronous nodes immediately display the new name.

The response is a workspace entity and does not include all additional statistics or the returned change_data from the current workspace details API. Use the returned uuid to verify the target. Fields such as the default collection token/cliToken are still sensitive credentials; avoid logging the entire response.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Yes OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Name Type Required Description
name string Optional string; if omitted, the value is retained. The declared maximum is 256, but the storage column is 128, so a value of no more than 128 is recommended. Non-empty is not currently enforced; an empty string may clear the name and is not recommended.
Allowed null: False
Maximum length: 256
Example: API Example Workspace New Name
How to obtain or enter: First read the current value from content.name in Current Workspace.
desc string Optional string; if omitted, the value is retained; an empty string clears it. It cannot be null. The storage column is 500 characters, so a value of no more than 500 is recommended.
Allowed null: False
Allowed empty string: True
Example: Updated workspace usage description
How to obtain or enter: First read the current value from content.desc in Current Workspace.

Additional Parameter Notes

The modification scope is limited to name and desc; do not use the complete workspace details as the request body.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/workspace/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"name":"API Example Workspace New Name","desc":"Updated workspace usage description"}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer Record sequence number within the site; use uuid for subsequent calls.
content.uuid string Workspace UUID.
content.status integer 0: normal; 3: marked as deleted. The deletion response snapshot is 3.
content.creator string Creator identity identifier; for new creations, this is usually the UUID of the Key resource used in the current call.
content.updator string Last modifier identity; may be empty if not modified.
content.createAt integer Creation time, in Unix seconds.
content.deleteAt integer Deletion time, in Unix seconds; usually -1 if not deleted.
content.updateAt integer Update time, in Unix seconds; usually -1 if not yet modified.
content.name string Workspace display name.
content.token string Default collection token for the workspace. Store it as a credential; it is not the OpenAPI DF-API-KEY. The example uses a placeholder value.
content.cliToken string Workspace CLI credential; store it as a credential. The example does not contain a real value.
content.dbUUID string Metrics database record UUID.
content.esInstanceUUID string Actual log storage instance UUID.
content.dashboardUUID string Workspace default view identifier; empty if not set.
content.exterId string External system workspace identifier; usually empty. This is not a writable field on this page.
content.rpName string Internal alias for the metrics retention policy; do not use it in place of durationSet.rp.
content.desc string Workspace description.
content.durationSet object or null Standard storage duration saved by data type. Keys vary with the engine, version, and index merge status; values are, for example, 7d.
content.storagePolicy object or null Long-term storage policy saved by data type. The long-term policy here is distinct from the standard durationSet.
content.datastore object or null Actual storage engine saved by data type, for example metric=guancedb, logging=doris.
content.lastDqlDataCheckTime object or null Most recent DQL data check information recorded by data type; a dynamic object maintained by the system.
content.declaration object or null Organization and business declaration of the workspace itself, which may contain organization and business. This is a workspace column, not an outer public declaration.
content.esIndexSettings object or null Index configuration object saved by data type. An empty object means there is no workspace-level custom template; it does not mean there is no default template downstream.
content.bindInfo object or null Workspace brand text, email, and domain override object. For key definitions, see Set Binding Information.
content.versionType string Workspace version, for example free, freeEdition, pay, enterprise, unlimited. It is taken from the site configuration at creation; this API does not provide a version input parameter.
content.billingState string Billing state identifier, for example free, normal, arrearage, expired, unlimited.
content.bossStation string Billing Center node identifier, for example CN, SG, or an empty string.
content.brandKey string Workspace brand identifier.
content.enablePublicDataway integer Whether public Dataway is allowed; 1 enabled, 0 disabled.
content.isOpenLogMultipleIndex integer or boolean Whether creating multiple log indexes is allowed; 1 enabled, 0 disabled. Existing indexes are not deleted because of this.
content.esIndexMerged integer Whether indexes are merged; 1 merged, 0 split.
content.supportJsonMessage integer JSON message support flag; 1 enabled, 0 disabled.
content.isLocked integer Workspace lock flag; 1 locked, 0 unlocked.
content.lockMode string Lock mode, for example none, writeLocked.
content.lockAt integer Lock time, in Unix seconds; usually -1 if not set.
content.delayDeleteAt integer Delayed cleanup timestamp, in Unix seconds; usually -1 if not in the pending cleanup process.
content.inviteAudit integer Whether member invitation review is enabled; 1 enabled, 0 disabled.
content.makeResourceExceptionCode string Resource initialization issue flag; can be empty. The creation process also returns the latest issue flag at the content top level.
content.loggingCutSize integer Oversized log splitting unit, in bytes.
content.language string Workspace language identifier.
content.noviceGuide boolean Novice guide flag.
content.timezone string Workspace time zone; empty if not set.
content.menuStyle string Menu style identifier; empty if not set.
content.tenantId integer Workspace tenant ID. The creation response takes a snapshot before the tenant ID is generated, so it may be -1; read the final value from the details later.
content.isOpenCustomMappingRule integer Custom mapping rule switch; 1 enabled, 0 disabled.
content.enableRumMultipleTable integer RUM table splitting switch; 1 enabled, 0 disabled.
content.enableMFA boolean Whether MFA is required.
content.disableQueryAcceleration integer Query acceleration disable flag; 1 disabled, 0 not disabled.
content.disableDataWrite integer Data write disable flag; 1 disabled, 0 not disabled.
content.disableDataWriteAt integer Data write disable time, in Unix seconds; usually -1 if not yet set.
content.logBackupQueryTimeLimit integer Backup log query time range limit, in hours.
content.engineSetting object Engine-specific configuration dynamic object; the historical nodegroup field is normalized to node_group in the output.
content.enableAI boolean Workspace AI master switch.
content.enableAPIKeySecurityDisplayPolicy boolean API Key secure display policy switch.
content.enableObsyAISubscriptionBilling boolean Obsy AI subscription billing switch.
content.tokenIpSet object or null Dynamic object for the workspace Token IP access restriction configuration; returned on this page only and cannot be modified through these request parameters.
content.singleConfig object or null Dynamic object for workspace feature configuration; the workspace's existing configuration takes precedence, and fixed configuration keys are not guaranteed here.
content.issueUpgrade boolean Incident escalation capability switch.
content.durationSet.{data type} string Standard retention period for this data type, such as rp, logging, keyevent, tracing, rum, apm, network, backup_log; other read-only keys may exist depending on the current configuration.
content.storagePolicy.{data type} object Long-term policy for this type; rp and logging are commonly used.
content.storagePolicy.{data type}.longStorageEnabled boolean Whether long-term storage is enabled.
content.storagePolicy.{data type}.longStorageDuration string Total long-term retention duration, for example 180d; usually an empty string after it is disabled.
content.datastore.{data type} string Name of the engine used for this type, for example es, doris, scopedb, volctls, sls, guancedb; not an instance UUID.
content.declaration.organization string Organization name; provided if a declaration configuration exists.
content.declaration.business string Business description; provided if a declaration configuration exists.
content.esIndexSettings.{data type} object Index settings for the corresponding type.
content.esIndexSettings.{data type}.number_of_shards integer Number of primary shards; whether it appears depends on the engine.
content.esIndexSettings.{data type}.number_of_replicas integer Number of replicas.
content.esIndexSettings.{data type}.rollover_max_size integer Shard rollover threshold; the API passes it through according to the engine definition.
content.esIndexSettings.{data type}.hot_retention integer Hot data retention duration, in hours.
content.esIndexSettings.{data type}.cold_retention integer Optional cold data retention duration, in hours.
content.esIndexSettings.{data type}.archive_retention integer Optional archive data retention duration, in hours.
content.esIndexSettings.{data type}.openAdvancedConfig integer Advanced configuration flag, usually 0 or 1.
content.engineSetting.node_group string Optional engine node group identifier; other configuration items are determined by the corresponding engine.
content.bindInfo.{config item} JSON value Existing brand override value; for key meanings, refer to the Set Binding Information API.
content.lastDqlDataCheckTime.{data type} JSON value System-maintained check value for this type; not a query result.
content.tokenIpSet.{config item} JSON value Existing Token IP policy; preserve its structure after reading, and do not use it to construct OpenAPI authentication headers.
content.singleConfig.{config item} JSON value Existing feature configuration value; the specific type and keys are defined by the corresponding feature configuration.
{
  "code": 200,
  "content": {
    "id": 1001,
    "uuid": "wksp_example",
    "status": 0,
    "creator": "wsak_source",
    "updator": "wsak_source",
    "createAt": 1785427200,
    "deleteAt": -1,
    "updateAt": 1785427300,
    "name": "API Example Workspace New Name",
    "token": "<workspace-token>",
    "cliToken": "<workspace-cli-token>",
    "dbUUID": "ifdb_example001",
    "esInstanceUUID": "esinst_example001",
    "dashboardUUID": "",
    "exterId": "",
    "rpName": "",
    "desc": "Updated workspace usage description",
    "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": {},
    "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
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

Billing Center connection or request exceptions return HTTP 400 and ft.CloudCareApiError by default. Explicit upstream business responses are returned with the actual mapped status code. Only mapped status codes ≥500 or other unhandled exceptions are globally normalized to 500 ft.InternalServerError. First read back the workspace name and description, then verify Billing Center/authorization name synchronization, handle only unfinished synchronization, and do not blindly repeat the modification.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field missing, or field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid 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 errors Submit a JSON object according to the parameters on this page.
406 ft.NotFoundWorkspace Current workspace does not exist/does not meet active conditions Specified workspace not found Confirm the workspace status corresponding to the current Key.
406 ft.InvalidBossNode Billing Center synchronization is required, but the site brand/node is not configured Invalid Boss node Ask an administrator to check the Billing Center node; the workspace name may already be saved.
400 ft.CloudCareApiError Billing Center connection, timeout, or request exception; business errors may also be returned with the upstream mapped status code Billing Center API error; the specific message is returned according to the exception or upstream prompt. First read back the workspace name and description, then verify Billing Center/authorization name synchronization, handle only unfinished synchronization, and do not blindly repeat the modification. Retain the traceId and ask an administrator to check the Billing Center connection and processing result.
500 ft.InternalServerError Database, cache/queue, downstream errors with mapped status code ≥500, or other unhandled exceptions; writes may already be committed when the operation fails Internal error First read back the workspace name and description, then verify Billing Center/authorization name synchronization, handle only unfinished synchronization, and do not blindly repeat the modification. Retain the traceId.

Feedback

Is this page helpful?