---
title: "Revoke a folder share link"
method: DELETE
path: "/v1/assets/folders/{folder_id}/share-links/{link_id}"
tags: ["assets"]
---

# Revoke a folder share link

`DELETE /v1/assets/folders/{folder_id}/share-links/{link_id}`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/assets/folders/{folder_id}/share-links/{link_id}`
- Auth: HTTP bearer

Shut one folder link off. Takes effect on the next request. Needs only assets:edit.

## Path parameters

- `folder_id` string, uuid, required: The folder's id.
- `link_id` string, uuid, required: The share link's id.

## Headers

- `X-Tenant-Id` string, nullable

## Response `200`

Successful Response

- AssetFolderShareLinkInfo: One folder link as the management view lists it — no token, ever. Mirrors :class:`AssetShareLinkInfo` exactly; see it for why revoked/expired are reported separately.
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `revoked_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: Not found
- `422`: Validation error

---

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