---
title: "Move Folder Entities"
method: POST
path: "/api/public/v2/folders/entities"
tags: ["folders"]
---

# Move Folder Entities

`POST /api/public/v2/folders/entities`

## Request body

- MoveFolderEntitiesRequest
  - `entities` EntityReference[], required — List of entities to move.
    - `id` integer, required — The ID of the entity.
    - `type` 'FOLDER' | 'PROMPT' | 'SNIPPET' | 'WORKFLOW' | 'DATASET' | 'REPORT' | 'AB_TEST' | 'INPUT_VARIABLE_SET', required — The type of entity. SNIPPET is a pseudo-entity type representing completion-type prompts.
  - `folder_id` integer, nullable — The ID of the destination folder. If null or not provided, entities are moved to the workspace root.
  - `workspace_id` integer — The ID of the workspace.

## Response `200`

Entities moved successfully

- FolderEntitiesCountResponse
  - `moved_count` integer — The number of entities affected by the operation.

## Other responses

- `400` — Bad request - Missing workspace_id or invalid entity type
- `401` — Unauthorized - Missing or invalid API key
- `404` — Folder or entity not found
- `422` — Validation error - request parameters or body are invalid.

---

[API](https://skmtc.net/promptlayer/apis/promptlayer-api.md) · [All operations](https://skmtc.net/promptlayer/apis/promptlayer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/promptlayer/promptlayer-api/versions/a23093a0a506/schema)
