• Simple Message Notification

smn
  1. Help Center
  2. Simple Message Notification
  3. API Reference
  4. APIs
  5. Subscription Operations
  6. Deleting a Subscription

Deleting a Subscription

Description

  • API name

    Unsubscribe

  • Function

    Delete a specified subscription.

URI

  • URI format

    DELETE /v2/{project_id}/notifications/subscriptions/{subscription_urn}

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID

    subscription_urn

    Yes

    String

    Resource identifier of a subscription, which is unique

Request

Request example
DELETE /v2/{project_id}/notifications/subscriptions/urn:smn:regionId:762bdb3251034f268af0e395c53ea09b:test_topic_v1:2e778e84408e44058e6cbc6d3c377837

Response

  • Parameter description

    Parameter

    Type

    Description

    request_id

    String

    Request ID, which is unique

  • Response example
    {
        "request_id":"f3197b274a6b473a8007eed79e716c30"
    }

Returned Value

See section Returned Value.

Error Code

See section Error Code.