POST masters/copy

Overview

This method is used to copy an existing master. When a master is copied the name must be changed and it will be set to a disabled state. All other master settings will be retained.

 

Resource URI

 https://api.yesmail.com/v2/masters/copy

Call Description

The POST /v2/masters/copy call duplicates, disables and renames the requested master

HTTP Return Codes

 

Code

Description

200 OK

Returned when the master ID exists and master can be copied.

400 Bad Request

Returned when the master name and id was not provided or name already exists in the request.

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.

Request

Description is optional but useful

{
  "id":1284713,
  "name": "Your current options",
  "description": "Master created from 1284713"
}

Response

Full master response returned (truncated example)

{
  "id": "1284717",
  "lastUpdate": "2016-07-20T22:54:01.000Z",
  "name": "Your current options",
  "status": "disabled",
  "subscription": "Corporate",
  "divisionPosition": 6,
  "description": "Master created from 1284713",
  "delivery": {
    "type": "auto",
    "lastSend": "2016-07-21T10:41:00.000Z",
    "multiDeliveries": true,
    "obeyCompanyLimits": false,
    "countsTowardCompanyLimit": false,
    "priority": 1,
    "nextTimeToDeliver": "2016-07-21T10:41:00.000Z"
  },
  "schedule": {
    "start": "2016-07-21T10:41:00.000Z",
    "frequency": "once",
    "stop": "4000-01-01T00:00:00.000Z"
  },
  "template": {
    "encoding": "UTF-8",