curl --request PUT \
--url https://apix.us.amity.co/api/v2/channel/{channelId}/mute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mutePeriod": 123
}
'{
"success": true
}Mute all users in channel for a specific period of time.
curl --request PUT \
--url https://apix.us.amity.co/api/v2/channel/{channelId}/mute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mutePeriod": 123
}
'{
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Information of channel to be muted and period
mute period (milliseconds)
Mute/unmute information