import { UpdateCustomerLink } from "dub/models/operations";
let value: UpdateCustomerLink = {
id: "<id>",
domain: "ignorant-netsuke.org",
key: "<key>",
shortLink: "https://incomparable-coin.net/",
programId: "<id>",
};
Field |
Type |
Required |
Description |
id |
string |
✔️ |
The unique ID of the short link. |
domain |
string |
✔️ |
The domain of the short link. If not provided, the primary domain for the workspace will be used (or dub.sh if the workspace has no domains). |
key |
string |
✔️ |
The short link slug. If not provided, a random 7-character slug will be generated. |
shortLink |
string |
✔️ |
The full URL of the short link, including the https protocol (e.g. https://dub.sh/try ). |
programId |
string |
✔️ |
The ID of the program the short link is associated with. |