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

Create Targetgroup

Sie sind hier:
< Alle Themen
 
Creates a target group based on a given contact filter.

POST https://api.maileon.com/1.0/targetgroups

Body Data

You need to set an entity of a target group.

ParameterDefaultDescription
name/ trueName of the group. The name must be unique within the account. The name length must be in the range from 3 to 64 and should only contain alphanumeric characters or spaces.
type/ trueThe type of the group. Can be one of ‘regular’ and ‘test’.
contact_filter_id/ trueThe ID of the contact filter to base the group on.
 

Body Example

<targetgroup>
  <name>test1234</name>
  <type>regular</type>
  <contact_filter_id>2765</contact_filter_id>
</targetgroup>

Response Codes

HTTP status codeDescription
201 CreatedDefault status when everything worked well.
400 Bad requestSomething with the request is wrong, e.g. wrong xml syntax or missing values.
404 Not foundThe contact filter with the given ID does not exist.
409 ConflictA filter with the given name already exists.
500 ConflictAn unexpected error occured.An unexpected error occured.
 

Example

POST https://api.maileon.com/1.0/targetgroups
Content-Type: application/vnd.maileon.api+xml; charset=utf-8
Status: 201 Created
Content-Type: application/vnd.maileon.api+xml; charset=utf-8
<id>13</id>
Inhaltsverzeichnis

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

Maileon ist ein Produkt der XQueue GmbH

Newsletter Pop-Up