调用UpdateQualityFollower更新订阅关系。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UpdateQualityFollower |
要执行的操作。 |
AlarmMode | Integer | 是 | 2 |
订阅关系:1表示邮件、2表示邮件和短信、4表示钉钉群机器人、5表示钉钉群机器人@all。 |
Follower | String | 是 | 1912232**** |
订阅人。 |
FollowerId | Long | 是 | 1234 |
订阅关系的ID。 |
ProjectName | String | 是 | autotest |
引擎或者数据源的名称。 |
RegionId | String | 是 | cn-shanghai |
地域ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Boolean | true |
是否更新成功。 |
ErrorCode | String | 401 |
错误码。 |
ErrorMessage | String | You have no permission |
错误信息。 |
HttpStatusCode | Integer | 200 |
HTTP返回码。 |
RequestId | String | 576b9457-2cf5-4**** |
请求ID。 |
Success | Boolean | true |
调用是否成功。 |
示例
请求示例
http(s)://[Endpoint]/?Action=UpdateQualityFollower
&AlarmMode=2
&Follower=1912232****
&FollowerId=1234
&ProjectName=autotest
&RegionId=cn-shanghai
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>576b9457-2cf5-4****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>true</Data>
<ErrorCode>401</ErrorCode>
<ErrorMessage>You have no permission</ErrorMessage>
<Success>true</Success>
JSON
格式
{
"RequestId": "576b9457-2cf5-4****",
"HttpStatusCode": 200,
"Data": true,
"ErrorCode": 401,
"ErrorMessage": "You have no permission",
"Success": true
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交