POST
/
users
/
block
/
{identifier}
Block user
curl --request POST \
  --url https://localhost:5000/users/block/{identifier} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "User blocked successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

identifier
string
required

Username or user ID

Response

User blocked successfully

success
boolean
Example:

true

message
string
Example:

"User blocked successfully"