message
Create a message.
Changed onNOTE: 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
- Base URLhttp://localhost
- Auth
- API key in header Authorization
- or API key in header X-Gotify-Key
- or API key in query parameter token
- or API key in header Authorization
- or API key in header X-Gotify-Key
- or API key in query parameter token
- or HTTP basic
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"
}Changes
- info
the endpoint scheme security
basicAuthwas added to the API - info
the endpoint scheme security
clientTokenAuthorizationHeaderwas added to the API - info
the endpoint scheme security
clientTokenHeaderwas added to the API - info
the endpoint scheme security
clientTokenQuerywas added to the API
- info
- info
the endpoint scheme security
appTokenAuthorizationHeaderwas added to the API
- info