修改RUM配置¶
POST /api/v1/rum_cfg/{appid}/modify
概述¶
路由参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
appid | string | Y | appId |
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
newAppId | string | 新的AppId 允许为空: False 允许为空字符串: True $maxCharacterLength: 48 |
|
dashboardUuids | array | 内置视图uuids 允许为空: False |
|
jsonContent | json | JSON格式内容 |
|
jsonContent.name | string | 应用名称 允许为空: False 最大长度: 256 |
|
jsonContent.type | string | 应用类型,针对现有的业务场景,不支持修改类型 允许为空: False 可选值: ['web', 'miniapp', 'android', 'ios', 'custom'] |
|
jsonContent.extend | json | 其他设置(如需增加同级字段请告知) 允许为空: False |
|
clientToken | string | clientToken 允许为空: False 允许为空字符串: True |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/rum_cfg/fe52be60_xxx_0ffb4a4ef591/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"newAppId":"fe52be60_xxx_0ffb4a4ef591","jsonContent":{"name":"assddd"}, "clientToken":"xxx"}' \
--compressed
响应¶
{
"code": 200,
"content": {
"appId": "fe52be60_xxx0ffb4a4ef591",
"createAt": 1690813059,
"creator": "acnt_xxxx32",
"deleteAt": -1,
"id": 1137,
"jsonContent": {
"name": "assddd",
"type": "ios"
},
"status": 0,
"updateAt": 1690813174.8154745,
"updator": "acnt_xxxx32",
"uuid": "fe52be60_xxx8ee7_0ffb4a4ef591",
"workspaceUUID": "wksp_xxxx32",
"clientToken": "xxx"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "6253921915388520691"
}