Run in Apifox
Reset the password of an admin User using their reset password token. A user must request to reset their password first before attempting to reset their password with this request.
Request Body Params application/json
{
"email" : "user@example.com" ,
"token" : "string" ,
"password" : "pa$$word"
}
Request samples curl --location --request POST 'https://api.medusa-commerce.com/admin/users/reset-password' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com",
"token": "string",
"password": "pa$$word"
}'
Responses application/json Generate Code
{
"user" : {
"id" : "usr_01G1G5V26F5TB3GPAPNJ8X1S3V" ,
"email" : "user@example.com" ,
"first_name" : "Levi" ,
"last_name" : "Bogan" ,
"api_token" : null ,
"created_at" : "2019-08-24T14:15:22Z" ,
"updated_at" : "2019-08-24T14:15:22Z" ,
"deleted_at" : "2019-08-24T14:15:22Z" ,
"role" : "member" ,
"metadata" : {
"car" : "white"
}
}
}
Modified at 2023-10-08 12:50:29