# newPassword

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /json-rpc/authorize/password/new:
    post:
      summary: newPassword
      deprecated: false
      description: ''
      tags:
        - Hyperion API/Authorization
        - Websocket
        - HTTP/S
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                command:
                  type: string
                  enum:
                    - authorize
                  description: >-
                    Main instruction field. For authentication, always set to
                    'authorize'.
                subcommand:
                  type: string
                  enum:
                    - newPassword
                  x-apidog-enum:
                    - value: newPassword
                      name: ''
                      description: ''
                  description: >-
                    Defines the specific authorization action, such as login,
                    logout, etc.
                password:
                  type: string
                  minLength: 8
                  description: Current password. Must be at least 8 characters long.
                newPassword:
                  type: string
                  minLength: 8
                  description: New password to set. Must be at least 8 characters.
                tan:
                  type: integer
                  minimum: 0
                  examples:
                    - 4711
                  description: Transaction number for tracking requests and responses.
              x-apidog-orders:
                - command
                - subcommand
                - password
                - newPassword
                - 01JV2V61M08RXSW38JNSH1JG2P
              x-apidog-refs:
                01JV2V61M08RXSW38JNSH1JG2P:
                  $ref: '#/components/schemas/tan'
              required:
                - command
                - subcommand
                - password
                - newPassword
              x-apidog-ignore-properties:
                - tan
            example:
              command: authorize
              subcommand: newPassword
              password: hyperion
              newPassword: NewPassword
              tan: 4711
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
                x-apidog-ignore-properties: []
              examples:
                '1':
                  summary: Success
                  value:
                    command: authorize-newPassword
                    success: true
                    tan: 4711
                '2':
                  summary: Exception
                  value:
                    command: authorize-newPassword
                    error: Failed to update user password
                    success: false
                    tan: 4711
          headers: {}
          x-apidog-name: Success
      security:
        - bearer: []
      x-apidog-folder: Hyperion API/Authorization
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/894413/apis/api-16806849-run
components:
  schemas:
    tan:
      type: object
      properties:
        tan:
          type: integer
          minimum: 0
          examples:
            - 4711
          description: Transaction number for tracking requests and responses.
      x-apidog-orders:
        - tan
      title: tan
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: http://{{host}}:8090
    description: Develop Env
  - url: https://{{host}}:8092
    description: Testing Env
security: []

```
