← Short.io

Update a Short Link. with Short.io API

Pipedream makes it easy to connect APIs for Short.io and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Update a Short Link. with the Short.io API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Update a Short Link. with the Short.io API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Update a Short Link. action
    1. Connect your Short.io account
    2. Select a Link
    3. Select a Domain
    4. Configure Original URL
    5. Optional- Configure Path
    6. Optional- Configure Title
    7. Optional- Configure Tags
    8. Optional- Configure Allow duplicates
    9. Optional- Configure Expires at
    10. Optional- Configure Expired URL
    11. Optional- Configure iPhone URL
    12. Optional- Configure Android URL
    13. Optional- Configure password
    14. Optional- Configure UTM Source
    15. Optional- Configure UTM Medium
    16. Optional- Configure UTM Campaign
    17. Optional- Configure UTM Term
    18. Optional- Configure UTM Content
    19. Optional- Configure Cloaking
    20. Optional- Select a Redirect type
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Update a Short Link. with Short.io API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Short.io
 
Try it
Update a Short Link. with Short.io API on New Message in Channel from Discord Bot API
Discord Bot + Short.io
 
Try it
Update a Short Link. with Short.io API on New Submission from Typeform API
Typeform + Short.io
 
Try it
Update a Short Link. with Short.io API on Custom Events from Zoom API
Zoom + Short.io
 
Try it
Update a Short Link. with Short.io API on New Submission (Instant) from Jotform API
Jotform + Short.io
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Update a Short Link. on Short.io
Description:Update original url, title or path for existing URL by id. [See the docs](https://developers.short.io/reference/linksbylinkidpost).
Version:0.0.1
Key:short-update-a-link

Code

import shortApp from "../../short.app.mjs";
import common from "../common/common.mjs";
import lodash from "lodash";

export default {
  key: "short-update-a-link",
  name: "Update a Short Link.",
  description: "Update original url, title or path for existing URL by id. [See the docs](https://developers.short.io/reference/linksbylinkidpost).",
  version: "0.0.1",
  type: "action",
  props: {
    shortApp,
    shortLink: {
      propDefinition: [
        shortApp,
        "link",
      ],
    },
    ...common.props,
  },
  async run({ $ }) {
    const url = new URL(this.shortLink);
    const domain = url.host;
    const path = url.pathname.split("/").join("");
    const linkInfo = await this.shortApp.getLinkInfo(domain, path);

    const param = lodash.pick(this, [
      "domain",
      "originalURL",
      "path",
      "title",
      "tags",
      "allowDuplicates",
      "expiresAt",
      "expiredURL",
      "iphoneURL",
      "androidURL",
      "password",
      "utmSource",
      "utmMedium",
      "utmCampaign",
      "utmTerm",
      "utmContent",
      "cloaking",
      "redirectType",
    ]);

    const link = await this.shortApp.updateLink($, linkInfo.idString, param);
    $.export("$summary", `Successfully updated the link: ${link.secureShortURL}`);
    return link;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Short.ioshortAppappThis component uses the Short.io app.
LinkshortLinkstringSelect a value from the drop down menu.
DomaindomainstringSelect a value from the drop down menu.
Original URLoriginalURLstring

Link, which you want to shorten.

Pathpathstring

Optional path part of newly created link.

If empty - it will be generated automatically.

Titletitlestring

Title of created URL to be shown in short.io admin panel.

Tagstagsstring[]

Specify the tags of your link.

Allow duplicatesallowDuplicatesboolean

Specify whether to allow repeated links to be registered.

Expires atexpiresAtstring

Link expiration date, use yyyy-mm-dd format.

If no expiration date is given (default), link will never expire.

Expired URLexpiredURLstring

URL to redirect when the link is expired.

iPhone URLiphoneURLstring

If users open the URL with iPhone, they will be redirected to this URL.

Android URLandroidURLstring

If users open the URL with Android, they will be redirected to this URL

passwordpasswordstring

Requires Personal plan. Password to be asked when user visits a link.

This password will not be stored in plain text, we will hash it with salt.

UTM SourceutmSourcestring

The referrer: (e.g. google, newsletter).

UTM MediumutmMediumstring

Marketing medium: (e.g. cpc, banner, email).

UTM CampaignutmCampaignstring

Product, promo code, or slogan (e.g. spring_sale).

UTM TermutmTermstring

Identify the paid keywords.

UTM ContentutmContentstring

Use to differentiate ads.

Cloakingcloakingboolean

Specify whether to cloak the link.

Redirect typeredirectTypeintegerSelect a value from the drop down menu:{ "label": "301 Moved Permanently", "value": 301 }{ "label": "302 Found", "value": 302 }{ "label": "303 See Other", "value": 303 }{ "label": "307 Temporary Redirect", "value": 307 }{ "label": "308 Permanent Redirect", "value": 308 }

Authentication

Short.io uses API keys for authentication. When you connect your Short.io account, Pipedream securely stores the keys so you can easily authenticate to Short.io APIs in both code and no-code steps.

Get your secret key here.

About Short.io

White label URL Shortener

More Ways to Use Short.io

Triggers

New event for each link created. from the Short.io API

Emit new event when a link is created.

 
Try it

Actions

Create a Short Link with the Short.io API

Create a Short Link. See the docs.

 
Try it
Delete a Short Link with the Short.io API

Delete a Short Link. See the docs.

 
Try it
Domain Statistics. with the Short.io API

Returns detailed statistics for domain in given period. See the docs.

 
Try it
Expire a Link. with the Short.io API

Expire a link by id. See the docs.

 
Try it