Users
Get user by ID
Changed onRetrieves a single user by their numeric ID. Super-admins can access any user; regular users can only access users within their organization (or their own record).
get/users/{id}
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/users/{id}
- AuthHTTP bearer
Path parameters
idinteger required
User ID
Response
User found
Example response
{
"message": "OK",
"data": {
"id": 1,
"name": "John",
"surname": "Doe",
"email": "john@example.com",
"role_id": 1,
"organization_id": 1
}
}Changes
- breaking
the response property
/became nullable for the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
api operation id
getUserByIdwas added - info
api tag
Usersadded - info
api tag
Users - CRUDremoved
- info