Mute
/api/v2/group/mute
Post
groups
jwt
Purpose
To allow a user to turn on or off notifications for a group that he/she is the member of.
Body Content [input]
{
uid: string,
groupID: string,
mute: bool
}
Returns if valid [output]
{
message: string,
error: 0
}
What the API does
- Finds the
groupbeing referenced by thegroupIDpassed [404]. - Ensures that
uidcorresponds to a record in themembersfield with astatusofaccepted[403]. - Updates and saves the
groupwith the record for themembersfield corresponding touidhaving a value equal tomutefor itshas_mutedfield.