Skip to content

Reset a legacy password

Request

Sets the current password to an empty string, also sets the legacy password to the provided string.

Security
ZephrHmacHttp
Path
user_Idstringrequired

Unique User identifier

cURL
curl -i -X POST \
  'https://demo.api.zephr.com/v3/users/{user_Id}/legacyPassword' \
  -H 'Authorization: ZEPHR-HMAC-* <YOUR_TOKEN_HERE>'

Responses

OK

Headers
any
Bodyapplication/json
user_idstring
Example:"b859f5dd-8184-4d01-8bf9-e3e771f68a62"
messagestring
Example:"Admin user created successfully"
uristring
Example:"http://company.com/v3/admin/users/b859f5dd-8184-4d01-8bf9-e3e771f68a62"
Response
{ "message": "Legacy Password updated successfully to be used instead of password", "user_id": "{userId}", "uri": "http://localhost:8080/v3/users/{userId}/legacyPassword" }