PUT
/
short-urls
/
{shortCode}
Update Short URL
curl --request PUT \
  --url https://connextify.com/api/v1/short-urls/{shortCode} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "name": "<string>",
  "expires_at": "<string>",
  "tracking_enabled": true,
  "custom_alias": "<string>",
  "url_type": "<string>",
  "subdomain": "<string>",
  "branded_domain": "<string>",
  "campaign_id": "<string>",
  "password": "<string>",
  "dynamic": true,
  "qrCode": true,
  "qrFormat": "<string>",
  "tags": [
    {}
  ],
  "utm_template_id": "<string>",
  "utm_source": "<string>",
  "utm_medium": "<string>",
  "utm_campaign": "<string>",
  "utm_term": "<string>",
  "utm_content": "<string>",
  "utm_source_platform": "<string>",
  "utm_creative_format": "<string>",
  "utm_marketing_tactic": "<string>",
  "utm_id": "<string>",
  "custom_params": {},
  "start_at": "<string>",
  "pre_launch_action": "<string>",
  "pre_launch_fallback_url": "<string>",
  "pre_launch_html": "<string>",
  "click_cap": 123,
  "is_burner": true,
  "expired_action": "<string>",
  "expired_fallback_url": "<string>",
  "waitlist_config": {},
  "expiry_alerts_enabled": true,
  "smart_deep_link_enabled": true,
  "ios_url": "<string>",
  "android_url": "<string>",
  "windows_url": "<string>",
  "mac_url": "<string>",
  "pass_query_params": true,
  "conversions_enabled": true,
  "geo_rules": [
    {}
  ],
  "language_rules": [
    {}
  ],
  "referrer_rules": [
    {}
  ],
  "time_rotation": {},
  "pixel_delivery_mode": "<string>",
  "pixel_ids": [
    {}
  ],
  "gdpr_consent_enabled": true
}
'
Update the properties of an existing short URL. You can modify the destination URL, name, expiration, custom alias, domain settings, and more. Only the fields you include in the request body will be updated.
Custom Alias Updates: You can change the custom alias of an existing URL. The new alias must be available within the URL’s domain context. Use the Check Alias Availability endpoint to verify availability first.

Path Parameters

shortCode
string
required
The short code, custom alias, or UUID of the short URL to update.Examples: abc123, my-campaign, 550e8400-e29b-41d4-a716-446655440000

Body Parameters

URL Settings

url
string
Update the destination URL. Must be a valid HTTP or HTTPS URL.
name
string
Update the friendly name (1-255 characters).
expires_at
string
Update or set expiration date (ISO 8601 format). Pass null to remove expiration.Example: 2025-12-31T23:59:59.000Z
tracking_enabled
boolean
Enable or disable analytics tracking. See Analytics API for click data.

Custom Alias

custom_alias
string
Update the custom alias. The new alias must be:
  • 3-50 characters
  • Alphanumeric with underscores or dashes only
  • Unique within the URL’s domain context
Changing the alias will change the short URL. Existing links using the old alias will stop working. Make sure to update any published links.
Use Check Alias Availability to verify the new alias is available before updating.

Domain Settings

url_type
string
Change the Link Branding style: standard (connextify.com), subdomain, or branded domain.
Changing the Link Branding style will change the short URL domain. This is a significant change - existing links will stop working.
subdomain
string
Change to a different subdomain (when url_type (Link Branding style) is subdomain). Must be a verified subdomain you own.See List Subdomains to view your registered subdomains.
branded_domain
string
Change to a different branded domain (when url_type (Link Branding style) is branded). Must be a verified domain you own.See List Branded Domains to view your registered domains.

Organization

campaign_id
string
Associate with a different campaign (UUID), or pass null to remove from campaign.See List Campaigns to find campaign IDs.
password
string
Set or update password protection. Pass null to remove password.
dynamic
boolean
default:false
Whether the short URL should be dynamic (302 redirect) or standard (301 redirect).
  • Standard (false): Uses a 301 Permanent Redirect. Best for SEO and speed, but the original URL cannot be changed once created.
  • Dynamic (true): Uses a 302 Temporary Redirect. Allows you to change the destination URL at any time without changing the short URL.
