Update link
update_linkChange where a link points, set a new expiry (Pro) or remove its expiry, or set destination rules (Pro): rotate clicks among several URLs (e.g. a WhatsApp rotator between salespeople) or send by country or device. Also (Pro) an activation date, a click limit, and what visitors see when the link is not available. The short code stays the same.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | New destination URL. | |
| code | Yes | The short code or custom alias of the link (the part after the slash). | |
| tags | No | The COMPLETE list of tags the link keeps (it replaces the current one); [] removes them all. Adding a tag the link did not have is Pro (also during the trial); removing is always allowed. | |
| rules | No | Destination rules, Pro plan. Shape: {"version":1, "condiciones":[{"si":{"pais":["PE"],"dispositivo":["ios"]},"destino":"https://..."}], "rotacion":{"destinos":[{"url":"https://wa.me/51...","peso":1}]}}. Conditions are checked in order (pais = ISO country codes; dispositivo = movil, tablet, escritorio, ios, android); the first match wins. Otherwise rotacion takes turns among 2-10 URLs by weight (peso 1-100, default 1). Otherwise the link URL. Bots always get the link URL. Replaces any previous rules. | |
| time_zone | No | Optional IANA time zone (e.g. America/Lima) used to write the activation date to visitors. Default UTC. | |
| max_clicks | No | Optional. Pro plan. The link stops working after this many people (bots are not counted). Approximate at the boundary under simultaneous clicks. | |
| active_from | No | Optional. Pro plan. ISO 8601 date-time (e.g. 2026-11-03T09:00:00-05:00): before it the link does not redirect and shows "this link becomes active on …". | |
| remove_rules | No | true to remove the destination rules (the link goes back to a single URL). | |
| expires_in_days | No | New expiry, counted from today. Not together with remove_expiration. | |
| unavailable_page | No | Optional. Pro plan. What visitors see when the link is expired, past max_clicks or not active yet. {"modo":"neutra"} = the neutral L1NK page (default); {"modo":"url","url":"https://..."} = redirect to that fallback URL; {"modo":"mensaje","mensaje":"..."} = a short message of yours (max 200 characters). Shown on the same host, custom domains included. | |
| remove_expiration | No | true to make the link permanent. | |
| remove_max_clicks | No | true to remove the click limit. | |
| remove_active_from | No | true to remove the activation date (the link works right away). |