+49 69 83008980 service@xqueue.com

Benötigen Sie Hilfe?

Mailing – Add Custom Mailing Properties

Sie sind hier:
< Alle Themen
 

Add custom mailing properties for mailing with provided ID. If custom mailing properties with given name exist, their values will be updated.

Length of property name and property value should not be larger than 255 symbols.

POST https://api.maileon.com/1.0/mailings/:mailingid/settings/propertie

Response

HTTP status code Description
201 Created If everything was ok.
400 Bad request Property or value can not be accepted
404 Not found Mailing ID can not be found
409 Conflict Mailing is sealed and can not be changed
 

Example

201 Created

POST https://api.maileon.com/1.0/mailings/1234/settings/properties
<properties>
    <property>
        <key>property_name1</key>
        <value>property_value1</value>
    </property>
    <property>
        <key>property_name2</key>
        <value>property_value2</value>
    </property>
</properties>
201

400 Bad Request

POST https://api.maileon.com/1.0/mailings/1234/settings/properties
<property>
    <key>property_name1</key>
    <value>property_value1</value>
</property>
<property>
    <key>property_name2</key>
    <value>property_value2</value>
</property>
400

404 Not Found

POST https://api.maileon.com/1.0/mailings/3416/settings/properties
<properties>
    <property>
        <key>property_name1</key>
        <value>property_value1</value>
    </property>
    <property>
        <key>property_name2</key>
        <value>property_value2</value>
    </property>
</properties>
404
<error><message>Mailing with id 3416 not found.</message></error>

409 Conflict

POST https://api.maileon.com/1.0/mailings/3040/settings/properties
<properties>
    <property>
        <key>property_name1</key>
        <value>property_value1</value>
    </property>
    <property>
        <key>property_name2</key>
        <value>property_value2</value>
    </property>
</properties>
409
<error><message>Mailing with ID 3040 cannot be changed as it is sealed.</message></error>

 

Inhaltsverzeichnis