Block Groups

To block the groups which were created in the MirrorFly application, You can use the following API.

info

{api-base-url} can be obtained from the MirrorFly console.

HTTP request#

curl -X POST "https://{api-base-url}/api/v1/moderation/block"
-H "accept: */*"
-H "Authorization: xxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/json"
-d "{ \"blockStatus\": true, \"id\": [ \"77xxxxxx11\" ], \"type\": \"group\"}"

Request Params#

ParamDataTypeRequiredDescription
blockStatusBooleanYestrue to block the group.
idArray of StringYesList of group id's to block.
typeStringYesgroup to denote the block group.

Responses#

If successful, this action returns a Authentication token in the response body.

{
"status": 200,
"message": "Changes updated successfully"
}

Error#

In the case of an error, an error object like below is returned.

{
"status": 400,
"message": "Error Message"
}