You can call this operation to update the subscription relationship of a UpdateQualityFollower.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Required UpdateQualityFollower

The operation that you want to perform.

AlarmMode Integer Yes 2

Subscription Information: 1 indicates email, 2 indicates email and text message, 4 indicates DingTalk group chatbot, and 5 indicates DingTalk group chatbot @ all.

Follower String Required 1912232****

The subscriber.

FollowerId Long Yes 1234

The ID of the subscription.

ProjectName String Required autotest

The name of the database engine or data source.

RegionId String Required cn-shanghai

The ID of the region where your project resides.

Response parameters

Parameter Type Example Description
Data Boolean true

Indicates whether the DQC rule has been changed.

ErrorCode String 401

The error code.

ErrorMessage String You have no permission

The returned message.

HttpStatusCode Integer 200

The HTTP status code.

RequestId String 576b9457-2cf5-4****

The ID of the request.

Success Boolean true

Indicates whether the call is successful.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateQualityFollower
&AlarmMode=2
&Follower=1912232****
&FollowerId=1234
&ProjectName=autotest
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<RequestId>576b9457-2cf5-4****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>true</Data>
<ErrorCode>401</ErrorCode>
<ErrorMessage>You have no permission</ErrorMessage>
<Success>true</Success>

JSON format

{
    "RequestId": "576b9457-2cf5-4****",
    "HttpStatusCode": 200,
    "Data": true,
    "ErrorCode": 401,
    "ErrorMessage": "You have no permission",
    "Success": true
}

Errors

For a list of error codes, visit the API Error Center.