Skip to content

Url slug uniqueness check

POST
/api/shortened-url/unique
curl --request POST \
--url https://api.wink.travel/api/shortened-url/unique \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "uniqueId": "", "entityId": "" }'

Check if url slug is unique and can be used to create a new entity such as ShortenedUrl.uniqueId

Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json
object
uniqueId
required

Unique ID / url slug to verify

string
"" >= 1 characters
Example
uniqueId
entityId

If entity already exist, pass the entity identifier

string format: uuid
""
Example
entity-1

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