CreatePushNotificationDto
defaultTitlestringobligatoire
defaultMessagestringobligatoire
targetstringobligatoire
Valeurs possibles : [ALL, SPECIFIC]
typestringobligatoire
Valeurs possibles : [INSTANT, SCHEDULED]
categorystringobligatoire
Informative vs. commercial classification — required so the client's consent (pushInformativeEnabled/pushCommercialEnabled) can be checked at send time.
Valeurs possibles : [INFORMATIVE, COMMERCIAL]
clients object[]
Array [
idstringobligatoire
titlestring
messagestring
]
scheduleAtstring<date-time>
CreatePushNotificationDto
{
"defaultTitle": "string",
"defaultMessage": "string",
"target": "ALL",
"type": "INSTANT",
"category": "INFORMATIVE",
"clients": [
{
"id": "string",
"title": "string",
"message": "string"
}
],
"scheduleAt": "2024-07-29T15:51:28.071Z"
}