Change Password API
This API endpoint allows a user to change their password by providing their email, old password, and new password. On success, the password is updated for the user account.
- Method: POST
- Endpoint:
/api/api-services/v1/auth-service/change-password
- Returns: Success message on password change
Change Password
POST https://app.brand2social.com/api/api-services/v1/auth-service/change-password
Field | Type | Required | Description |
---|---|---|---|
email_address | string | Yes | User's email |
old_password | string | Yes | Current password |
new_password | string | Yes | New password |
curl --location 'https://app.brand2social.com/api/api-services/v1/auth-service/change-password' \
--header 'Content-Type: application/json' \
--data-raw '{
"email_address": "demo@example.com",
"old_password": "demo@example.com",
"new_password": "newpass123"
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Password changed successfully"
}