Skip to content

Change password

PATCH
/api/user-settings/change-password
curl --request PATCH \
--url https://api.wink.travel/api/user-settings/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data null

Validates and updates the authenticated user’s password, returning a boolean result envelope indicating whether the change succeeded.

Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json

Request to change the authenticated user’s password

object
currentPassword
required

Current password for verification

string
"" >= 1 characters
Example
OldPass456!@#
password
required

New password to set

string
"" >= 1 characters
Example
SecurePass123!@#
confirmPassword
required

Confirmation of new password; must match password field

string
"" >= 1 characters
Example
SecurePass123!@#

OK

Media type application/json
object
success

Whether call to endpoint was successful or not.

boolean
message

A message indicating more textual information. Mostly used to convey an error message.

string
""
Example
{
"success": false,
"message": ""
}

Bad Request

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Forbidden

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Internal Server Error

object
Example generated
{}