Skip to content

Change current user password

POST
/api/v1/users/me/password
curl --request POST \
--url https://osctrl.net/api/v1/users/me/password \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "current_password": "example", "new_password": "example" }'

Changes the current user’s password.

Request body

Media typeapplication/json
object
current_password
string
new_password
string
Examplegenerated
{
"current_password": "example",
"new_password": "example"
}

OK

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Bad request

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Not found

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Conflict

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Too many requests

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Internal server error

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Service unavailable

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}