feat: api users change password endpoint
This commit is contained in:
@@ -12,7 +12,7 @@ post {
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email":"a1@mail.pt",
|
||||
"email":"p[email protected]",
|
||||
"password":"123"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Patch Password
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{api_url}}/users/me
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"current_password":"123",
|
||||
"new_password": "456"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user