product:chat

Mute channel

Mutes channel for user

Sends events:

  • channel.muted
post/moderation/mute/channel

Request body

channel_cidsstring[]

Channel CIDs to mute (if multiple channels)

expirationinteger

Duration of mute in milliseconds

user_idstring

Response

Successful response

durationstring required

Example response

{
  "channel_mute": {
    "channel": {
      "config": {
        "partition_ttl": "24h"
      }
    }
  },
  "channel_mutes": [
    {
      "channel": {
        "config": {
          "partition_ttl": "24h"
        }
      }
    }
  ],
  "own_user": {
    "channel_mutes": [
      {
        "channel": {
          "config": {
            "partition_ttl": "24h"
          }
        }
      }
    ]
  }
}

Changes