POST masters/{id}/disable

Overview

This method is used to disable a master that has previously been enabled.

A disabled master can be re-enabled using the /v2/masters/{id}/enable method

Resource URI

 https://api.yesmail.com/v2/masters/{id}/disable

Call Description

The POST /v2/masters/{id}/disable call disables a specific master preventing delivery.

HTTP Return Codes

 

Code

Description

200 OK

Returned when the master ID exists and master can be enabled (may already be disabled).

400 Bad Request

Returned when the master is in a state that it cannot be set to "disabled".

401 Unauthorized

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

404 Not Found The Master ID cannot be found. May not exist for the given api-user or may be archived.