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

Update prepared push message

Available from

v14+


Query Parameters

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


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.

updatePushMessage(PushMessage pushMessage) : PushMessageResponse


Changes are allowed until the message is activated for sending.

SourcemobilePush
MethodPUT
Endpoint[REST URL]/mobilePush/updatePushMessage
Input

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

pushActionType, pushActionParams, buttonCategory, buttonActionType

buttonActioParams, mediaType, mediaUrl

OutputPush message modified
Request example

{
    "messageId" : 1
    "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", - optional
    "mediaUrl" : "https://staging11.shortest-route.com/qatest/imgproxy/img/110/5ac68ca5498a5.png",
    "scheduledTime" : "2020-07-31T12:44:46.966Z",
    "timeZone" : "Europe/Budapest"
}

Response code

200 

Response example

{
    "messageId": 1,
    "messageStatus": "SCHEDULED"
}

Request field description:

field

description

allowed values

required

messageIdmessage id
true
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