跳转到主要内容
POST
/
rum
/
application
/
update
应用更新
curl --request POST \
  --url 'https://api.flashcat.cloud/rum/application/update?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "application_id": "<string>",
  "team_id": 123,
  "application_name": "<string>",
  "type": "browser",
  "is_private": true,
  "no_geo": true,
  "no_ip": true,
  "alerting": {
    "enabled": true,
    "channel_ids": [
      123
    ]
  },
  "tracing": {
    "enabled": true,
    "endpoint": "<string>",
    "open_type": "popup"
  }
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
application_id
string
必填

应用ID

team_id
integer
必填

负责团队ID

application_name
string

应用名称,不传不更新

Required string length: 1 - 40
type
enum<string>

应用类型,不传不更新

可用选项:
browser
is_private
boolean

是否私有访问,不传不更新

no_geo
boolean

是否避免收集地理信息,不传不更新

no_ip
boolean

是否避免收集ip信息,不传不更新

alerting
object

告警配置,不传不更新

tracing
object

Tracing配置,不传不更新

响应

200 - application/json
error
object

错误信息,仅失败时存在