Jmpy.me icon

Jmpy.me

Shorten URLs, generate QR codes, and track campaigns with Jmpy.me

URL → Update Short URL

AI-generated

Summary

Update an existing short URL with new destination, name, campaign, alias, expiration, and tracking settings.

Inputs

  • shortUrlId (required) — The Short URL or Short ID of the URL to update
  • url — The new destination URL to redirect to
  • name — New display name for the shortened URL
  • campaignOption — Choose whether to associate this short URL with a campaign (none, existing, create)
  • campaignId — Choose one of your campaigns; required when campaignOption is 'existing'
  • newCampaignName — Name for a new campaign when campaignOption is 'create'
  • custom_alias — The new custom alias for the URL slug (changing breaks existing links)
  • expiresAt — New expiration date and time in ISO format
  • trackingEnabled — Whether to enable tracking for this shortened URL

Output shape

an object representing the updated short URL (e.g., includes short_code, short_url, destination_url, name, campaign_id, etc.)

Optional fields such as expires_at and tracking_enabled may be omitted if not set; the response follows the format returned by Jmpy's update endpoint.

Examples

Example 1: Update a campaign‑linked short URL to point to a new landing page and assign a new campaign name

shortUrlId: 'abc123'; url: 'https://example.com/new'; name: 'Summer Sale'; campaignOption: 'existing'; campaignId: '12345'; trackingEnabled: true

Example 2: Create a new campaign while updating the destination URL

shortUrlId: 'https://jmpy.me/xyz'; url: 'https://newpage.com'; campaignOption: 'create'; newCampaignName: 'Winter Sale 2026'; trackingEnabled: false

Example 3: Change the custom alias and set an expiration date

shortUrlId: 'my-link'; custom_alias: 'holiday2026'; expiresAt: '2026-12-31T23:59:59Z'

Links

Discussion