cURL
curl --request PUT \ --url https://api.bunship.com/api/v1/users/me/password \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "currentPassword": "<string>", "newPassword": "<string>" } '
{ "message": "Password changed successfully" }
Change the authenticated user’s password
400
VALIDATION_ERROR
401
AUTHENTICATION_ERROR
curl -X PUT https://api.bunship.com/api/v1/users/me/password \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \ -H "Content-Type: application/json" \ -d '{ "currentPassword": "OldP@ssw0rd", "newPassword": "NewSecureP@ssw0rd" }'