2020-10-13 14:22:00 -04:00
|
|
|
put:
|
|
|
|
|
tags:
|
|
|
|
|
- users
|
|
|
|
|
summary: change a user's password
|
|
|
|
|
parameters:
|
|
|
|
|
- in: path
|
|
|
|
|
name: uid
|
|
|
|
|
schema:
|
|
|
|
|
type: integer
|
|
|
|
|
required: true
|
|
|
|
|
description: uid of the user to update
|
2020-10-24 12:40:52 -04:00
|
|
|
example: 1
|
2020-10-13 14:22:00 -04:00
|
|
|
requestBody:
|
|
|
|
|
required: true
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
currentPassword:
|
|
|
|
|
type: string
|
|
|
|
|
description: test
|
2020-10-26 21:51:25 -04:00
|
|
|
example: '123456'
|
2020-10-13 14:22:00 -04:00
|
|
|
newPassword:
|
|
|
|
|
type: string
|
2024-08-23 10:38:31 -04:00
|
|
|
example: '654321'
|
2020-10-13 14:22:00 -04:00
|
|
|
required:
|
|
|
|
|
- newPassword
|
|
|
|
|
responses:
|
|
|
|
|
'200':
|
|
|
|
|
description: user profile updated
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
status:
|
|
|
|
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
|
|
|
|
response:
|
|
|
|
|
type: object
|