DELETE subscribers/{id}/subscriptions/{name}

Overview

DELETE /v2/subscribers/{id}/subscriptions/{name} unsubscribes the specified subscriber from the specified division.

Note: This API call does not have a request payload. It also does not have a response payload. Instead, it has a response code of 204 No Content for a successful request.

Resource URI

delete https://api.yesmail.com/v2/subscribers/{id}/subscriptions/{name}

Call Description

The DELETE /v2/subscribers/{id}/subscriptions call unsubscribes the specified subscriber from the specified division.

HTTP Return Codes

Code

Description

204 No Content

The operation has been completed successfully; there is no response payload.

400 Bad Request

The subscriber is dead.

401 Unauthorized

The request requires user authentication.  Invalid Api-User and/or Api-Key header value.

404 Not Found

The server has not found anything matching the request resource.   For instance, the “id” or subscription does not exist.

409 Conflict

This occurs when the If-Match condition is used, and the specified ETag does not match the current ETag for the resource.