message
Create a message.
NOTE: When authenticating with a client token or basic auth, the request body must include "appid" referencing an application owned by the authenticated user. When authenticating with an application token, the application is derived from the token and any "appid" in the body is ignored.
post/message
Request body
Example request
{
"appid": 5,
"extras": {
"home::appliances::lighting::on": {
"brightness": 15
},
"home::appliances::thermostat::change_temperature": {
"temperature": 23
}
},
"message": "**Backup** was successfully finished.",
"priority": 2,
"title": "Backup"
}Response
Ok
Example response
{
"appid": 5,
"date": "2018-02-27T19:36:10.5045044+01:00",
"extras": {
"home::appliances::lighting::on": {
"brightness": 15
},
"home::appliances::thermostat::change_temperature": {
"temperature": 23
}
},
"id": 25,
"message": "**Backup** was successfully finished.",
"priority": 2,
"title": "Backup"
}