Updates a subscription relationship.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateQualityFollower |
The operation that you want to perform. Set the value to UpdateQualityFollower. |
ProjectName | String | Yes | autotest |
The name of the computing engine instance or data source. |
FollowerId | Long | Yes | 1234 |
The ID of the subscription relationship. |
Follower | String | Yes | 1912232**** |
The name of the subscriber. |
AlarmMode | Integer | Yes | 2 |
The notification method. Valid values: 1, 2, 4, and 5. 1 indicates that the notification is sent by email. 2 indicates that the notification is sent by email and text message. 4 indicates that the notification is sent by a DingTalk chatbot. 5 indicates that the notification is sent by a DingTalk chatbot to all members in a DingTalk group. |
RegionId | String | Yes | cn-shanghai |
The region ID of the workspace. For example, the ID of the China (Shanghai) region is cn-shanghai, and the ID of the China (Zhangjiakou) region is cn-zhangjiakou. The system determines the value of this parameter based on the endpoint that is used to call the operation. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
HttpStatusCode | Integer | 200 |
The HTTP status code returned. |
Data | Boolean | true |
Indicates whether the subscription relationship is updated. |
ErrorMessage | String | You have no permission |
The error message returned. |
RequestId | String | 576b9457-2cf5-4**** |
The ID of the request. |
ErrorCode | String | 401 |
The error code returned. |
Success | Boolean | true |
Indicates whether the request is successful. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateQualityFollower
&ProjectName=autotest
&FollowerId=1234
&Follower=1912232****
&AlarmMode=2
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateQualityFollowerResponse>
<HttpStatusCode>200</HttpStatusCode>
<Data>true</Data>
<ErrorMessage>You have no permission</ErrorMessage>
<RequestId>576b9457-2cf5-4****</RequestId>
<ErrorCode>401</ErrorCode>
<Success>true</Success>
</UpdateQualityFollowerResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"HttpStatusCode" : 200,
"Data" : true,
"ErrorMessage" : "You have no permission",
"RequestId" : "576b9457-2cf5-4****",
"ErrorCode" : 401,
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.