PUT api/customers/{customerId}/push/{appShortName}/{registrationId}
Create or update a registration with the specified registration ID for the given customer and app. Returns 200-OK or 410-Gone if registration has expired or is deleted. This method only accepts meter IDs.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId |
Customer ID |
integer |
Required |
appShortName |
Short name of mobile app, e.g. smartliv or rknett. |
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 meter IDs.
DeviceRegistrationRequestName | Description | Type | Additional information |
---|---|---|---|
Platform | string |
Required |
|
Handle | string |
Required |
|
MeterIds | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Platform": "sample string 1", "Handle": "sample string 2", "MeterIds": [ "sample string 1", "sample string 2" ] }
text/html
Sample:
{"Platform":"sample string 1","Handle":"sample string 2","MeterIds":["sample string 1","sample string 2"]}
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.