All Products
Search
Document Center

:UpdateQualityFollower

最終更新日:Nov 20, 2023

Updates a subscription relationship.

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 Yes UpdateQualityFollower

The operation that you want to perform. Set the value to UpdateQualityFollower.

ProjectName String Yes autotest

The name of the compute 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, 5, 6, 7, 8, and 9. The value 1 indicates that the notification is sent by email. The value 2 indicates that the notification is sent by email and text message. The value 4 indicates that the notification is sent by a DingTalk chatbot. The value 5 indicates that the notification is sent by a DingTalk chatbot to all members in a DingTalk group. The value 6 indicates that the notification is sent by Lark. The value 7 indicates that the notification is sent by WeCom. The value 8 indicates that the notification is sent by webhook. The value 9 indicates that the notification is sent by phone call.

ProjectId Long Yes 123

The DataWorks workspace ID. You can log on to the DataWorks console to obtain the ID.

Response parameters

Parameter

Type

Example

Description

HttpStatusCode Integer 200

The HTTP status code.

Data Boolean true

Indicates whether the update is successful.

ErrorMessage String You have no permission

The error message.

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

The request ID.

ErrorCode String 401

The error code.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateQualityFollower
&ProjectName=autotest
&FollowerId=1234
&Follower=1912232****
&AlarmMode=2
&ProjectId=123
&<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, see Service error codes.