Update a link
Updates a link. Only the fields you send are changed. Send password: null to remove a password; send expiresAt: null to remove expiration. Destination changes on u2l.ai links re-run the trust check - untrusted destinations are rejected (move the link to another domain instead).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your U2L API key (u2l_live_...). Create one in the dashboard under Settings > API.
Path Parameters
The link's domain (e.g. u.gy or u2l.ai).
The link's slug (the part after the domain).
Body
New destination URL.
New password; send null to remove (Advanced plan or above).
New expiration; send null to remove.
Custom social preview (Advanced plan or above).
Image URL.
A/B testing config (Advanced plan or above).
Variant B destination URL.
Traffic percentage to destination A. Defaults to 50.
Response 200
Link ID (UUID).
The part after the domain.
The link's domain.
Where the link redirects to.
Optional title.
Expiration time, if set.
true = 301 redirect, false = 302.
SL = short link, QR = QR code, PG = link-in-bio page. One of: SL, QR, PG.
Total clicks.
Custom social preview title.
A/B variant destination.
Traffic percentage to destination A.
QR styling options (QR links only).
Open in the phone's default browser when tapped inside in-app browsers (Android).
Errors
See Rate Limits & Errors for the error envelope and per-plan limits.