Subscribes the authenticated user to the given topic. The request
body is the subscription's context and is validated before it is
stored: it must be a JSON object matching the topic's context JSON
Schema, any dataset it references (organizationId + datasetId)
must exist, a subjectUserId must be the caller's own id, and an
organization it is scoped to without a dataset must be one the caller
belongs to. An empty body is treated as {}. Calling this again with
the same context returns that subscription rather than creating a
duplicate, re-enabling it if the caller had disabled it.
The body may also carry notification_channels
({"email": bool, "push": bool, "sms": bool}) to choose how this
subscription's notifications are delivered instead of the user's
preferences. It is not part of the context, so it is neither
validated against the topic's schema nor used to match events.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||