authService

Update user password

Update user password by id.

patch/auth/v1/users/{userId}/change_password

Request

Path parameters

userIdinteger required

User id

Request body

passwordstring

Response

OK

idinteger
firstNamestring
lastNamestring
patronymicstring
positionstring
specializationstring
countrystring
citystring
avatarstring
aboutMyselfstring
activeboolean
registeredboolean
birthdaynumber

timestamp in seconds

dateOfDismissnumber

timestamp in seconds

showBirthYearboolean
rolesstring[]
departmentsIdsstring[]
emailInvitationboolean
dateOfInvitationnumber

timestamp in seconds

Example response

{
  "id": 1,
  "firstName": "Stas",
  "lastName": "Raranetskyi",
  "position": "CTO",
  "specialization": "Specialist",
  "country": "Ukraine",
  "city": "Kiyv",
  "avatar": "/storage/avatars/c4ca423/avatar.jpeg",
  "aboutMyself": "about me",
  "registered": true,
  "birthday": 1654180120,
  "dateOfDismiss": 1654180120,
  "showBirthYear": true,
  "email": [
    {
      "id": "",
      "type": "main",
      "value": "stark@gmail.com",
      "main": true
    },
    {
      "id": "01gdnpddf5xgzxqvcn4x83mc2s",
      "type": "work",
      "value": "benner@gmail.com",
      "main": false
    }
  ],
  "phone": [
    {
      "id": "01gdnpddf5xgzxqvcn4x83mc2s",
      "type": "WORK",
      "value": "+380123456789"
    }
  ],
  "roles": [
    "OWNER",
    "Employee",
    "ADMIN"
  ],
  "departmentsIds": [
    "1",
    "2"
  ],
  "socialMedia": [
    {
      "id": "01gdnpddf5xgzxqvcn4x83bn2s",
      "name": "facebook",
      "link": "https://www.facebook.com"
    }
  ],
  "emailInvitation": true,
  "dateOfInvitation": 1654180120
}

Changes

No recorded changes to this operation across all 2 revisions of this API.