---
title: "POST documents remove_user"
method: POST
path: "/api/v1/documents/{id}/remove_user"
---

# POST documents remove_user

`POST /api/v1/documents/{id}/remove_user`

## Path parameters

- `id` string, required

## Request body

- object
  - `user` object, required
    - `__DOLLAR_REF__` string, uri

## Response `200`

OK

- Documents
  - `$uri` string, required
  - `created_at` string, date-time, required — Timestamp for when the object was created on the One Codex platform, encoded as a [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp.
  - `downloaders` object[], required — An (optionally empty) array of references to users that the document has been shared with. These users are able to download (but not modify) the document.
    - `__DOLLAR_REF__` string, uri
  - `filename` string, required — The document filename (e.g., "report.pdf")
  - `size` integer, nullable, required — The size of the document in bytes.
  - `uploader` object, required — A reference to the user that uploaded and owns the document, e.g., `{"$ref": "/api/v1/users/5891ee65711c4d5e"}`. Only owners can modify a document (with some exceptions in the case of organization accounts configured for multiple users - please [contact us](mailto:support@onecodex.com) if you'd like to discuss this use case).
    - `__DOLLAR_REF__` string, uri

---

[API](https://skmtc.net/onecodex/apis/one-codex-api-v1.md) · [All operations](https://skmtc.net/onecodex/apis/one-codex-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onecodex/one-codex-api-v1/versions/fe9d9bfc8a6a/schema)
