---
title: "Restore a saved blueprint"
method: POST
path: "/v1/blueprints/{blueprintId}/restore"
tags: ["Blueprints"]
---

# Restore a saved blueprint

`POST /v1/blueprints/{blueprintId}/restore`

## Request

- Base URL: `https://api.banksync.io`
- URL: `https://api.banksync.io/v1/blueprints/{blueprintId}/restore`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Restore a deleted saved template within 30 days (`RESTORE_WINDOW_PASSED` after). Refused (`KEY_TAKEN`) when a live template now uses its key.

## Path parameters

- `blueprintId` string, required: Saved blueprint id, from the list

## Headers

- `Idempotency-Key` string: Makes a retry safe: the same key with the same request replays the first answer for 24 hours instead of running twice, and the same key with a different request is a 409 `IDEMPOTENCY_KEY_REUSED`. Refusals a retry can outlive — 408, 409, 423, 425, 429 and every 5xx — are never replayed, so retrying with the same key after the cause clears runs the request.

## Response `200`

The restored blueprint

- object
  - `success` true, required
  - `data` object, required
    - `blueprint` object, required
      - `id` string, required: Saved blueprint id — the `blueprintId` other operations take
      - `key` string, required
      - `title` string, required
      - `description` string, nullable, required
      - `contract` string, required
      - `digest` string, required
      - `version` integer, required
      - `resourceCount` integer, required
      - `kinds` string[], required
      - `forkedFromReleaseId` string, nullable, required
      - `visibility` 'private' | 'workspace', required: `private`: only its owner sees it; `workspace`: every member does
      - `createdAt` string, nullable, required
      - `updatedAt` string, nullable, required
      - `deletedAt` string, nullable, required
      - `blueprint` object, required

## Other responses

- `400`: Invalid input — `code` names it: `VALIDATION_FAILED`, `INVALID`, `INVALID_BLUEPRINT` (not a blueprint this workspace can read), `PORTABILITY_VIOLATION` (it still carries workspace ids), `UNSAFE_BLUEPRINT`, `INVALID_BINDINGS` (an input is missing or does not fit), `RESTORE_WINDOW_PASSED`; `details[]` names each field
- `401`: Unauthorized
- `403`: Forbidden — a missing `marketplace:read` / `marketplace:write` scope, a role below editor for a change, an installed app outside the public marketplace, an unverified listing already installed in ten workspaces (`INSTALL_CAP_REACHED`), or a template that needs more tables, feeds or enrichments than the workspace plan has left (`PLAN_LIMIT_REACHED`)
- `404`: Not found — something this workspace may not see answers exactly as something that does not exist; or the marketplace is not enabled for this workspace
- `409`: Conflict — it changed since you read it (`STALE`), it is busy or in the wrong state (`INVALID_STATE`), the listing cannot be installed (`NOT_INSTALLABLE`), a key is taken (`KEY_TAKEN`), or an existing container does not fit (`ADOPTION_CONFLICT`)
- `429`: Too many — the key’s rate limit, or a marketplace quota (`QUOTA_EXCEEDED`: 200 saved templates per workspace, 50 installs per hour). `Retry-After` says when to come back.
- `503`: The marketplace is temporarily unavailable; retry shortly

---

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