Links
Update link
Updates an existing Short Link.
PUT
/
links
/
{id}
Authorizations
x-api-key
string
headerrequiredYour Short Menu API Key. Create one at shm.to/create-api-key.
Path Parameters
id
string
requiredThe 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
requiredIdentifier of the short link.
createdAt
string
requiredReference date and time when the short link was created.
destinationUrl
string
requiredDestination URL of the short link.
slug
string
requiredSlug of the short link, e.g. ios
.
domain
object
requiredshortUrl
string
requiredFull short URL of the short link, e.g. https://shm.to/ios
.
tags
object[]
requiredZero 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.