Zielgruppe erstellen
Die Methode CreateProfile ermöglicht es, eine Zielgruppe in der eworx Marketing Suite zu erstellen.
Request Properties
Profile
Das Zielgruppen-Objekt mit allen Eigenschaften.
Typ der Eigenschaft: Profile
Beispiel Request „Zielgruppen erstellen“
Erstellt eine statische Zielgruppe die für den Kampagnenversand verwendet werden kann und den Namen „Statische Zielgruppe“ hat.
JSON
{
"request": {
"Language": "DE",
"SecurityContext": {
"Account": "account",
"Username": "username",
"Password": "*****",
"Source": "application name"
},
"Profile": {
"Type": 2,
"Name": "Statische Zielgruppe",
"IsSystemProfile": false,
"Description": "Eine statische Zielgruppe die über die API erstellt wurde.",
"AvailForSend": true
}
}
}
XML
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:ser="http://www.mailworx.at/interfaces/serviceagent/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header/>
<soap:Body>
<ser:CreateProfile>
<ser:request>
<ser:Language>DE</ser:Language>
<ser:SecurityContext>
<ser:Account>account</ser:Account>
<ser:Username>username</ser:Username>
<ser:Password>*****</ser:Password>
<ser:Source>application name</ser:Source>
</ser:SecurityContext>
<ser:Profile>
<ser:Type>Static</ser:Type>
<ser:Name>Statische Zielgruppe</ser:Name>
<ser:IsSystemProfile>false</ser:IsSystemProfile>
<ser:Description>Eine statische Zielgruppe die über die API erstellt wurde.</ser:Description>
<ser:AvailForSend>true</ser:AvailForSend>
</ser:Profile>
</ser:request>
</ser:CreateProfile>
</soap:Body>
</soap:Envelope>
Response Objekt
NewProfileGuid
Die Id der neu erstellten Zielgruppe.
Typ der Eigenschaften: GUID