Skip to main content

PUT /api/users/

Updates the details of an existing user account.
Requires a valid Bearer token. Allowed roles: ADMIN, USER.

Path parameters

id
string
required
The string ID of the user to update.

Request body

email
string
required
Updated email address for the user. Must be a valid email format.
password
string
required
Updated password for the user. Must be at least 8 characters and include uppercase letters, lowercase letters, numbers, and special characters (@$!%*?&).
role
string
required
Updated role for the user. Must be one of: ADMIN, ORGANIZER, USER.
firstName
string
required
Updated first name of the user.
lastName
string
required
Updated last name of the user.
location
string
required
Updated geographic location of the user.

Response fields

status
boolean
required
Indicates whether the request succeeded.
message
string
Human-readable result message.
data
object
required
The updated user object. See Get user for the full field list.
curl --request PUT \
  --url 'https://api.meetpoint.com/api/users/user-abc123' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "jane.doe@example.com",
    "password": "NewSecure@5678",
    "role": "ORGANIZER",
    "firstName": "Jane",
    "lastName": "Doe",
    "location": "Chicago, USA"
  }'
{
  "status": true,
  "message": "Usuario editado correctamente",
  "data": {
    "id": "user-abc123",
    "roles": ["ORGANIZER"],
    "email": "jane.doe@example.com",
    "firstName": "Jane",
    "lastName": "Doe",
    "location": "Chicago, USA",
    "isBlocked": false,
    "membership": null,
    "eventsCount": 5,
    "attendancesCount": 12,
    "reportsCount": 0,
    "ratingsCount": 15,
    "averageRating": 4.7
  }
}

Build docs developers (and LLMs) love