Skip to content

Modify RUM Configuration



POST /api/v1/rum_cfg/{appid}/modify

Overview

Modify the RUM application display configuration, identifier, or Client Token binding.

Before Calling and Usage Steps

The current Key requires rum.rumCfgManage. For the path appid, use appId/uuid from the quick list; confirm that it exists first, and do not use the modify API to probe existence.

jsonContent is merged by name/extend; type must be omitted entirely, and passing the original value also returns 406. When extend is present, the entire object is replaced; {} clears it, and omitting it preserves it; jsonContent={} or the entire Body={} still updates the time and performs mapping synchronization. If newAppId is omitted/empty, it is not changed; a non-empty rename requires planning SDK/SourceMap/external link changes at the same time, and existing historical data is not batch-rewritten by this API. For custom applications, dashboardUuids is fully replaced; [] clears it, and omitting it preserves it; when only renaming, the original binding is retained and migrated.

If clientToken is omitted/empty, the original association is retained; in this case, response content.clientToken is the old internal association UUID (wctn_), which cannot be directly used in the SDK. Only after an explicit non-empty value passes validation does the response return that plaintext. Changing the binding does not revoke the old Token; it may be used by other applications; replacing an application association must not be equated with credential revocation.

After the local commit, mapping is synchronized; downstream or queue failures may be tolerated and return success, and additional AIAPI information such as mapping_ready is not returned. On failure/timeout, first use the quick list to verify the old and new appId and jsonContent, then ask the administrator to verify the Token/mapping; do not blindly repeat the change. If the target is missing and dashboardUuids is not passed, the current implementation may return 500 because it reads an empty object; the explicit dashboardUuids branch returns NotFoundRumSet first; in both cases, refresh the list first.

Path Parameters

Parameter Type Required Description
appid string Y Public application identifier in the current workspace; not the actual RumCfg UUID in the database. Used for SDK configuration and SourceMap requests.
Example: payment_web
How to obtain or enter: Get content[].appId from the RUM application quick list (uuid is the same value), or obtain it from the RUM application settings in the current workspace.

Request Headers

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

Body Request Parameters

Parameter Type Required Description
dashboardUuids[*] string A single dsbd_ or itgr_ identifier string.
Example: dsbd_example
How to obtain or enter: Get the dsbd_ UUID from the dashboard list, or the itgr_ UUID from the built-in view list, and confirm that it is readable in the current workspace.
jsonContent.extend.Custom Key any Dynamic JSON value, which can be an object/array/string/number/boolean/null, not limited to strings; no fixed functional semantics are publicly defined, so do not store sensitive credentials.
Example: payment
How to obtain or enter: Caller business data.
newAppId string Optional, up to 48 characters; omitted/empty string preserves it; a non-empty value changes the public identifier. References such as SDK and SourceMap must be updated synchronously; the internal actual UUID remains unchanged, and the controller migrates the RUM Trace configuration and custom binding; renaming is not treated as rewriting historical telemetry data.
Allows null: False
Allows empty string: True
$maxCharacterLength: 48
Example: payment_web_v2
How to obtain or enter: Choose according to the application access migration plan, and first check whether the identifier is occupied in the same workspace.
dashboardUuids array Only available for the current custom application; when present, it fully replaces the binding; [] clears it; omitting it preserves it. Identifiers are trimmed and deduplicated; dsbd_ must be readable in the same workspace; itgr_ must be valid for the current language and not hidden; explicitly passing this field for non-custom applications returns 400.
Allows null: False
Example: ["dsbd_example"]
How to obtain or enter: Get the dsbd_ UUID from the dashboard list, or the itgr_ UUID from the built-in view list, and confirm that it is readable in the current workspace.
jsonContent json Optional JSON object; if omitted, it is treated as {}. The existing configuration is merged by field; when extend is present, the entire object is replaced. It must not contain type; even the same as the original type will be rejected.
Example: {"name": "支付Web", "extend": {}}
How to obtain or enter: Constructed from the application access method, display name, and business display extension.
jsonContent.name string Optional new display name; if omitted, it is retained; when provided, it must be a string of up to 256 characters and must not duplicate the name of another active application.
Allows null: False
Maximum length: 256
Example: 支付Web
How to obtain or enter: The application maintainer enters the display name.
jsonContent.type string This modify API prohibits providing the type key, including the original type; if present, it immediately returns 406 NotSupportModifyAppType.
Allows null: False
Allowed values: ['web', 'miniapp', 'android', 'ios', 'custom', 'reactnative', 'harmonyos']
Example: Do not submit; this field must be removed from this request
How to obtain or enter: The application type is determined by the existing configuration; do not copy type from another API into this request.
jsonContent.extend json Optional extension object; if omitted, it is retained; when present, it is replaced entirely; {} clears it; no recursive merge is performed. null, arrays, or strings are rejected by declaration.
Allows null: False
Example: {"team": "payment"}
How to obtain or enter: The caller saves application display/edit extensions; before modification, read first and copy the keys that need to be retained.
clientToken string Omitted or empty string preserves the original association, and does not generate or clear it; an explicit non-empty value is processed according to the active Token in the current workspace and the site-wide create-if-not-exists rule; do not reuse a revoked value or a value from another workspace. Do not enter the internal wctn_ UUID.
Allows null: False
Allows empty string: True
Example: <RUM-CLIENT-TOKEN>
How to obtain or enter: Obtain the actual plaintext Token from Client Token Management in the current workspace; if omitted or an empty string is used in this modification, the original association is retained and no new one is generated. Do not enter DF-API-KEY or an internal wctn_ UUID.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/rum_cfg/payment_web/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"jsonContent":{"name":"支付Web新名称"}}'

