+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Push Message (POST)

Send message with different options.


Description

Sends a push notifications to the specified targets and returns HTTP return code 202 when the request to send the message is accepted.


Method

POST


Path

/apps/applicationId/messages


Example


Path Parameters


Header Parameters

Some header parameters are optional.


Consumes

application/json


Produces

application/json


Payload

The payload in JSON format has values for message, target, and settings.


JSON Example


Payload Properties

The payload has the following properties:

The message has the following properties:

The settings has the following properties:

The apns has the following properties:

The gcm has the following properties:

The wns has the following properties:

The badge has the following properties:

The raw has the following properties:

The tile has the following properties:

The visual has the following properties:

The binding has the following properties:

The image has the following properties:

The text has the following properties:

The toast has the following properties:

The audio has the following properties:

The target has the following properties:


Response

The details of the message that is retrieved.


JSON Example


Response Properties

The response has the following properties:

The messages has the following properties:

The message has the following properties:


Errors

400

403

404

500

Parent topic: REST API for the MobileFirst Server push service