Send a notification to one or more targets
POSThttps://demo.openremote.io/api/master/notification/alert
Send a notification to one or more targets
Request
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
- application/json
Body
namestring
message
object
targets
object[]
repeatFrequencystring
Possible values: [ALWAYS
, ONCE
, HOURLY
, DAILY
, WEEKLY
, MONTHLY
, ANNUALLY
]
repeatIntervalstring
Responses
- default
default response
- */*
- Schema
Schema
any
Authorization: oauth2
name: openidtype: oauth2flows: {
"clientCredentials": {
"tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
"refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
"scopes": {
"profile": "profile"
}
},
"authorizationCode": {
"authorizationUrl": "/auth/realms/master/protocol/openid-connect/auth",
"tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
"refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
"scopes": {
"profile": "profile"
}
}
}
- curl
- nodejs
- java
- python
- ruby
- csharp
- go
- php
- powershell
- CURL
curl -L 'https://demo.openremote.io/api/master/notification/alert' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"name": "string",
"message": {
"type": "string"
},
"targets": [
{
"type": "REALM",
"id": "string",
"locale": "string",
"allowedLocales": [
"string"
],
"data": {}
}
],
"repeatFrequency": "ALWAYS",
"repeatInterval": "string"
}'
ResponseClear