octoprint-open-api/openapi/paths/access/users/{username}-password-put.yaml
2020-11-21 17:05:58 +01:00

30 lines
660 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

summary: Change user password
operationId: changeUserPassword
tags:
- User
description: >-
Changes the password of a user.
parameters:
- $ref: ../../../components/parameters/username.yaml
requestBody:
content:
application/json:
schema:
type: object
properties:
password:
type: string
responses:
"200":
description: >-
Password was updated
"400":
description: >-
If the request doesnt contain a password property or the request is otherwise invalid
"403":
description: >-
No admin rights and not logged in as the user
"404":
description: >-
Unknown user