---
title: "Move Folder"
method: POST
path: "/api/folders/{domain_ref}/move"
tags: ["domains"]
---

# Move Folder

`POST /api/folders/{domain_ref}/move`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/folders/{domain_ref}/move`
- Auth: none declared

Re-parent a folder; its whole subtree is re-pathed in one transaction.

TOS-2002 (Domains P2). Admin on the folder AND on the target parent - a
move rewrites addresses on both sides of the tree.

## Path parameters

- `domain_ref` string, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- MoveDomainRequest: TOS-2002: re-parent a folder. ``parent_id=None`` promotes it to a root.
  - `parent_id` union
    - string, uuid
    - string

## Response `200`

Successful Response

- LibraryResponse
  - `id` string, uuid, required
  - `name` string, required
  - `my_role` string, required
  - `is_direct_member` boolean
  - `can_administer` boolean
  - `owner_identity_id` string, uuid, nullable
  - `owner_identity_display_name` string, nullable
  - `owner_identity_avatar_url` string, nullable
  - `owner_identity_kind` string, nullable
  - `is_private` boolean
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable
  - `document_count` integer
  - `member_count` integer
  - `last_activity_at` string, date-time, nullable
  - `members_preview` MemberPreviewResponse[]
    - `identity_id` string, uuid, required
    - `display_name` string, required
    - `avatar_url` string, nullable, required
    - `kind` string, required
  - `parent_id` string, uuid, nullable
  - `slug` string, nullable
  - `display_name` string, nullable
  - `path` string, nullable
  - `address` string, nullable
  - `org_identity_id` string, uuid, nullable
  - `org_display_name` string, nullable
  - `owner_org_identity_id` string, uuid, nullable
  - `owner_org_display_name` string, nullable

## Other responses

- `422`: Validation Error

---

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