---
title: "Turn folder sharing off"
method: POST
path: "/v1/assets/folders/{folder_id}/share-links/revoke-all"
tags: ["assets"]
---

# Turn folder sharing off

`POST /v1/assets/folders/{folder_id}/share-links/revoke-all`

## 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/revoke-all`
- Auth: HTTP bearer

Revoke every not-yet-revoked link on this folder — the folder's own off switch. Re-sharing mints a new URL; the old one never revives. Needs only assets:edit.

## Path parameters

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

## Headers

- `X-Tenant-Id` string, nullable

## Response `200`

Successful Response

- AssetFolderShareLinksRevoked: What turning a folder's sharing off did — how many links it closed.
  - `revoked_count` integer, required: How many not-yet-revoked links this folder had.

## 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)
