POST api/customers/{customerId}/push/{appShortName}/send

Used for sending to Smartliv apps. Send the specified message as a push notification to the given meter IDs using the given app.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

Customer ID

integer

Required

appShortName

Short name of mobile app, e.g. smartliv or rknett.

string

Required

Body Parameters

Meters IDs to send to and the message content.

PushEnvelope
NameDescriptionTypeAdditional information
MeterIds

Collection of string

Required

Message

string

Required

Request Formats

application/json, text/json

Sample:
{
  "MeterIds": [
    "sample string 1",
    "sample string 2"
  ],
  "Message": "sample string 1"
}

text/html

Sample:
{"MeterIds":["sample string 1","sample string 2"],"Message":"sample string 1"}

Response Information

Resource Description

200-OK

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.