Check Property Name Uniqueness
GET
/api/property/unique/name
const url = 'https://api.wink.travel/api/property/unique/name?key=Blue%20Orchid&hotelIdentifier=hotelIdentifier';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.wink.travel/api/property/unique/name?key=Blue%20Orchid&hotelIdentifier=hotelIdentifier' \ --header 'Wink-Version: 2.0'Check if hotel name is a unique.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” key
required
string
Search for uniqueness for this hotel name.
Example
Blue Orchid hotelIdentifier
string
Optional, existing hotel identifier
Example
hotelIdentifierHeader Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
unique
boolean
Example generated
{ "unique": true}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
{}