Create an email header

post

/api/REST/1.0/assets/email/header

Creates an email header that matches the criteria specified by the request body.

Request

Supported Media Types
Body ()
The request body defines the details of the email header to be updated.
Root Schema : EmailHeader
Type: object
Title: EmailHeader
Show Source
Nested Schema : fieldMerges
Type: array
A list of associated Field Merges.
Show Source
Nested Schema : FieldMerge
Type: object
Title: FieldMerge
Show Source
Nested Schema : Hyperlink
Type: object
Title: Hyperlink
Show Source
Back to Top

Response

Supported Media Types

201 Response

Success
Body ()
Root Schema : EmailHeader
Type: object
Title: EmailHeader
Show Source
Nested Schema : fieldMerges
Type: array
A list of associated Field Merges.
Show Source
Nested Schema : FieldMerge
Type: object
Title: FieldMerge
Show Source
Nested Schema : Hyperlink
Type: object
Title: Hyperlink
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Create a new email header:


POST /api/REST/1.0/assets/email/header
Content-Type: application/json 
			

Request body:


{
    "name":"Test Header",
    "body":"<p>Here is some text.</p>"
}
			

Response:


{
    "type":"EmailHeader",
    "id":"10",
    "createdAt":"1432563533",
    "createdBy":"19",
    "depth":"complete",
    "folderId":"314",
    "name":"Test Header",
    "permissions":"fullControl",
    "updatedAt":"1432563533",
    "updatedBy":"19",
    "body":"<p>Here is some text.</p>",
    "fieldMerges":[

    ],
    "hyperlinks":[

    ],
    "text":"Here is some text."
}
			
Back to Top