PUT
/
links
/
{id}

Authorizations

x-api-key
string
headerrequired

Your Short Menu API Key. Create one at shm.to/create-api-key.

Path Parameters

id
string
required

The identifier of the link to update. This is the id field of the link object.

Body

application/json
destinationUrl
string

Updated destination URL of the short link. If not provided, the existing destination URL will be kept.

tags
object[]

Updated tags to assign to the short link. If not provided, the existing tags will be kept.

Response

200 - application/json
id
string
required

Identifier of the short link.

createdAt
string
required

Reference date and time when the short link was created.

destinationUrl
string
required

Destination URL of the short link.

slug
string
required

Slug of the short link, e.g. ios.

domain
object
required
shortUrl
string
required

Full short URL of the short link, e.g. https://shm.to/ios.

tags
object[]
required

Zero or more tags assigned to the short link.

title
string

Title of the destination URL (website), if available.

clickCount
number

Number of times the short link has been clicked.