/api/notification
PUT /api/notification/{id}
Changed onUpdate a notification, can also update its subscriptions, handlers. Return the updated notification.
creator_id (owner) can be reassigned here only by superusers (e.g. the admin 'Edit alert' modal's owner picker). mi/can-update? rejects a non-superuser reassignment attempt with 403; the model's before-update hook is the backstop. Echoing back the unchanged value is fine.
put/api/notification/{id}
Request
- Base URL(relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Path parameters
idinteger required
value must be an integer greater than zero.
Request body
Response
Successful response
Changes
- breaking
removed
subschema #1subschema #2subschema #3from the request bodyoneOflist - info
added
subschema #1subschema #2to the request bodyanyOflist
- breaking
- breaking
removed
subschema #1subschema #2subschema #3from the request bodyoneOflist - info
added
subschema #1subschema #2subschema #3to the request bodyoneOflist
- breaking