+49 69 83008980 service@xqueue.com
Benötigen Sie Hilfe?

Create Contact Preference

Sie sind hier:
< Alle Themen
This method creates a contact preference under a given contact preference category.

Request

POST https://api.maileon.com/1.0/contacts/preference_categories/:categoryName/preferences

Content-Type: application/vnd.maileon.api+xml; charset=utf-8

Path Parameter

NameDescription
categoryNameThe name of the contact preference category.

Payload

The root element must be named preference

NameDescription
nameThe name of the contact preference. Must not exceed 255 characters.
descriptionThe description. Must noch exceed 255 characters.

Example

POST https://api.maileon.com/1.0/contacts/preference_categories/Development/preferences
Authorization: Basic: XXXXXXXXXXXXXXXX 
Content-Type: application/vnd.maileon.api+xml; charset=utf-8
<preference>
    <name>Shopware</name>
    <description>News about Shopware development</description>
</preference>


Status: 201 Created

 

Response

HTTP status codeDescription
201 CreatedPreference created successfully
400 Bad RequestIf there was an error in the submitted body.
404 Not FoundIf the contact preference category with the given name was not found.

 

Inhaltsverzeichnis

Bleiben Sie Up-to-Date und profitieren Sie von spannenden News und Aktionen.

Maileon ist ein Produkt der XQueue GmbH