---
title: "Update Document Raw"
method: PUT
path: "/documents/{document_id}/raw"
tags: ["documents"]
---

# Update Document Raw

`PUT /documents/{document_id}/raw`

## Path parameters

- `document_id` string, uuid, required — The id of the document.

## Headers

- `partition` string, nullable — An optional partition to scope the request to. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition, while older accounts will have the request scoped to all partitions. Older accounts may opt in to strict partition scoping by contacting support@ragie.ai. Older accounts using the partitions feature are strongly recommended to scope the request to a partition.

## Request body

- UpdateDocumentRawParams
  - `data` union, required — Document data in a text or JSON format.
    - string
    - object

## Response `200`

Successful Response

- DocumentRawUpdate
  - `status` string, required

## Other responses

- `401` — Unauthorized
- `402` — Payment Required
- `404` — Not Found
- `422` — Validation Error
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.dev/ragie/apis/ragie-api.md) · [All operations](https://skmtc.dev/ragie/apis/ragie-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ragie/ragie-api/revisions/ffdf960539ca/schema)
