POST /api/users
Creates a new user account with a specified role.
Requires a valid Bearer token. Allowed roles: ADMIN.
Request body
Email address for the new user. Must be a valid email format.
Password for the new user. Must be at least 8 characters and include uppercase letters, lowercase letters, numbers, and special characters (@$!%*?&).
Role to assign to the user. Must be one of: ADMIN, ORGANIZER, USER.
Geographic location of the user.
Response fields
Indicates whether the request succeeded.
Human-readable result message.
The created user object. See Get user for the full field list.
curl --request POST \
--url 'https://api.meetpoint.com/api/users' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "john.smith@example.com",
"password": "Secure@1234",
"role": "ORGANIZER",
"firstName": "John",
"lastName": "Smith",
"location": "Los Angeles, USA"
}'
{
"status": true,
"message": "Usuario creado correctamente",
"data": {
"id": "user-def456",
"roles": ["ORGANIZER"],
"email": "john.smith@example.com",
"firstName": "John",
"lastName": "Smith",
"location": "Los Angeles, USA",
"isBlocked": false,
"membership": null,
"eventsCount": 0,
"attendancesCount": 0,
"reportsCount": 0,
"ratingsCount": 0,
"averageRating": 0,
"organizedEvents": [],
"attendances": [],
"comments": [],
"madeReports": [],
"reports": [],
"madeRatings": [],
"ratings": []
}
}