1. Short links
uploadthefile API documentation
  • Pages
    • Create a page
      POST
    • Update a page in place
      PUT
    • List pages
      GET
    • Get a page
      GET
    • Rename a page
      PATCH
    • Delete a page
      DELETE
    • Unzip & host a page
      POST
    • Get page password state
      GET
    • Set page password
      PUT
    • Remove page password
      DELETE
    • Get email-gate config
      GET
    • Configure email-gate
      PUT
    • Disable email-gate
      DELETE
    • List or export captured emails
      GET
    • Get page display mode
      GET
    • Set page display mode
      PUT
    • Get PDF chat availability
      GET
    • Enable PDF chat
      PUT
    • Disable PDF chat
      DELETE
    • Bulk delete pages
      POST
  • Short links
    • List short links
      GET
    • Create a short link
      POST
    • Bulk update short links
      POST
    • Get a short link
      GET
    • Update a short link
      PATCH
    • Delete a short link
      DELETE
    • Get link click history
      GET
  • Domains
    • List custom domains
    • Connect a custom domain
    • Search domain availability
    • Rebind a domain to a different page
    • Disconnect a domain
  • Account
    • Get account, limits, and usage
  • Schemas
    • UploadCreateForm
    • UploadUpdateForm
    • SubdomainName
    • RenamePageRequest
    • CreateLinkRequest
    • UpdateLinkRequest
    • BulkDeletePagesRequest
    • BulkLinkActionRequest
    • ClickPoint
    • DisplayMode
    • SetDisplayModeRequest
    • SetPasswordRequest
    • SetEmailGateRequest
    • EmailCapture
    • ConnectDomainRequest
    • RebindDomainRequest
    • DomainConnection
    • DomainSearchResult
    • LinkCode
    • ExpiryOption
    • ApiPage
    • ShortLink
    • AccountInfo
    • UploadResult
    • HostResult
    • DeleteResult
    • UpgradeNudge
    • Error
    • UploadResultEnvelope
    • PageEnvelope
    • PagesListEnvelope
    • HostEnvelope
    • DeleteEnvelope
    • LinkEnvelope
    • LinksListEnvelope
    • AccountEnvelope
    • BulkDeletedEnvelope
    • BulkAffectedEnvelope
    • ClickSeriesEnvelope
    • PagePasswordStateEnvelope
    • PagePasswordResultEnvelope
    • EmailGateStateEnvelope
    • EmailGateUpdatedEnvelope
    • EmailGateDisabledEnvelope
    • CapturesEnvelope
    • DisplayModeStateEnvelope
    • DisplayModeResultEnvelope
    • ChatAvailabilityEnvelope
    • DomainsListEnvelope
    • DomainConnectionEnvelope
    • DomainDeletedEnvelope
    • DomainSearchEnvelope
  1. Short links

Update a short link

PATCH
/links/{id}
Update a short link you own. disabled (pause/resume) is always allowed;
url (repoint) and expiry changes are value edits gated to paid plans.
A new destination is re-validated and re-screened by Safe Browsing. The
custom code and click history are always preserved. At least one field
must be provided.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
The updated short link.
Bodyapplication/json

🟠400BadRequest
🟠401Unauthorized
🟠403Forbidden
🟠404NotFound
🟠422UnsafeDestination
🟠429TooManyRequests
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://upload.tf/api/v1/links/7f3c1a2e-2d4b-4a9f-9e21-0b8c5a1d3e4f' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "disabled": true,
    "url": "http://example.com",
    "expiry": "never"
}'
Response Response Example
200 - Example 1
{
    "success": true,
    "data": {
        "id": "7f3c1a2e-2d4b-4a9f-9e21-0b8c5a1d3e4f",
        "code": "ab12c",
        "url": "https://example.com/a/very/long/path",
        "shortUrl": "https://upl.tf/ab12c",
        "createdAt": "2019-08-24T14:15:22.123Z",
        "expiresAt": "2019-08-24T14:15:22.123Z",
        "disabled": true,
        "clicks": 42
    }
}
Modified at 2026-06-26 19:58:05
Previous
Get a short link
Next
Delete a short link
Built with