Skip to content

Verify unique ID

POST
/api/managing-entity-unique-id-check
curl --request POST \
--url https://api.wink.travel/api/managing-entity-unique-id-check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "name": "My unique name", "identifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51" }'

Check whether a human-friendly unique ID is available (unique) for a managing entity. Pass an identifier to exclude the current owner of that ID.

Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Unique ID to check for availability, optionally excluding the entity that currently owns it

Media type application/json
object
name
required

The name we want to check uniqueness for

string
"" >= 1 characters
Example
My unique name
identifier

An optional accompanying identifier so it doesn’t check itself on an update

string format: uuid
""
Example
3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51
Example
{
"name": "My unique name",
"identifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51"
}

Result indicating whether the unique ID is available.

Media type application/json

Result indicating whether a value is unique within the platform

object
unique
required

True if the checked value is unique; false if it already exists

boolean
key
additional properties
""
Example
{
"unique": true
}

Bad Request — missing or invalid request parameter or body

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unauthorized — authentication is required or the session has expired

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Forbidden — authenticated but lacking the required permission or scope

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Not Found — the requested resource does not exist

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Method Not Allowed — the HTTP verb is not supported on this endpoint

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unsupported Media Type — use application/json

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Internal Server Error — an unexpected failure occurred on the server

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Service Unavailable — a downstream dependency is unreachable

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example