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"
}
}
Update an existing link
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"
}
}
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"
}
}
Was this page helpful?