qrCode
boolean
Generate a new QR code for the updated short URL. If true, the QR code will encode the current short URL with isshortqrscan=1 appended.
qrFormat
string
default:"image"
The format for the returned QR code.
  • image: Returns a native image block (recommended for API/MCP) or base64 data URL.
  • json: Returns just the base64 data URL in the JSON response.
tags
array
Updated list of categorization tags.Example: ["marketing", "social", "q4-2024"]

Attribution & UTM Parameters

Updating UTM parameters will automatically append or modify the parameters on the destination URL.
utm_template_id
string
Update or apply a saved UTM template (UUID). Automatically resolves and updates all associated UTM campaign parameters. Pass an empty string or null to detach.
utm_source
string
Campaign source (e.g. google, newsletter).
utm_medium
string
Campaign medium (e.g. cpc, email).
utm_campaign
string
Campaign name (e.g. summer_launch).
utm_term
string
Campaign term/keywords (e.g. running_shoes).
utm_content
string
Campaign content variant (e.g. cta_button_blue).
utm_source_platform
string
Source platform sending traffic (e.g. google_ads, meta).
utm_creative_format
string
Creative format (e.g. video, carousel, qr).
utm_marketing_tactic
string
Marketing tactic (e.g. prospecting, retention).
utm_id
string
Campaign or ad identifier.
custom_params
object
Arbitrary key-value attribution or metadata parameters (e.g. {"affiliate_id": "123"}).
start_at
string
Update or set scheduled activation timestamp (ISO 8601). Before this timestamp, link visitors are handled according to pre_launch_action. Pass null to remove start restriction.Example: 2026-11-01T00:00:00Z
pre_launch_action
string
Action to take before start_at: countdown (interactive countdown teaser), fallback_url (silent redirect), or custom_html (render custom HTML teaser).
pre_launch_fallback_url
string
Fallback redirect URL when pre_launch_action is fallback_url.
pre_launch_html
string
Raw HTML snippet to serve before activation when pre_launch_action is custom_html.
click_cap
integer
Update or set maximum click limit before the link expires. Pass null to remove click cap.Example: 1000
is_burner
boolean
Set or toggle single-use burn-after-reading mode (expires immediately after 1 click).
expired_action
string
Action when expired: default (standard expired error page), fallback_url (redirect to expired_fallback_url), or waitlist (email lead capture card).
expired_fallback_url
string
Fallback redirect destination URL when expired_action is fallback_url.
waitlist_config
object
Waitlist modal configuration when expired_action is waitlist (includes title, description, button_text, webhook_url, tags).
expiry_alerts_enabled
boolean
Enable or disable capacity warning email notifications (80% / 100% cap and 24h before date expiry).

Mobile & Desktop Deep Linking

Enable or disable intelligent mobile deep linking with automatic device detection for 21+ platforms (YouTube, Spotify, Apple Music, TikTok, Instagram, Twitter/X, Discord, Twitch, etc.).
ios_url
string
Update iOS custom app scheme or App Store destination URL. Pass null or empty string to remove.
android_url
string
Update Android Intent URI or Google Play Store destination URL. Pass null or empty string to remove.
windows_url
string
Update custom destination URL specifically for Windows desktop visitors.
mac_url
string
Update custom destination URL specifically for macOS desktop visitors.

Parameter Forwarding & Conversion Tracking

pass_query_params
boolean
Enable or disable query parameter forwarding. When enabled, incoming UTM tags, affiliate IDs, and click tokens are appended to the destination URL.
conversions_enabled
boolean
Enable or disable downstream conversion tracking and revenue attribution. When enabled, the short link appends cnfy_click_id tokens to outgoing redirects.

Dynamic Routing & Schedule Rotation

geo_rules
array
Update country-specific destination rules based on ISO 3166-1 alpha-2 country codes.
language_rules
array
Update browser language rules based on Accept-Language headers.
referrer_rules
array
Update referrer/traffic-source destination rules based on incoming source domains.
time_rotation
object
Update dayparting and schedule rotation settings (enabled, timezone, timezone_mode, fallback_url, rules).

