Page tree
Skip to end of metadata
Go to start of metadata

Create and scheduled push message


Available from

v14+


Query Parameters

NameTypeDescription
pushMessagePushMessageAn object that contains a definition of the push message to be created.

Result

TypeDescription
PushMessageResponseAn object that contains the response data.

Exceptions

TypeDescription
InvalidParameterExceptionOne of the parameters is invalid.
NoSuchObjectExceptionThe message ID or user ID cannot be found.
UnexpectedErrorExceptionAn unexpected backend error occurred.

createAndSchedulePushMessage(PushMessage pushMessage) : PushMessageResponse


This endpoint creates a new push message and schedules the message.

SourcemobilePush
MethodPOST
Endpoint[REST URL]/mobilePush/createAndSchedulePushMessage
Input

name, appId, selectionPlanId, content, messageTitle, notificationSound,

pushActionType, pushActionParams, buttonCategory, buttonActionType

buttonActioParams, mediaType, mediaUrl

OutputJson Object
Request example

{
    "name" : "test name",
    "appId" : "1585031493269",
    "selectionPlanId" : "768E488C-45C2-4A6F-800B-C569586F1DC5",
    "content" : "This is iOS test push ",
    "messageTitle" : "Hello",
    "description" : "description"
    "notificationSound" : "sound1.mp3",
    "pushActionType" : "LAUNCH_APP",
    "pushActionParams" : "www.test.com",
    "buttonCategory" : "apx_read_open",
    "buttonActionType" : "OPEN_LANDING_PAGE",
    "buttonActionParams" : "https://www.google.com/",
    "mediaType" : "IMAGE",
    "mediaUrl" : "https://staging11.shortest-route.com/qatest/imgproxy/img/110/5ac68ca5498a5.png",
    "scheduledTime" : "2020-07-31T12:44:46.966Z",
    "timeZone" : "Europe/Budapest"
}



Response code

201 Push Message Created,

Response example

{
    "status" : "success",
    "messageId" : 1,
}

Request field description:

field

description

allowed values

required

namemessage name
true
appIdmobile application id (created on UI)
true
selectionPlanIdselection plan id (created on UI) if empty, message will be sent to all optIn users
false
contenttext message content
true
messageTitletitle of message
true
descriptiondescription
false
notificationSoundoptional field, if added, sound must be defined in application
false
pushActionTypeaction typeLAUNCH_APP, OPEN_LANDING_PAGE, OPEN_DEEP_LINK, OPEN_STOREfalse
pushActionParamsurl params related with action type, required if action type is not equal to LAUNCH_APP
false
buttonCategorybuttons categoryapx_yes_no_open, apx_acc_dec_open, apx_buy_open, apx_read_openfalse
buttonActionTypeprimary button actionLAUNCH_APP, OPEN_LANDING_PAGE, OPEN_DEEP_LINK, OPEN_STOREfalse
buttonActionParamsurl params related with button action type, required if type is not equal to LAUNCH_APP
false
mediaTypemedia typeIMAGE, VIDEOfalse
mediaUrlurl address of media file from mapp content store
false
scheduledTimescheduled Time
false
timeZonetimeZone
false
  • No labels