You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
915 B
YAML
39 lines
915 B
YAML
4 years ago
|
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
|
||
|
requestBody:
|
||
|
required: true
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
type: object
|
||
|
properties:
|
||
|
currentPassword:
|
||
|
type: string
|
||
|
description: test
|
||
|
example: oldp455word
|
||
|
newPassword:
|
||
|
type: string
|
||
|
example: s3cre7password
|
||
|
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
|