Web Services API | Push notification web services
Modified on: Tue, 27 Jun 2023 4:47 PMCreate push notification
Creates (sends) a push notification.
- Url: /integration/ws/management/rest/pushnotification
- Method: POST
-
Headers:
- Accept: version/format header
- X-Cloud-Auth-Token*: authorization header
-
Parameters:
- customer: key name of the cutomer to which the notified users belong to
- commonId: user commonId of the user to which send the push notification. Mandatory when no registrationId is specified
- registrationId: firebase registration id to which send the push notification. Mandatory when no username is specified
- notification*: map with predefined parameters for the push notification (more information)
- data: map with custom parameters for the push notification
-
Responses:
-
200: OK. Content:
- status: generic status
- location: generic location of the resultant resource, if any
- message: generic success or error message, if any
-
responsePlatforms: response for every platform it concerns. Each one with the content:
- status: status in the platform
- location: location of the resultant resource in the platform, if any
- message: success or error message in the platform, if any
-
200: OK. Content:
- Url example: http://netex.dev.learningcloud.me/integration/ws/management/rest/pushnotification
- Response example:
{ "location": null, "message": "", "responsePlatforms": {}, "status": 202 }