72 lines
2.7 KiB
XML
72 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE topic
|
|
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
|
|
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
|
|
title="Set a customer password using a reset key" id="setPasswordUsingResetToken">
|
|
|
|
<!-- AUTO-GENERATED, DO NOT EDIT -->
|
|
<p>This endpoint documentation is generated directly from <code>openapi.yaml</code>.</p>
|
|
<chapter title="Endpoint" id="endpoint">
|
|
<code-block lang="http">POST /auth/password-reset/set</code-block>
|
|
</chapter>
|
|
<chapter title="Operation" id="operation">
|
|
<p>Operation ID: <code>setPasswordUsingResetToken</code></p>
|
|
<p>Update the customer password using a valid reset token</p>
|
|
</chapter>
|
|
<chapter title="Authentication" id="authentication"><p>No authentication required.</p></chapter>
|
|
<chapter title="Request Body" id="request-body">
|
|
<p>Required: yes.</p>
|
|
<p>Content type: <code>application/json</code></p>
|
|
<code-block lang="json">
|
|
{
|
|
"properties": {
|
|
"g_recaptcha_response": {
|
|
"description": "reCAPTCHA verification token",
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"description": "The new password",
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"description": "The password reset token",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"token",
|
|
"password",
|
|
"g_recaptcha_response"
|
|
],
|
|
"type": "object"
|
|
}
|
|
</code-block>
|
|
</chapter>
|
|
<chapter title="Responses" id="responses">
|
|
<table>
|
|
<tr><td>Status</td><td>Description</td><td>Content Types</td></tr>
|
|
<tr><td>200</td><td>Password updated successfully</td><td>application/json</td></tr>
|
|
<tr><td>400</td><td></td><td></td></tr>
|
|
<tr><td>404</td><td>Invalid or expired token</td><td>application/json</td></tr>
|
|
</table>
|
|
<p>Schema for response <code>200</code> (<code>application/json</code>):</p>
|
|
<code-block lang="json">
|
|
{
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
</code-block>
|
|
<p>Schema for response <code>404</code> (<code>application/json</code>):</p>
|
|
<code-block lang="json">
|
|
{
|
|
"$ref": "#/components/schemas/Error"
|
|
}
|
|
</code-block>
|
|
</chapter>
|
|
</topic>
|