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

# Transfer Folder

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

## 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}/transfer`
- Auth: none declared

Transfer a top-level folder, with all its subfolders, to an organization.

TOS-6927. The folder and every subfolder change owner and tenant in one
transaction and take an address under the organization; everyone's existing
access is kept. Requires direct admin on the folder and owner or admin on
the organization. A folder that already belongs to an organization also
needs owner or admin there, since this takes it away from that organization.

## Path parameters

- `domain_ref` string, required

## Headers

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

## Request body

- TransferDomainRequest: TOS-6927: hand a top-level folder and its subfolders to an organization.
  - `organization_id` string, uuid, required: The id of the organization that will own the folder. You must be an owner or admin of it.

## 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)