Retargeting Pixels & Tracking

pixel_delivery_mode
string
Event delivery mode: server (server-side CAPI direct relay), client (browser interstitial), or auto.
pixel_ids
array
Update connected retargeting pixel IDs (Meta, GA4, GTM, TikTok, LinkedIn, Twitter/X, Microsoft, Pinterest, etc.). Supported across Server-Side CAPI and Browser Interstitial modes.
Toggle the interactive GDPR consent prompt before firing client-side tracking pixels.

Request Examples

curl -X PUT "https://connextify.com/api/v1/short-urls/my-campaign" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "click_cap": 250,
    "expired_action": "waitlist",
    "waitlist_config": {
      "title": "Early Bird Access Ended",
      "description": "Leave your email to get notified when new slots open up."
    },
    "expiry_alerts_enabled": true
  }'

Response Examples

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "short_code": "new-alias",
    "short_url": "https://connextify.com/new-alias",
    "original_url": "https://example.com/new-destination",
    "name": "Updated Campaign Link",
    "custom_alias": "new-alias",
    "click_count": 1542,
    "tracking_enabled": true,
    "url_type": "standard",
    "subdomain": null,
    "branded_domain": null,
    "expires_at": "2025-12-31T23:59:59.000Z",
    "created_at": "2024-01-15T10:30:00.000Z",
    "updated_at": "2024-01-21T09:15:00.000Z",
    "qr_code": null,
    "qr_content": null
  }
}

Use Cases

Quickly swap destinations to test different landing pages:
async function updateDestination(shortCode, newUrl) {
  const response = await fetch(
    `https://connextify.com/api/v1/short-urls/${shortCode}`,
    {
      method: 'PUT',
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({ url: newUrl })
    }
  );
  
  const { data } = await response.json();
  console.log(`Updated ${data.short_url} → ${data.original_url}`);
}

// Switch to version B
await updateDestination('promo', 'https://example.com/landing-page-v2');

// Check analytics: /api-reference/analytics/url-overview
Migrate a link from standard to your branded domain:
import requests

# First, ensure you have a verified branded domain
# See: /api-reference/domains/create-branded

short_code = "my-link"

response = requests.put(
    f"https://connextify.com/api/v1/short-urls/{short_code}",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json={
        "url_type": "branded",
        "branded_domain": "go.mycompany.com"
    }
)

result = response.json()
print(f"New URL: {result['data']['short_url']}")
# Output: New URL: https://go.mycompany.com/my-link
Add or remove links from campaigns:
// Add to campaign
// First, find campaign ID: /api-reference/campaigns/list
await fetch('https://connextify.com/api/v1/short-urls/my-link', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    campaign_id: '550e8400-e29b-41d4-a716-446655440000'
  })
});

// Remove from campaign
await fetch('https://connextify.com/api/v1/short-urls/my-link', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    campaign_id: null  // Pass null to remove
  })
});
Check availability before changing an alias:
async function safelyUpdateAlias(currentAlias, newAlias, urlType = 'standard') {
  // Step 1: Check if new alias is available
  // See: /api-reference/custom-aliases/check
  const checkResponse = await fetch(
    `https://connextify.com/api/v1/short-urls/check-alias?alias=${newAlias}&url_type=${urlType}`,
    { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
  );
  const { data: checkData } = await checkResponse.json();
  
  if (!checkData.available) {
    throw new Error(`Alias "${newAlias}" is already taken`);
  }
  
  // Step 2: Update the alias
  const updateResponse = await fetch(
    `https://connextify.com/api/v1/short-urls/${currentAlias}`,
    {
      method: 'PUT',
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({ custom_alias: newAlias })
    }
  );
  
  const { data } = await updateResponse.json();
  console.log(`Alias updated: ${data.short_url}`);
}

Get Short URL

View current short URL details

Check Alias

Verify alias availability before updating

Delete Short URL

Remove a short URL permanently

URL Analytics

View click analytics for this URL

List Campaigns

Find campaign IDs for association

List Domains

View available domains for migration