Db_connections/change_password responds with error "email or username are required"

Hey, had this issue another user came across - linked below. I’m making a request to the db_connections/change_password authentication endpoint exactly as the cURL statement provided in the docs suggests. I am providing an email that is attached to an existing account. Any idea what the issue is?

curl --url 'https://mydomain.auth0.com/dbconnections/change_password' --request POST --header 'content-type: application/json' -d '{"headers":{"content-type":"application/json"},"data":{"email":"myemail@site.com","client_id":"myClientId123","connection":"Username-Password-Authentication"}}'  

Solved, careless. My curl request has headers and data keys in the data payload, so the actual data is nested a layer deeper than it should be. This means there is no email key at the top layer in the data arg. Oops.

1 Like

Thanks for sharing that with the rest of community!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.