/api/notification

PUT /api/notification/{id}

Changed on

Update 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)
  • Auth
    API key in header X-API-Key

Path parameters

idinteger required

value must be an integer greater than zero.

Request body

OR

Response

Successful response

Changes

    • breaking

      removed subschema #1 subschema #2 subschema #3 from the request body oneOf list

    • info

      added subschema #1 subschema #2 to the request body anyOf list

    • breaking

      removed subschema #1 subschema #2 subschema #3 from the request body oneOf list

    • info

      added subschema #1 subschema #2 subschema #3 to the request body oneOf list