Improve room copy with AI
const url = 'https://api.wink.travel/api/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/facility/room-type/6f9b4c8d-1e5a-4b3c-9d2e-8a7f0c1b5e43/improve';const options = { method: 'PUT', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: 'null'};
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/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/facility/room-type/6f9b4c8d-1e5a-4b3c-9d2e-8a7f0c1b5e43/improve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullUses AI to enhance the room type’s descriptive text and related copy, returning the suggested improvements. Requires INVENTORY:WRITE on the property.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Property identifier that owns the room type.
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Room type identifier to improve.
Example
6f9b4c8d-1e5a-4b3c-9d2e-8a7f0c1b5e43Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”AI improvement request carrying the existing room type copy and locale preferences so the AI can enhance descriptions and marketing text
Request payload supplying the existing room type title and description for AI-driven copy improvement.
object
Existing room type title to be improved by AI.
Example
Deluxe Ocean View RoomExisting room type description to be improved by AI.
Example
A spacious deluxe room with stunning ocean views, king bed, and private balcony.Example
{ "title": "Deluxe Ocean View Room", "description": "A spacious deluxe room with stunning ocean views, king bed, and private balcony."}Responses
Section titled “ Responses ”AI-improved room type copy returned successfully.
AI-generated improvements for the room type title and descriptive copy.
object
AI-improved room type title.
AI-improved room type description.
Example
{ "title": "Spectacular Deluxe Ocean-View Suite", "description": "Indulge in breathtaking panoramic ocean views from this elegantly appointed deluxe suite, featuring a plush king bed, a private balcony, and refined Thai-inspired décor."}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable