POST api/admin/push-notifications/device-registration
Registers a mobile device to the push notifications service.
Request Information
URI Parameters
None.
Body Parameters
An object that contains the token that represents the device.
PushNotificationsRegistrationInput| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceToken | string |
Required |
|
| Platform | MobilePlatform |
Required |
|
| CredibleApplicationId | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"DeviceToken": "sample string 1",
"Platform": 0,
"CredibleApplicationId": "sample string 2"
}
application/xml, text/xml
Sample:
<PushNotificationsRegistrationInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO.ActionInputs"> <CredibleApplicationId>sample string 2</CredibleApplicationId> <DeviceToken>sample string 1</DeviceToken> <Platform>Ios</Platform> </PushNotificationsRegistrationInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
An Http response message with the following status codes: 204 = success (no content returned), 400 = bad request (the request is malformed or with invalid data), 403 = forbidden (the employee is not recognized) 404 = not found (this is returned when the supplied device token is not found or the domain does not exists.) 500 = something went wrong (the request was not processed).
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |