- Move all files from bruno-yaml/* to bruno/* - Maintains existing directory structure within categories - Updates bruno/user/auth files with OAuth2 refresh token flow - Updates bruno/user/profile files for user profile management - Adds bruno/dashboard/ directory with dashboard API tests - Preserves all existing test scenarios and OpenCollection YAML format - No functional changes - file reorganization only
38 lines
967 B
YAML
38 lines
967 B
YAML
info:
|
|
name: Update Password
|
|
type: http
|
|
seq: 3
|
|
http:
|
|
method: PUT
|
|
url: '{{base_url}}/api/auth/password'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
jsonBody: "{\n \"current_password\": \"password123\",\n \"new_password\"\
|
|
: \"newpassword123\",\n \"confirm_password\": \"newpassword123\""
|
|
|
|
docs: |-
|
|
## Update Password
|
|
|
|
Updates the authenticated user's password.
|
|
|
|
**Method:** PUT
|
|
|
|
**Endpoint:** /api/auth/password
|
|
|
|
**Authentication:** Required
|
|
|
|
**Request Body:**
|
|
- `current_password` (string, required): Current password for verification
|
|
- `new_password` (string, required): New password (minimum 6 characters)
|
|
- `confirm_password` (string, required): Confirmation of new password
|
|
|
|
**Response:**
|
|
- `message` (string): Success message
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Password validation failed
|
|
- 401: Current password incorrect
|
|
- 401: Unauthorized
|