---
title: "Edit a short link"
method: PATCH
path: "/v1/links/{id}"
tags: ["Links"]
---

# Edit a short link

`PATCH /v1/links/{id}`

## Request

- Base URL: `https://app.getshareglow.com`
- URL: `https://app.getshareglow.com/v1/links/{id}`
- Auth: HTTP bearer

Changes where a link points or how its preview looks, without changing the short URL. The slug cannot be edited. Every field is optional; `null` clears a preview field. The destination goes through the same checks as on creation (public host, Safe Browsing, not another short link). Also accepts the link settings: `expiresAt`, `expiredUrl`, `password`, `pixels`, `routing`, `deepLink`. With approvals on, the change is queued and answered with 202 `pending_approval`.

## Path parameters

- `id` string, required

## Request body

- object
  - `destination` string, uri
  - `title` string, nullable
  - `description` string, nullable
  - `og` object
    - `title` string, nullable
    - `description` string, nullable
    - `imageUrl` string, uri, nullable
  - `expiresAt` string, date-time, nullable
  - `expiredUrl` string, uri, nullable

## Response `200`

Updated link

- object
  - `id` string, required
  - `slug` string, required
  - `shortUrl` string, uri, required
  - `destination` string, uri, required
  - `status` string

## Other responses

- `202`: Queued for owner approval (`pending_approval`); the live link is unchanged until approved.
- `400`: Validation failed (`bad_request`, `invalid_url`, ...).
- `401`: Missing, unknown or revoked API key.
- `403`: The API key is valid but lacks the scope this endpoint needs (images, templates, scan, links, monitors or ai).
- `404`: The id does not exist in this workspace (`not_found`, `link_not_found`, `template_not_found`).
- `413`: The JSON body is over 1 MB (`payload_too_large`).
- `429`: Daily call limit reached. Retry after the `Retry-After` seconds.

---

[API](https://skmtc.dev/getshareglow/apis/shareglow-api.md) · [All operations](https://skmtc.dev/getshareglow/apis/shareglow-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getshareglow/apis/shareglow-api/revisions/3ea838c40d3c?raw)
