---
title: "Transfer document ownership"
method: PUT
path: "/v1/documents/{documentId}/transfer-ownership"
tags: ["Documents"]
---

# Transfer document ownership

`PUT /v1/documents/{documentId}/transfer-ownership`

Transfer ownership of a document to another user in the organization.

To successfully transfer a document: 

- The user performing the transfer must have `MANAGER` permissions or higher on the document
- The new owner must be a member of the organization AND have explicit access to the document

Upon success, the following occurs: 

- Ownership of the document is updated to the new owner
- The previous owner is granted `MANAGER` permissions on the document
- Explicit permits for the new owner are revoked, as they now have owner access
- Content search index is updated

**Note:** Transferring to the current owner is a no-op and returns success.

## Path parameters

- `documentId` string, required

## Request body

- object
  - `userId` string, required — The membership ID of the user to transfer ownership to. This must be a valid organization member who has explicit permission on the document.

## Response `200`

Document ownership transferred successfully.

**Note:** This response is also returned when transferring to the current owner.

- SuccessResponse
  - `success` boolean

## Other responses

- `400` — Bad Request Possible error messages: - `Invalid JSON` - `userId is required` - `New owner must have explicit document permission`
- `403` — Forbidden Possible error messages: - `Insufficient permissions` - Acting user does not have `MANAGER` or higher permissions on the document
- `404` — Not Found Possible error messages: - `Document with identifier "<documentId>" not found` - `User not found`
- `405` — Method Not Allowed - Invalid HTTP method for this endpoint
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

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