---
title: "Rename, pin or hide a link"
method: PATCH
path: "/api/v1/links/saved/{id}"
tags: ["Saved links"]
---

# Rename, pin or hide a link

`PATCH /api/v1/links/saved/{id}`

## Request

- Base URL: `https://spoofy.social`
- URL: `https://spoofy.social/api/v1/links/saved/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Change your name for it (`label`, null to drop it), pin or unpin it, or hide it / bring it back.

## Path parameters

- `id` string, required

## Request body

- object
  - `label` string, nullable
  - `pinned` boolean
  - `hidden` boolean

## Response `200`

Changed.

- object
  - `link` SavedLink: A link you pasted or ordered for, remembered once per page: the same profile shared with a tracking tail, "www." or another case is one link.
    - `id` string
    - `url` string: The link, tidied (tracking parameters and the trailing slash dropped, a handle in lower case): orders for it go here.
    - `platform` string: x, telegram, youtube, … or web.
    - `kind` string: What it points to: profile, post, video, channel, group, token, site, track, stream or server.
    - `label` string: Your name for it, else what it is ("@yourname", "Post").
    - `customLabel` string, nullable: Your own name for it; null when you never gave one.
    - `pinned` boolean: Shown before the others.
    - `hidden` boolean: Taken off the list (using the link again brings it back).
    - `useCount` integer
    - `lastUsedAt` string, date-time
    - `createdAt` string, date-time

## Other responses

- `404`: Not found on your account.
- `413`: The request body is too big (uploads up to 4 MB, everything else up to 64 KB).
- `429`: Slow down: too many requests in a short time. Wait `Retry-After` seconds and carry on.

---

[API](https://skmtc.dev/spoofy/apis/spoofy-api.md) · [All operations](https://skmtc.dev/spoofy/apis/spoofy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spoofy/apis/spoofy-api/revisions/58adc986f826?raw)
