Archive or unarchive a short link
tinyurl_set_link_archivedDestructiveIdempotent
WRITE: archive an active short link (archived = true) or restore an archived one (archived = false). Archiving moves the link to the archived list; nothing is deleted and it can be restored. The API's archive endpoint is a toggle, so the link's current state is read first and nothing is changed when it already matches, and the state afterwards is checked. Do not run two archive calls for the same link at once. GET /alias/{domain}/{alias}, then PATCH /archive.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | The alias, the part after the domain: https://tinyurl.com/<alias>. | |
| domain | No | The short link's domain: tinyurl.com (default) or one of the account's branded domains. | tinyurl.com |
| archived | Yes | true = archive the link, false = unarchive it. |