84 lines
3.0 KiB
XML
84 lines
3.0 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="Complete subuser setup" id="completeSubuserSetup">
|
|
|
|
<!-- 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 /subusers/setup</code-block>
|
|
</chapter>
|
|
<chapter title="Operation" id="operation">
|
|
<p>Operation ID: <code>completeSubuserSetup</code></p>
|
|
<p>Completes subuser setup by setting a password and basic profile fields. Accepts optional
|
|
`username` and `email`.
|
|
</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": {
|
|
"email": {
|
|
"format": "email",
|
|
"maxLength": 255,
|
|
"minLength": 3,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"maxLength": 255,
|
|
"minLength": 3,
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"description": "Must include at least one uppercase letter, one lowercase letter, and one number",
|
|
"format": "password",
|
|
"minLength": 8,
|
|
"pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\\\d).+$",
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"description": "One-time setup token",
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"maxLength": 255,
|
|
"minLength": 3,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"token",
|
|
"password",
|
|
"name"
|
|
],
|
|
"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>Setup completed</td><td>application/json</td></tr>
|
|
<tr><td>400</td><td></td><td></td></tr>
|
|
<tr><td>500</td><td></td><td></td></tr>
|
|
</table>
|
|
<p>Schema for response <code>200</code> (<code>application/json</code>):</p>
|
|
<code-block lang="json">
|
|
{
|
|
"properties": {
|
|
"message": {
|
|
"example": "Password set successfully",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
</code-block>
|
|
</chapter>
|
|
</topic>
|