Modifies the parameters of a subscription.

Each request consists of the following parts:

  • Request line

    PUT /topics/$TopicName/subscriptions/$SubscriptionName? metaoverride=true HTTP/1.1

  • Operation-specific URI parameters

    To modify the parameters of a subscription, you can specify metaoverride=true in the URI.

  • Operation-specific request headers

    None. For more information about common request headers, see Common parameters.

  • Request Body

    The request body is in the XML format. The request body includes the parameters that are used to modify a subscription.

    Parameter Required Description Value
    NotifyStrategy No The retry policy that is applied if an error occurs during message delivery to the endpoint. Valid values: BACKOFF_RETRY and EXPONENTIAL_DECAY_RETRY. Default value: BACKOFF_RETRY. For more information about the retry policy, see NotifyStrategy.

Response

Each response consists of the following parts:

  • HTTP Status Code

    HTTP/1.1 204 No Content

  • Operation-specific response headers

    None. For more information about common response parameters, see Common parameters.

  • Response Body

    None.

Examples

Sample requests

PUT /topics/$TopicName/subscriptions/$SubscriptionName? metaoverride=true HTTP/1.1
Host: $AccountId.mns.cn-hangzhou.aliyuncs.com
Date: Tue, 08 Dec 2015 06:09:22 GMT
Authorization: MNS 15B4D3461F177624206A:rNT4xclLS297/n0UFYIezzHJI7Q=
x-mns-version: 2015-06-06
<? xml version="1.0" encoding="utf-8"? >
<Subscription xmlns="http://mns.aliyuncs.com/doc/v1/">
    <NotifyStrategy>BACKOFF_RETRY</ NotifyStrategy>
</Subscription>

Sample success responses

HTTP/1.1 204 No Content
x-mns-request-id:56667412B2B71C9C16000027
x-mns-version: 2015-06-06

Special error

Error code Error message HTTP status code
SubscriptionNotExist The subscription you provided does not exits. 404