Add collections for Delete User, Reset User Password, and Update User endpoints. Remove obsolete collections for individual profile update operations. Update Update Profile collection to reflect new consolidated API structure.
37 lines
834 B
YAML
37 lines
834 B
YAML
info:
|
|
name: Reset User Password
|
|
type: http
|
|
seq: 11
|
|
http:
|
|
method: PUT
|
|
url: '{{base_url}}/api/auth/password/{{user_id}}'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
jsonBody: |-
|
|
{
|
|
"new_password": "NewSecurePassword123!",
|
|
"confirm_password": "NewSecurePassword123!"
|
|
}
|
|
|
|
docs: |-
|
|
## Admin Reset User Password
|
|
|
|
Admin-only endpoint to reset another user's password.
|
|
|
|
**Method:** PUT
|
|
|
|
**Endpoint:** /api/auth/password/:id
|
|
|
|
**Authentication:** Required (Admin Bearer token)
|
|
|
|
**Request Body:**
|
|
- `new_password` (string, required): New password
|
|
- `confirm_password` (string, required): Must match new_password
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Passwords do not match or invalid format
|
|
- 403: Not an admin
|
|
- 404: User not found
|