Skip to content

Check name unique

GET
/api/property/unique/name
curl --request GET \
--url 'https://api.wink.travel/api/property/unique/name?key=Blue%20Orchid&hotelIdentifier=hotelIdentifier' \
--header 'Authorization: Bearer <token>' \
--header 'Wink-Version: 2.0'

Verifies whether the supplied property name is available, optionally excluding an existing property by identifier.

key
required
string
""

Search for uniqueness for this hotel name.

Example
Blue Orchid
hotelIdentifier
string
""

Optional, existing hotel identifier

Example
hotelIdentifier
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

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"
}
}

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
{}