Skip to main content
POST
Crée un brouillon ; son audience est estimée et datée

Authorizations

x-api-key
string
header
required

Clé API du projet, créée dans le dashboard (Développeurs › Clés API et SDK). Une clé dxn_prod_ vise la production, une clé dxn_stag_ le staging.

Body

application/json
name
string
required
Required string length: 2 - 120
applicationIds
string[]
required
Required array length: 1 - 10 elements
Pattern: ^(?:[0-9a-fA-F]{24}|[A-Z0-9]{1,16}-[0-9]{6})$
labels
string[]
Maximum array length: 10
Required string length: 1 - 40
platforms
enum<string>[]
Required array length: 1 - 3 elements
Available options:
android,
ios,
web
push
object
segmentId
string
Pattern: ^[0-9a-fA-F]{24}$
excludedSegmentIds
string[]
Maximum array length: 20
Pattern: ^[0-9a-fA-F]{24}$
templateId
string
Pattern: ^[0-9a-fA-F]{24}$
content
object
scheduledAt
string<date-time>
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
abTest
object
conversionGoal
object
delivery
object

Response

201

Campagne créée en brouillon