> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datris.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Change the current user's password

> Requires an authenticated session. The current-password check is skipped on a first-time set (`mustSetPassword`).



## OpenAPI

````yaml /openapi.yaml post /api/v1/auth/change-password
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/auth/change-password:
    post:
      tags:
        - Auth
      summary: Change the current user's password
      description: >-
        Requires an authenticated session. The current-password check is skipped
        on a first-time set (`mustSetPassword`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - newPassword
              properties:
                currentPassword:
                  type: string
                  description: Required unless this is the user's first-time password set
                newPassword:
                  type: string
                  minLength: 5
      responses:
        '200':
          description: Password updated
        '400':
          description: New password too short
        '401':
          description: Not authenticated, or current password is incorrect
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````