---
title: "Set document owner"
method: POST
path: "/documents/{documentId}/set-owner"
tags: ["Documents"]
---

# Set document owner

`POST /documents/{documentId}/set-owner`

Assign or unassign a user to the document.

## Path parameters

- `documentId` string, required

## Request body

- SetOwnerForDocumentInput
  - `userId` string, nullable, required — The new owner ID

## Response `200`

Ok

- Document
  - `id` string, required — The document's unique ID.
  - `ownerId` string, nullable, required — The user ID of the document's owner.
  - `category` 'Accounts access' | 'Account security' | 'Account setup' | 'Computers' | 'Custom' | 'Data storage' | 'Employees' | 'Infrastructure' | 'IT' | 'Logging' | 'Monitoring alerts' | 'People' | 'Policies' | 'Risk analysis' | 'Software development' | 'CSPM alert management' | 'Vendors' | 'Vulnerability management', required
  - `description` string, required — The document's description.
  - `isSensitive` boolean, required — Determines whether or not the document is sensitive.
  - `title` string, required — The document's title.
  - `uploadStatus` 'Needs document' | 'Needs update' | 'Not relevant' | 'OK', required
  - `uploadStatusDate` string, date-time, nullable, required — The date the document's uploadStatus changed.
  - `url` string, nullable, required — The URL to view the document within Vanta.

---

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