Update user password

Requires authentication

HTTP Request

POST connector/api/update-password

Body Parameters

Parameter Type Status Description
current_password string required Current password of the user
new_password string required New password of the user

Example request:

curl -X POST \
"http://erp.dstadvertising.com/connector/api/update-password" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-d '{"current_password":"omnis","new_password":"corrupti"}'

Example response (200):

{
"success": 1,
"msg": "Password updated successfully"
}