Block Users

To block the users from using 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\": [ \"99xxxxxx11\" ], \"type\": \"user\"}"

Request Params#

ParamDataTypeRequiredDescription
blockStatusBooleanYestrue to block the user.
idArray of StringYesList of user id's to block.
typeStringYesuser to denote the block user.

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"
}