curl --request PUT \
--url https://apix.us.amity.co/api/v2/channel/{channelId}/users/mute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"userIds": [
"<string>"
],
"mutePeriod": 123
}'
{
"success": true
}
Mute a user in channel for a specific period of time.
curl --request PUT \
--url https://apix.us.amity.co/api/v2/channel/{channelId}/users/mute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"userIds": [
"<string>"
],
"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
The body is of type object
.
Mute/unmute information
The response is of type object
.