Block Connection

This API is used to block or unblock a connection between two users.

Endpoint #

The Voomerr Block Connection endpoint is POST https://admin.voomerr.com/api/block_connection.php

Request Parameters #

Parameter Type Description
user_id integer Required. The ID of the user who is initiating the action.
to_user integer Required. The ID of the user who is being blocked.
block_status integer Required. The status of the block (0 or 1).

Request Example #

json
{
"user_id": 123,
"to_user": 456,
"block_status": 1
}

Response Parameters #

Parameter Type Description
status string The status of the API request. Either “success” or “error”.
message string A message describing the result of the API request.
block_status integer The status of the block (0 or 1). This will be the same as the block_status parameter in the request.

Response Example #

json
{
"status": "success",
"message": "Connection blocked successfully",
"block_status": 1
}

Powered by BetterDocs