Create an alarm
POSThttps://demo.openremote.io/api/master/alarm
Create an alarm
Request
Query Parameters
assetIds string[]
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
Responses
- default
default response
- application/json
- Schema
- Example (from schema)
Schema
idint64
realmstringrequired
titlestring
contentstring
severitystringrequired
Possible values: [LOW
, MEDIUM
, HIGH
]
statusstringrequired
Possible values: [OPEN
, ACKNOWLEDGED
, IN_PROGRESS
, RESOLVED
, CLOSED
]
sourcestringrequired
Possible values: [MANUAL
, CLIENT
, GLOBAL_RULESET
, REALM_RULESET
, ASSET_RULESET
, AGENT
]
sourceIdstring
sourceUsernamestring
createdOndate-time
acknowledgedOndate-time
lastModifieddate-time
assigneeIdstring
assigneeUsernamestring
asset
object[]
{
"id": 0,
"realm": "string",
"title": "string",
"content": "string",
"severity": "LOW",
"status": "OPEN",
"source": "MANUAL",
"sourceId": "string",
"sourceUsername": "string",
"createdOn": "2024-07-29T15:51:28.071Z",
"acknowledgedOn": "2024-07-29T15:51:28.071Z",
"lastModified": "2024-07-29T15:51:28.071Z",
"assigneeId": "string",
"assigneeUsername": "string",
"asset": [
{
"id": "string",
"version": 0,
"createdOn": "2024-07-29T15:51:28.071Z",
"name": "string",
"accessPublicRead": true,
"parentId": "string",
"realm": "string",
"type": "string",
"path": [
"string"
],
"attributes": {
"delegate": {}
}
}
]
}
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 -X POST 'https://demo.openremote.io/api/master/alarm' \
-H 'Authorization: Bearer <token>'
ResponseClear