PATCH
/
links
/
{alias}
curl --request PATCH \
  --url https://ishortn.ink/api/v1/links/{alias} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "url": "https://new-destination.com",
  "expiresAfter": null
}'
{
  "shortLink": "https://ishortn.ink/newAlias",
  "url": "https://new-destination.com",
  "alias": "newAlias",
  "expiresAt": "2024-12-31T23:59:59Z",
  "expiresAfter": null
}

Authorizations

x-api-key
string
header
required

Path Parameters

alias
string
required

The alias of the shortened link.

Query Parameters

domain
string

The domain of the shortened link. If not provided, the default domain will be used.

Body

application/json

Response

200
application/json
Link updated successfully

The response is of type object.