channels

Set Notification Channel

Changed on

Choose where the coach's notifications go: a linked channel, or the app.

{"channel": null} sends them to the app's push only. A channel the athlete has no live link on is a 404 and changes nothing. Answers with the resulting notification_channel, the same field the GET reads. A channel that can't take notifications right now, such as iMessage while its deploy keeps it off, is a 409 and changes nothing.

put/channel_associations/notification_channel

Request

  • Base URL
    https://api.imperfect.co (the document declares no server; this is the origin it was published from)
  • URL
    https://api.imperfect.co/channel_associations/notification_channel
  • Auth
    HTTP bearer

Query parameters

user_idstring nullable

Request body

channel'whatsapp' | 'imessage' | 'heylo' required

Messaging channel discriminator on the generic channel-associations core.

One value per integrated bridge. Adding a channel = new enum value + new :class:cheshire.channels.bridge.BridgeClient impl + new thin webhook route. No new backend tables — every channel reuses channel_associations / channel_association_requests.

Response

Successful Response

object required

Changes