添加 RUM 配置¶
POST /api/v1/rum_cfg/add
概述¶
Body 请求参数¶
| 参数名 | 类型 | 必选 | 说明 | 
|---|---|---|---|
| customIdentity | string | 自定义标识(按字符长度最大19个字符) 允许为空: False 允许为空字符串: True $maxCharacterLength: 19 | |
| appId | string | 自定义 appId(按字符长度最大48个字符) 允许为空: False 允许为空字符串: True $maxCharacterLength: 48 | |
| dashboardUuids | array | 内置视图 uuids 允许为空: False | |
| jsonContent | json | Y | JSON 格式内容 允许为空: False | 
| jsonContent.name | string | Y | 应用名称 允许为空: False 最大长度: 256 | 
| jsonContent.type | string | Y | 应用类型 允许为空: False 可选值: ['web', 'miniapp', 'android', 'ios', 'custom', 'reactnative'] | 
| jsonContent.extend | json | 其他设置(如需增加同级字段请告知) 允许为空: False | |
| clientToken | string | clientToken 允许为空: False 允许为空字符串: True | 
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/rum_cfg/add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"appId":"fe52be60_2fac_11ee_8ee7_0ffb4a4ef591","jsonContent":{"name":"ass","type":"ios"},"clientToken":"xxx"}' \
--compressed
响应¶
{
    "code": 200,
    "content": {
        "appId": "fe52be60_2fac_11ee_8ee7_0ffb4a4ef591",
        "createAt": 1690813059,
        "creator": "acnt_xxxx32",
        "deleteAt": -1,
        "id": null,
        "jsonContent": {
            "name": "ass",
            "type": "ios"
        },
        "status": 0,
        "updateAt": 1690813059,
        "updator": "acnt_xxxx32",
        "uuid": "fe52be60_2fac_11ee_8ee7_0ffb4a4ef591",
        "workspaceUUID": "wksp_xxxx32",
        "clientToken": "xxx"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "5891899618838740754"
}