Update User Profile
const url = 'https://api.wink.travel/api/profile';const options = { method: 'PUT', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"share":false,"user":"","personal":"","preferences":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.wink.travel/api/profile \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "share": false, "user": "", "personal": "", "preferences": "" }'Updates the authenticated user’s profile with the provided information. Persists personal details, preferences, and sharing settings. Returns the updated profile asynchronously.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”User profile data to update
object
Whether the user wants to share this profile with hotels
Example
trueUser details
object
User first name
Example
AlexandraUser last name
Example
BeaumontUser phone number
Example
+66212658866Profile picture URL
Example
https://res.cloudinary.com/wink/image/upload/v1/user/alexandra-beaumont.jpgFull name
Example
John SmithDetailed customer information for this profile
object
Identifies the gender of the customer.
Example
FEMALEDate of birth in ISO 8601 format
Example
1985-06-15Marital status of the traveler
Example
MARRIEDNumber of children
Example
2Country of citizenship
Example
ThailandPrimary address line
Example
123 Petchburi RoadSecondary address line
Example
Ratchathewi DistrictCity name
Example
BangkokState or province
Example
BangkokPostal code
Example
10400Country code (ISO 3166-1 alpha-2)
Example
THPreferred currency for monetary values (ISO 4217 code)
Example
USDPrimary language (ISO 639-1 code)
Example
enArray of emergency contact information for the customer
object
Contact first name
Example
JohnContact last name
Example
SmithContact phone number
Example
+12125551212First and last name
Example
John SmithArray of customer’s pets
object
Pet name
Example
LunaPet type
Example
Golden RetrieverCustomer preferences
object
Preferred hotel property locations
Example
BeachfrontPreferred hotel property types
Example
Luxury ResortPreferred hotel chain name
Example
Mandarin OrientalPreferred hotel property amenities
Preferred recreation services
Preferred business services
Preferred security features
Preferred accessibility features
Example
Wheelchair accessible roomsPreference for smoking allowed rooms
Example
falsePreferred hotel room locations
Example
High floor with city viewPreferred hotel bed type
Example
King bedPreferred food service facilities
Example
In-room diningPreferred hotel room amenities
Guest type classification
Example
Business travelerMeal preference
Example
Continental breakfastCuisine preference
Example
ThaiInterest preferences
Beverage preferences
Food preferences
Known allergies
Pet-friendly preferences
Responses
Section titled “ Responses ”Profile updated successfully
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
User identifier
Indicates whether the user wants to share this profile of themselves with hotel(s)
User details
object
User first name
User last name
User email address
User phone number
Profile picture URL
Full name
Detailed customer information for this profile
object
Identifies the gender of the customer.
Date of birth in ISO 8601 format
Marital status of the traveler
Number of children
Country of citizenship
Primary address line
Secondary address line
City name
State or province
Postal code
Country code (ISO 3166-1 alpha-2)
Preferred currency for monetary values (ISO 4217 code)
Primary language (ISO 639-1 code)
Array of emergency contact information for the customer
object
Contact first name
Contact last name
Contact E-mail
Contact secondary Email
Contact phone number
First and last name
Summary
Array of customer’s pets
object
Pet name
Pet type
Customer preferences
object
Preferred hotel property locations
Preferred hotel property types
Preferred hotel chain name
Preferred hotel property amenities
Preferred recreation services
Preferred business services
Preferred security features
Preferred accessibility features
Preference for smoking allowed rooms
Preferred hotel room locations
Preferred hotel bed type
Preferred food service facilities
Preferred hotel room amenities
Guest type classification
Meal preference
Cuisine preference
Interest preferences
Beverage preferences
Food preferences
Known allergies
Pet-friendly preferences
Example
Invalid request body or validation error
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
User not authenticated
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}