DELETE content-blocks/{id}

Overview

The DELETE /v2/content blocks/{id} method logically deletes a content block.

Resource URI

delete https://api.yesmail.com/v2/content-blocks/{id}

HTTP Return Codes

Code Description
204 No Content Returned when the content block ID exists and has been deleted.
401 Unauthorized Api-Key or Api-User headers are missing or invalid.
404 Not Found The content block ID cannot be found, may not exist for the given Api-User or is archived.

 

Request

Request to remove content block 12.

> DELETE /v2/content-blocks/12 HTTP/1.1
> Host: api.yesmail.com
> Accept: application/json
> Api-Key: my-secret-key
> Api-User: jefftronics3

Response

Response indicates the content block no longer exists.

< 204 No Content
< Cache-Control: no-cache
< Content-Type: application/json
< Accept: application/json
< Last-Modified: Wed, 28 Sep 2015 16:08:20 GMT
< Tracking-Id: 88776655