v8

OpenAPI 3.1.02026-08-033623795.0 MB
Dm members

Update dm member

Update a DM channel member's settings, such as their notification preferences or membership status.

Required permissions:

  • dms:channel:manage
patch/dm_members/{id}

Path parameters

idstring required

The unique identifier of the DM channel member to update.

Request body

notification_preference'all' | 'mentions' | 'none'

The notification preferences for a DMs feed member

status'requested' | 'accepted' | 'hidden' | 'closed' | 'archived'

The statuses of a DMs feed member

Response

A successful response

channel_idstring required

The unique identifier of the messaging channel this membership belongs to.

idstring required

The unique identifier for the entity

last_viewed_atstring nullable required

The timestamp when this member last viewed the channel, as a Unix timestamp in milliseconds. Null if the member has never viewed the channel.

notification_preference'all' | 'mentions' | 'none' required

The notification preferences for a DMs feed member

status'requested' | 'accepted' | 'hidden' | 'closed' | 'archived' required

The statuses of a DMs feed member

user_idstring required

The unique identifier of the user who holds this channel membership.

Example response

{
  "last_viewed_at": "123.45"
}