Change Password
PATCH
/api/user-settings/change-password
const url = 'https://api.wink.travel/api/user-settings/change-password';const options = { method: 'PATCH', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"currentPassword":"example","password":"example","confirmPassword":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.wink.travel/api/user-settings/change-password \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "currentPassword": "example", "password": "example", "confirmPassword": "example" }'Updates currently authenticated user’s password.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
currentPassword
required
string
password
required
string
confirmPassword
required
string
Example generated
{ "currentPassword": "example", "password": "example", "confirmPassword": "example"}Responses
Section titled “ Responses ”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" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
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
{}