Updates an existing link identified by url_id. Only url_id is required — include at least one additional field to specify what to change. Omitted fields retain their current values. The API enforces the same plan limits and feature checks as creation.
url_id along with only the fields you want to change. Omitted fields retain their current values, so you can make targeted updates without resending the entire link configuration.
url_id is strictly required. You must also include at least one additional field to specify what to change — otherwise the API returns a 400 error.
The edit endpoint shares the same internal logic as creation. When url_id is present in the request, the API locates the existing link and applies the supplied fields as an update. Any field you omit is preserved from the existing link, including settings like redirect type, password protection, cloaking, tracking, and social previews.
Both PUT and PATCH methods are accepted and behave identically.
| Field | Type | Required | Description |
|---|---|---|---|
url_id | integer | ✅ | ID of the link to update. |
url | string (URI) | New destination URL. | |
domain_id | integer | Domain that hosts the link. Must be active for the organization. | |
workspace_id | integer | Overrides the default workspace. | |
title | string | Human-friendly title for the link. | |
custom_slug | string | Branded slug. Plan limits and reserved-word checks apply. | |
folder_id | integer | Assigns the link to a folder. | |
param | object | Query parameters appended to the destination URL (e.g. UTM tags). | |
generate_qr | boolean | Generates or regenerates a QR code for the link. | |
enable_tracking | boolean | Associates the link with a tracking pixel. Requires pixel_id. | |
pixel_id | integer | Pixel identifier for event tracking. | |
redirect_type | integer (301 or 302) | HTTP redirect status. | |
link_cloak | boolean | Cloaks the destination URL. | |
hide_referer | boolean | Removes the referrer header. | |
with_password | boolean | Enables password protection. Pair with url_password. | |
url_password | string | Password required to access the link. | |
r, g, b | integer (0-255) | RGB color channels for QR codes. | |
uploaded_logo_type | enum(none, custom, uploaded) | Logo embedded in QR codes. | |
uploaded_logo_data | base64 string | Custom logo image when uploaded_logo_type is uploaded. | |
social_share_title | string | Overrides the OpenGraph title. | |
social_share_description | string | Overrides the OpenGraph description. | |
social_share_image_data | base64 string | Custom social preview image. |
data.link — the fully qualified link after the update.data.short_url — same value as link. Deprecated — will be removed in a future version; migrate to data.link.data.qr — base64-encoded QR PNG when a QR code exists; otherwise null.data.created — always false for edit operations, confirming the link was updated rather than newly created.| Status | Meaning |
|---|---|
| 400 | Validation error — url_id is missing, or no field to update was provided. |
| 401 | Missing or invalid API token. |
| 404 | No link found for the given url_id in the authenticated organization. |
| 429 | A monthly feature quota has been reached (e.g. QR codes, custom slugs). |
| 500 | Unexpected error while updating the link. Retry the request. |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Only url_id is required. At least one additional field must be provided to specify what to change. Omitted fields retain their current values.
ID of the existing link to update. Retrieve this from the List Links endpoint or the link creation response.
Destination URL the link redirects to.
"https://example.com/launch"
ID of the domain that hosts the link.
Workspace ID. Defaults to the first workspace associated with the organization when omitted.
Optional human-friendly title for the link.
Custom slug appended to the domain instead of an auto-generated code.
Folder to assign the link to.
Query parameters appended to the destination URL.
Whether to create a QR code for the link.
Set to true to associate the link with the specified pixel for event tracking.
Pixel ID used when tracking is enabled.
HTTP redirect status applied when visitors follow the link.
301, 302 If true, cloaks the destination URL.
If true, removes the referrer header for visitors.
Protects the link behind a password.
Password required when with_password is true.
Red channel used when generating QR codes.
0 <= x <= 25545
Green channel used when generating QR codes.
0 <= x <= 255151
Blue channel used when generating QR codes.
0 <= x <= 255123
Controls which logo is embedded inside generated QR codes.
none, custom, uploaded Base64-encoded file used when uploaded_logo_type is uploaded.
Overrides the title shown in social previews.
Overrides the description shown in social previews.
Base64-encoded image used for the social preview.