---
title: "Store the preview PNG of a shared wireframe"
method: POST
path: "/api/share/save-png"
tags: ["sharing"]
---

# Store the preview PNG of a shared wireframe

`POST /api/share/save-png`

## Request

- Base URL: `https://voltplan.app`
- URL: `https://voltplan.app/api/share/save-png`
- Auth: none declared

Authenticates server-side as PocketBase superuser and uploads `preview_image` into the `preview_image` field of the `wireframe_states` record `wireframeId`; `GET /api/share/{token}/{filename}` later serves it. No caller authentication. PocketBase errors are answered with their HTTP status and message (status 500 when none).

## Response `200`

PNG stored.

- SharePngSaved: Acknowledgement of POST /api/share/save-png.
  - `success` true, required

## Other responses

- `400`: `wireframeId` or `preview_image` missing, or PocketBase rejected the superuser login or the file.
- `404`: No `wireframe_states` record with this id (PocketBase message).
- `500`: Superuser credentials not configured, body is not multipart/form-data, or PocketBase unreachable.

---

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