POST masters/{id}/enable

Overview

This method is used to enable a master that is ready for delivery. In order to enable a master there are several components of the master than must be set. These include required fields on the message envelope, message content, targeting and a schedule. See PUT masters for more details. A message must be in the disabled state before it can be enabled.

Once enabled the master may be disabled using the POST /v2/masters/{id}/disable method. 

Resource URI

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

Call Description

The POST /v2/masters/{id}/enable call enables a specific master for delivery. There is no request payload.

HTTP Return Codes

 

Code

Description

200 OK

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

400 Bad Request

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

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.