---
title: "Move workflows to a different folder"
method: PATCH
path: "/api/v2/{org_id}/workflows/move"
tags: ["Workflows"]
---

# Move workflows to a different folder

`PATCH /api/v2/{org_id}/workflows/move`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/v2/{org_id}/workflows/move`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/v2/:org_id/workflows/move/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Request body

- MoveWorkflowsRequestBody: MoveWorkflows
  - `dst_folder_id` string, required: Destination folder id.
  - `workflow_ids` string[], required: IDs of the workflows to move.

## Response `200`

Moved

## Other responses

- `400`: No workflow ids, too many ids, or an empty destination folder
- `403`: Forbidden
- `404`: A workflow or the destination folder does not exist
- `500`: Error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
