---
title: "Restore Legacy Sharing"
method: POST
path: "/admin/restore_legacy_sharing"
tags: ["accepts-api-key"]
---

# Restore Legacy Sharing

`POST /admin/restore_legacy_sharing`

## Request

- Base URL: `https://api.tellers.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tellers.ai/admin/restore_legacy_sharing`
- Auth: none declared

Write owners and grants back into the legacy group mappings (SSE).

Run it before rolling the sharing release back, so the previous release,
which reads only the mappings, still finds what was created and shared
since: per-user groups for new accounts, an owner mapping for every asset
with none, every chat and assistant owner and grant. Asset grants are not
carried back. Adds only; safe to run again. Admin only.

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Request body

- LegacySharingRequest
  - `apply_changes` boolean: When false, run every step in one transaction and roll it back: the counts are what a real run would do. Set true to keep them; each step then commits on its own.

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

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