user

Get the Current User

This function is an API endpoint that allows an authenticated user to retrieve their current user information. It is tagged with "user" for OpenAPI documentation.

Parameters

  • request: The request data, which includes the current user information. <br>

Returns

If successful, this function returns a Json<CurrentUserResponse> object, which includes the current user information. <br> If the user is not authorized, this function returns a status::Unauthorized error. <br>

Errors

This function will return an error if the system is in maintenance mode, or if the user is not authorized.

post/api/currentUser

Request body

idstring required
uuidstring required

Response

errorboolean required
namestring required
emailstring nullable
adminboolean required

Changes

Changed in 3 of the 11 revisions of this API.15

    • added the required property admin to the response with the 200 status

      response-required-property-added

    • api tag user added

      api-tag-added

    • api tag User removed

      api-tag-removed

  • fafd43b82c7812See the full diff
    • removed the required property admin from the response with the 200 status

      response-required-property-removed

    • api tag User added

      api-tag-added

    • api tag user removed

      api-tag-removed

    This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog