# User authentication endpoint.

Log in to the application.

Endpoint: POST /api/login
Version: 24.9.2.5

## Request fields (application/json):

  - `oldPassword` (string)

  - `password` (string)

  - `username` (string)

## Response 200 fields (application/json):

  - `orgId` (string)

  - `refreshToken` (string)

  - `role` (integer)

  - `systemRole` (integer)

  - `token` (string)

  - `tokenType` (string)

  - `username` (string)

## Response 400 fields (application/json):

  - `message` (string)
    Example: "Something went wrong"

  - `result` (string)
    Example: "error"

  - `success` (boolean)


