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
The string ID of the user to block or unblock.
Response fields
Indicates whether the request succeeded.
Human-readable result message.
Unique string identifier for the user.
Email address of the user.
The new blocked status after the toggle. true means the user is now blocked; false means unblocked.
curl --request PUT \
--url 'https://api.meetpoint.com/api/users/block/user-abc123' \
--header 'Authorization: Bearer <token>'
200 (blocked)
200 (unblocked)
404
{
"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
}
}