/api/v1/links/:idUpdate a link
Partially update an existing link. Only fields included in the request are changed. Pass null explicitly to clear a nullable field.
Bearer token. Format: Bearer YOUR_API_KEY
The ID of the link to update.
New destination URL.
Display name. Pass null to clear.
Meta description. Pass null to clear.
OG image URL. Pass null to clear.
HTTP redirect type.
Enable or disable the link.
Hide the destination URL from the browser.
Password protection. Pass null to remove.
Expiry timestamp. Pass null to remove.
Click cap. Pass null to remove.
Replaces the full tag list for this link.
Forward query parameters to destination.
Block bot traffic.
Facebook/Meta Pixel ID. Pass null to clear.
Google Analytics measurement ID. Pass null to clear.
Comma-separated webhook URLs. Pass null to clear.
# Update the destination URL
curl -X PATCH https://app.brevr.io/api/v1/links/clx1abc2def3ghi4 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/new-page"}'
# Remove expiry and password
curl -X PATCH https://app.brevr.io/api/v1/links/clx1abc2def3ghi4 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"expiresAt": null, "password": null}'{
"link": {
"id": "clx1abc2def3ghi4",
"shortCode": "summer-sale",
"url": "https://example.com/new-page",
"title": "Summer Sale — Updated",
"isActive": true,
...
}
}