Files
directus/packages/spec/specs/paths/auth/password-reset.yaml
2020-09-21 12:33:19 -03:00

25 lines
805 B
YAML

post:
tags:
- Authentication
operationId: passwordReset
description: The request a password reset endpoint sends an email with a link to the admin app which in turn uses this endpoint to allow the user to reset their password.
requestBody:
content:
application/json:
schema:
type: object
required: [token, password]
properties:
token:
type: string
example: eyJ0eXAiOiJKV1Qi...
description: One-time use JWT token that is used to verify the user.
password:
type: string
example: password
format: password
description: New password for the user.
responses:
"401":
$ref: "#/components/responses/UnauthorizedError"