← Short.io

Update a Short Link. with Short.io API

Pipedream makes it easy to connect APIs for Short.io and 1400+ 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 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

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, source-available 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

Explore Other Apps

1
-
12
of
1400+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.