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

Im Maileon Help-Center finden Sie umfassende Dokumentationen zu unserem System.

Beliebte Suchanfragen: Importe | Rest-API | Integrationen | SMS

Create Contact Preference

Sie sind hier:
This method creates a contact preference under a given contact preference category. Please note, that there is a maximum number of preferences in a category of 20.

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

Name Description
categoryName The name of the contact preference category.

Payload

The root element must be named preference

Name Description
name The name of the contact preference. Must not exceed 255 characters.
description The 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 code Description
201 Created Preference created successfully
400 Bad Request If there was an error in the submitted body or the maximum amount of preferences in a category has been exceeded.
404 Not Found If the contact preference category with the given name was not found.
Inhaltsverzeichnis