You need to enable JavaScript to run this app.
导航
UpdateWebhook
最近更新时间:2024.06.26 16:24:45首次发布时间:2024.06.26 12:08:55

更新告警回调。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=UpdateWebhook&Version=2018-01-01
ServiceName : Volc_Observe
Region : cn-beijing 
AccessKey : xxx
SecretKey : xxx

调试

请求参数

Query

参数类型是否必选示例值描述
ActionStringUpdateWebhook接口名称。当前 API 的名称为 UpdateWebhook
VersionString2018-01-01接口版本。当前 API 的版本为 2018-01-01

Body

参数类型是否必选示例值描述
IdString180514893563335****webhook ID。

Name

String

test

webhook的名称。

  • 长度限制不超过512字节。
  • 名称可以重复。

Type

String

wecom

webhook的类型。

  • custom:自定义webhook
  • wecom:微信webhook
  • lark:飞书webhook
  • dingtalk:钉钉webhook

Url

String

https://qyapi.weixin.qq.com/xxxxxx-xxxxxx

webhook的地址。

注意

请填写可以连通公网的地址,且不能超过1000个字节。

返回参数

参数类型示例值描述
DataArray of String["180514893563335****"]返回内容。

请求示例

POST https://open.volcengineapi.com?Action=UpdateWebhook&Version=2018-01-01
ServiceName: Volc_Observe
Region: cn-beijing
AccessKey: xxx
SecretKey: xxx
{
    "Id": "180514893563335****",
    "Name": "test",
    "Type": "wecom",
    "Url": "https://qyapi.weixin.qq.com/xxxxxx-xxxxxx"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20240624160147DE408831198A7C2*****",
        "Action": "UpdateWebhook",
        "Version": "2018-01-01",
        "Service": "Volc_Observe",
        "Region": ""
    },
    "Result": {
        "Data": [
            "180514893563335****"
        ]
    }
}

错误码

本接口无特有的错误码。更多信息请参见错误码