Skip to main content
PATCH
Repoint a link

Authorizations

Authorization
string
header
required

An API key (klk_...) or a Clerk session token. Both resolve to the same account and behave identically.

Path Parameters

id
string
required

The link id returned when the link was created.

Example:

"lnk_2YgQk1p8fT3mN7wCxRvBdLsHjZa"

Body

application/json

Repointing a printed code is the product. Any destination change re-runs the safety check and returns the link to quarantine — a new destination is unproven however well the old one behaved.

destination
string<uri>
required

Where the code resolves to. http/https only; localhost, private ranges and cloud metadata endpoints are refused. Stored normalised, so HTTPS://Example.COM and https://example.com/ are the same link.

Minimum string length: 1
Example:

"https://example.com/spring-menu"

Response

The destination was changed.

id
string
required
destination
string<uri>
required

Where the code resolves to. http/https only; localhost, private ranges and cloud metadata endpoints are refused. Stored normalised, so HTTPS://Example.COM and https://example.com/ are the same link.

Minimum string length: 1
Example:

"https://example.com/spring-menu"