---
title: "Move Pieces"
method: POST
path: "/v2/workspaces/{workspace_id}/folders/move-pieces"
tags: ["v2 - Workspaces", "Folders"]
---

# Move Pieces

`POST /v2/workspaces/{workspace_id}/folders/move-pieces`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/workspaces/{workspace_id}/folders/move-pieces`
- Auth: HTTP bearer

Put one or more pieces in a folder of this workspace, or back at the
root (folder_id null). Every piece must be in this workspace, or nothing
moves. Changes folder_id only. Access: CONTENT_ORGANISE.

## Path parameters

- `workspace_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- MovePiecesRequest
  - `content_ids` string[], required
  - `folder_id` string, nullable: The folder to move into; null = the workspace root

## Response `200`

Successful Response

- MovePiecesResponse
  - `moved` string[], required
  - `folder_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