Response

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

Field Type Description
content.id integer Database record number of the existing application; subsequent calls use appId.
content.uuid string Public compatibility alias that always equals appId, not the internal actual RumCfg UUID.
content.appId string Application identifier used by the SDK/queries.
content.workspaceUUID string UUID of the workspace to which it belongs.
content.status integer Database status; active is usually 0, and deleted 3 is not in the quick list.
content.creator string Creator; for OpenAPI, this is usually the Key resource UUID.
content.updator string Identifier of the principal that performed this modification.
content.createAt integer Creation time in Unix seconds.
content.updateAt integer Time when this modification was saved, in Unix seconds.
content.deleteAt integer Deletion time in Unix seconds; normally -1.
content.jsonContent object Application content object.
content.jsonContent.name string Application display name.
content.jsonContent.type string web/miniapp/android/ios/custom/reactnative/harmonyos.
content.jsonContent.extend object Optional saved dynamic extension; this key may be omitted when absent.
content.jsonContent.extend.Custom Key JSON Extension key-value saved by the caller; does not mean the server supports additional execution parameters.
content.clientToken string Plaintext when an explicit non-empty clientToken passes validation; when omitted/empty and retained, it is the internal Token UUID (wctn_), which cannot be used as an SDK credential.
content.declaration object or null Workspace common declaration attached to a non-empty business object; when not configured, it can be null or an empty object; an empty object is not added. It does not change the semantics of business fields with the same name on the entity itself.
{
  "code": 200,
  "content": {
    "id": 123,
    "uuid": "payment_web",
    "appId": "payment_web",
    "workspaceUUID": "wksp_example",
    "status": 0,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785427260,
    "deleteAt": -1,
    "jsonContent": {
      "name": "支付Web新名称",
      "type": "web",
      "extend": {
        "team": "payment"
      }
    },
    "clientToken": "wctn_example",
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

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

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
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 Top-level JSON is not an object Partial JSON file format error Submit an object.
406 ft.NotSupportModifyAppType The type key appears in jsonContent, even if it is the original type Modifying the application type of an existing application is not supported yet Omit type entirely; if another platform is needed, create another application.
404 ft.NotFoundRumSet When dashboardUuids is explicitly provided, the target application does not exist/is deleted/is in another workspace The specified RUM setting was not found Get an existing appId from the current workspace quick list.
400 ft.SignNameRepeat Custom appId/newAppId is already used by an active configuration in the current workspace An identifier with the same name payment_web already exists in the current workspace Use the quick list to verify; for modification, locate the original appId; choose an unused identifier.
400 ft.RumSetNameRepeat An active application in the same workspace already uses this name A RUM configuration named 支付Web already exists in the current workspace Read the application configuration corresponding to the current appId and check the names of other active applications, then choose an unused new name; after a failure, read it back first and do not repeatedly create applications.
400 ft.InvalidRumDashboardID dashboardUuids is passed for a non-custom application, or the custom view identifier is invalid/inaccessible The dashboard associated with the custom RUM application is invalid or inaccessible Only custom applications can update bindings; verify readable UUIDs.
400 ft.RumClientTokenUnavailable The explicitly provided Client Token exists but its status is not active This Client Token is no longer available; replace it or regenerate it Choose the plaintext of an active Token in the current workspace; to retain the original association, omit clientToken or pass an empty string; do not use a revoked Token.
400 ft.RumClientTokenWorkspaceMismatch The explicit Token is already used by another workspace This Client Token is already used by another workspace; replace it or regenerate it Use an independent Token for the current workspace; do not copy collection credentials from another workspace.
429 ft.OperationTooFrequently Another RUM create/modify/delete/Token operation in the current workspace holds the write lock and it is not acquired within 5 seconds Your operation is too frequent, please try again later Wait for other operations to complete and back off; read back the current state before retrying, and do not modify concurrently.
500 ft.InternalServerError Database/lock service, historical configuration format, or unhandled system exception; when modifying a missing application without passing dashboardUuids, it may also access an empty object first and cause a 500 Internal error First use the current workspace application quick list to verify the actual configuration; the write may already be committed, so avoid repeatedly creating or repeatedly changing the Token; retain the traceId and ask the administrator to verify.

Feedback

Is this page helpful?