# POST /api/auth/reset-password

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

Schema: [ChangePasswordRequestDTO](https://sourcey-gauzy.pages.dev/api-reference/models/changepasswordrequestdto/index.md)

- `token` (required)
  Type: string

- `password` (required)
  Type: string

- `confirmPassword` (required)
  Type: string

Responses:

- 201: 

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/auth/reset-password' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "token": "string",
  "password": "string",
  "confirmPassword": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "token": "string",
  "password": "string",
  "confirmPassword": "string"
}`;

const response = await fetch('http://localhost:3000/api/auth/reset-password', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "token": "string",
  "password": "string",
  "confirmPassword": "string"
}'''

response = requests.post(
    'http://localhost:3000/api/auth/reset-password',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
