Skip to main content
PATCH
/
api
/
links
/
{linkId}
curl -X PATCH https://api.linquid.io/api/links/link_abc123 \
  -H "X-API-Key: lw_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated Title",
    "enabled": true,
    "tags": ["winter", "sale"]
  }'
{
  "success": true,
  "data": {
    "id": "link_abc123",
    "shortCode": "abc123",
    "shortUrl": "https://linqu.id/abc123",
    "destinationUrl": "https://example.com/landing",
    "title": "Updated Title",
    "enabled": true,
    "tags": ["winter", "sale"],
    "updatedAt": "2024-01-15T16:00:00.000Z"
  }
}

Path Parameters

The unique link identifier

Request Body

destinationUrl
string
New target URL
title
string
New display name
enabled
boolean
Enable or disable the link
expiresAt
string
New expiration datetime (ISO 8601)
clicksLimit
number
New click limit (null to remove)
password
string
New password (empty string to remove)
tags
array
Replace tags with new array
curl -X PATCH https://api.linquid.io/api/links/link_abc123 \
  -H "X-API-Key: lw_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated Title",
    "enabled": true,
    "tags": ["winter", "sale"]
  }'
{
  "success": true,
  "data": {
    "id": "link_abc123",
    "shortCode": "abc123",
    "shortUrl": "https://linqu.id/abc123",
    "destinationUrl": "https://example.com/landing",
    "title": "Updated Title",
    "enabled": true,
    "tags": ["winter", "sale"],
    "updatedAt": "2024-01-15T16:00:00.000Z"
  }
}