Dm members

Update dm member

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

Required permissions (one of):

  • dms:read
  • support_chat:read
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"
}

Changes

Changed in 51 of the 74 revisions of this API.102

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope dms:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope support_chat:read was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

Of the 74 revisions, 1 has no diff computed.