---
search:
  tags:
    - auth
    - POST
seo:
  description: >-
    Ends the other sessions of the user and sets a new session cookie. Reference
    for the POST /api/v1/auth/password endpoint in the TimescaleDB Enterprise
    API.
sidebar:
  label: Change your password
  badge: POST
title: Change your password
type: openapi-operation
---
Ends the other sessions of the user and sets a new session cookie.

`POST /api/v1/auth/password`

**Request body** (`application/json`, required)

- `current_password` (string)
- `new_password` (string)

Request body example:

```json
{
  "current_password": "string",
  "new_password": "string"
}
```

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "ok": true
}
```
