Update an existing short link’s configuration.
Updatable: Domain, slug, destination, folder, tags, routing rules, QR code, password, max clicks, expiration, cloaking, meta tags Automatic: URL threat recheck, QR code template sync if domain changed, tag/folder count updates Note: All fields optional - only send fields to update
API Key authentication for programmatic access.
How to use:
x-api-key header with each requestExample:
curl -H "x-api-key: your-api-key-here" https://api.h0p.co/short-link/listTypes of API keys:
Security notes:
Unique identifier in UUID v7 format
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Fields to update (partial update supported)
Short link creation/update request
Main destination URL/email/phone
{
"type": "link",
"value": "https://example.com",
"threatTypes": null
}UUID of the domain to use
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Domain name to use (alternative to domainId)
"links.example.com"
UUID of folder to organize link
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Array of tag names to associate
101 - 30[
"marketing",
"campaign-2024",
"social-media"
]Custom slug for the short link
1 - 50^(?![-_])[A-Za-z0-9-_]{1,50}(?<![-_])$"summer-sale"
Maximum number of clicks before link expires
x > 11000
Link expiration date/time
"2024-12-31T23:59:59Z"
Password to protect link access
5 - 25"secretpass123"
Hide destination URL in browser
false
Enable automatic deep linking to mobile apps
true
Smart routing rules array
Custom QR code configuration for this link
Custom Open Graph meta tags
{
"title": "Amazing Product Launch 2024",
"description": "Be the first to discover our revolutionary new product with exclusive early access.",
"imageId": "01933eb8-541f-7000-a9f4-e4eee80ff04e"
}Short link updated successfully
Complete short link with all nested objects
Domain details
Smart routing rules with IDs
QR code configuration
Main destination configuration
{
"type": "link",
"value": "https://example.com",
"threatTypes": null
}Meta tags configuration
{
"title": "Amazing Product Launch 2024",
"description": "Be the first to discover our revolutionary new product.",
"imageId": "01933eb8-541f-7000-a9f4-e4eee80ff04e",
"image": {
"id": "01933eb8-541f-7000-a9f4-e4eee80ff04e",
"key": "meta-tag/01933eb8-541f-7000-a9f4-e4eee80ff04e.png"
}
}Associated tags
Short link UUID
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Organization UUID
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Whether link is active
true
QR code configuration UUID
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Domain UUID
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Folder UUID
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Short link slug
"summer-sale"
Complete short URL
"https://links.example.com/summer-sale"
Expiration timestamp
"2024-12-31T23:59:59Z"
Maximum click limit
1000
Current click count
x >= 0247
Whether link is password protected
false
Whether destination is hidden
false
Destination configuration UUID
"01933eb8-541f-7000-a9f4-e4eee80ff04e"
Creation timestamp
"2024-01-15T10:30:00Z"
Last update timestamp
"2024-01-16T14:20:00Z"