Add asset links to a single alarm
PUT/alarm/assets
Adds links between assets and one existing alarm.
The request body is a list for backward compatibility, but this operation now has single-alarm semantics:
every item must contain the same id.realm and the same id.alarmId. The alarm must exist in that realm,
every asset must exist in the same realm, and the authenticated user must have access to that realm.
Existing links are left unchanged; duplicate links in the request or links that already exist are ignored. This operation does not remove existing links from the alarm.
Request
Responses
- 204
- 400
- 401
- 403
- 404
Asset links were added, or already existed
Invalid request body, multiple alarm IDs or realms were provided, or the alarm/assets are not all in the same realm
Authentication is required
The authenticated user is not allowed to write alarms in the requested realm
The alarm or one or more assets do not exist