POST /events/notifications
Use this method to or generate a test event that pushes to a specific push notification service or subscription.
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/events/notifications
Query parameters
Parameters | Required / Optional | Description |
---|---|---|
includeAttributes=test | Required | Generate a test event that gets pushed to a specific push notification service or subscription |
The following example generates a test event that gets pushed to the specified target.
POST https://192.0.2.0/events/notifications?includeAttributes=test
Request body
Attributes | Required / Optional | Type | Definition | ||
---|---|---|---|---|---|
targetID | Required | String | If targetType is pusher, this is the type of push notification service. This can be one of the following values.
If targetType is subscriber, this is the subscription UID. To obtain the subscription UID, use the GET /events/notifications/subscriptions method. | ||
targetType | Optional | Integer | Target of the test action. This can be one of the following values.
|
This example retrieves information about the Android the push notification service:
{
"targetType":"pusher",
"targetID":"AndroidPusher"
}
This example retrieves information for a subscription with UID 1.
{
"targetType":"subscriber",
"targetID":"1"
}
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
401 | Unauthorized | The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
None
Give documentation feedback