Skip to main content

PUT /api/users/block/

Toggles the blocked status of a user. Blocked users cannot log in or interact with the platform. Calling this endpoint on a blocked user will unblock them, and vice versa.
Requires a valid Bearer token. Allowed roles: ADMIN.

Path parameters

id
string
required
The string ID of the user to block or unblock.

Response fields

status
boolean
required
Indicates whether the request succeeded.
message
string
Human-readable result message.
data
object
required
curl --request PUT \
  --url 'https://api.meetpoint.com/api/users/block/user-abc123' \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": "Usuario bloqueado correctamente",
  "data": {
    "id": "user-abc123",
    "roles": ["ORGANIZER"],
    "email": "jane.doe@example.com",
    "firstName": "Jane",
    "lastName": "Doe",
    "location": "New York, USA",
    "isBlocked": true,
    "membership": null,
    "eventsCount": 5,
    "attendancesCount": 12,
    "reportsCount": 0,
    "ratingsCount": 15,
    "averageRating": 4.7
  }
}

Build docs developers (and LLMs) love