PUT api/apps/{appShortName}/push/{registrationId}
Create or update a registration with the specified registration ID for the given app. Returns 200-OK or 410-Gone if registration has expired or is deleted. This method handles several tag types (PushIdentifierTypes).
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
appShortName |
Short name of mobile app, e.g. florence. |
string |
Required |
registrationId |
Registration ID; reuse an existing or create a new one if needed with POST .../push). |
string |
Required |
Body Parameters
Platform (e.g. apns or gcm), handle for device (e.g. device token or GCM registration ID) and tags.
PushRegistrationRequestName | Description | Type | Additional information |
---|---|---|---|
Platform | string |
Required |
|
Handle | string |
Required |
|
Tags | Collection of PushTag |
None. |
|
NotificationTemplateVersion | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Platform": "sample string 1", "Handle": "sample string 2", "Tags": [ { "IdentifierType": 0, "IdentifierValue": "sample string 1" }, { "IdentifierType": 0, "IdentifierValue": "sample string 1" } ], "NotificationTemplateVersion": 1 }
text/html
Sample:
{"Platform":"sample string 1","Handle":"sample string 2","Tags":[{"IdentifierType":0,"IdentifierValue":"sample string 1"},{"IdentifierType":0,"IdentifierValue":"sample string 1"}],"NotificationTemplateVersion":1}
Response Information
Resource Description
200-OK or 410-Gone if registration has expired.
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.