# Send the whole library again

> Page: https://docs.plotwork.dev/api/post-orgs-org-storage-id-sync. Index of every page: https://docs.plotwork.dev/llms.txt

Queues every library diagram for the destination; files that are current are not uploaded again.

`POST /orgs/{org}/storage/{id}/sync`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Send the whole library again. |
| What does it take? | `org`, `id` in the path. |
| What does it return? | Status 200 with a body of type [`StorageSync`](https://docs.plotwork.dev/api/schemas.md#storagesync). |
| What can go wrong? | `401` not signed in; `403` not the owner or an admin (orgs.forbidden), the plan does not include it (plan.storage_not_included), or the origin may not make changes; `404` no such organisation or destination, or the caller is not a member; `409` the destination is not on (storage.not_on); `429` too many requests; `503` sending to your storage is not available on this server (storage.unavailable). Every failure uses the one error envelope. |

## What it does

Queues every library diagram for the destination; files that are current are not uploaded again.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |
| `id` | `string` | yes | The destination. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | How many diagrams were queued. | [`StorageSync`](https://docs.plotwork.dev/api/schemas.md#storagesync) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | Not the owner or an admin (orgs.forbidden), the plan does not include it (plan.storage_not_included), or the origin may not make changes. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation or destination, or the caller is not a member. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 409 | The destination is not on (storage.not_on). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Sending to your storage is not available on this server (storage.unavailable). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`StorageSync`](https://docs.plotwork.dev/api/schemas.md#storagesync).

| Field | Type | Required | Description |
|---|---|---|---|
| `queued` | `integer` | yes | Diagrams queued to be sent. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
