---
title: "Copy the library catalog (`_meta`) into Core (super_admin)"
method: POST
path: "/api/admin/library/sync"
tags: ["library"]
---

# Copy the library catalog (\`_meta\`) into Core (super_admin)

`POST /api/admin/library/sync`

## Request

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

Reads items, objects and the latest freshness snapshot of the library project as the runtime identity and upserts `platform_library/{itemId}`. Items that do not validate and items no longer published are reported, never deleted.

## Response `200`

What the sync did.

- object
  - `ok` true, required
  - `read` integer, required
  - `written` integer, required
  - `items` integer, required
  - `objects` integer
  - `invalid` object[], required
    - `id` string, required
    - `error` string, required
  - `stale` string[], required
  - `syncedAt` string, required

## Other responses

- `400`: Invalid request, or the item has no dataset.
- `403`: Not allowed, or the library is off for the organization.
- `404`: Unknown item.
- `502`: The dataset grant could not be written.
- `503`: The organization has no data identity yet.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
