Dub icon

Dub

Interact with the Dub API

Link → Bulk Update

AI-generated

Summary

Updates up to 100 short links simultaneously using either link IDs or external IDs.

Inputs

  • linkSelection (required) — Determines whether to select short links by link IDs or external IDs.
  • linkIds (required) — Comma-separated list of Dub link IDs to update (up to 100). Required when Link Selection is set to 'linkIds'.
  • externalIds (required) — Comma-separated list of external IDs to update (up to 100). Required when Link Selection is set to 'externalIds'.
  • updateData — Collection of fields to update across all specified links, such as destination URL, device targeting, open graph metadata, expiration, folder assignment, and tags.

Output shape

a list of items

Returns an array of updated link objects returned by Dub's API.

Examples

Example 1: Bulk archive short links by Dub link IDs

Set Link Selection to 'By Link IDs', Link IDs to 'clx123, clx456', and set Archived to true under Update Fields.

Example 2: Update destination URL for external links

Set Link Selection to 'By External IDs', External IDs to 'ext_01, ext_02', and set Destination URL under Update Fields.

Links

Discussion