---
title: "Save a cloned variation to the Library"
method: POST
path: "/cloning/pieces/{pieceId}/library"
tags: ["Cloning"]
---

# Save a cloned variation to the Library

`POST /cloning/pieces/{pieceId}/library`

## Request

- Base URL: `https://app.getprolifik.com/api/v1`
- URL: `https://app.getprolifik.com/api/v1/cloning/pieces/{pieceId}/library`
- Auth: HTTP bearer

A variation stays on its cloning job until it is kept. Once saved it appears in /content/pieces and can be scheduled or posted through /content/publishes.

## Path parameters

- `pieceId` string, uuid, required

## Response `200`

Saved

- Ok
  - `ok` true, required

## Other responses

- `400`: Request failed
- `401`: Request failed
- `402`: Payment required. error.code is subscription_required (the plan does not include this feature, or the key's account no longer has a plan: API keys are paid-only, so every write from a key whose account has none is refused; see error.upgradeUrl), insufficient_credits (the AI-credit balance is short; see error.needed, error.balance, error.upgradeUrl), or quota_exceeded (a plan quota such as monthly videos or clip minutes).
- `403`: Request failed
- `404`: Request failed
- `409`: Request failed
- `429`: Request failed

---

[API](https://skmtc.dev/getprolifik/apis/prolifik-public-api.md) · [All operations](https://skmtc.dev/getprolifik/apis/prolifik-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getprolifik/apis/prolifik-public-api/revisions/301e79c5763c?raw)
