---
title: "Update Partition"
method: PATCH
path: "/partitions/{partition_id}"
tags: ["partitions"]
---

# Update Partition

`PATCH /partitions/{partition_id}`

Updates a partition. This includes the partition's description and metadata schema.

## Path parameters

- `partition_id` string, required

## Request body

- UpdatePartitionParams
  - `context_aware` boolean, nullable — Enable context-aware descriptions for the partition.
  - `description` string, nullable — Description of the partition.
  - `metadata_schema` object, nullable — Metadata schema for the partition. This is an optional subset of the metadata of documents in the partition, defined as JSON Schema, that can be used in filter generatation. Providing detailed descriptions of the fields in the schema can be helpful for LLMs generating filters dynamically.

## Response `200`

Successful Response

- PartitionDetail
  - `name` string, required
  - `is_default` boolean, required
  - `limit_exceeded_at` string, date-time, nullable — Timestamp when the partition exceeded its limits, if applicable.
  - `description` string, nullable, required
  - `context_aware` boolean, required
  - `metadata_schema` object, nullable, required
  - `limits` PartitionLimits, required
    - `pages_processed_limit_monthly` integer, nullable — Monthly limit, in pages, for processed documents in the partition.
    - `pages_hosted_limit_monthly` integer, nullable — Monthly limit of hosted pages added in the current month in the partition.
    - `pages_processed_limit_max` integer, nullable — Maximum limit, in pages, for processed documents in the partition.
    - `pages_hosted_limit_max` integer, nullable — Maximum limit, in pages, for hosted documents in the partition.
    - `video_processed_limit_monthly` integer, nullable — Monthly limit, in minutes, for video processing in the partition.
    - `video_processed_limit_max` integer, nullable — Maximum limit, in minutes, for video processing in the partition.
    - `audio_processed_limit_monthly` integer, nullable — Monthly limit, in minutes, for audio processing in the partition.
    - `audio_processed_limit_max` integer, nullable — Maximum limit, in minutes, for audio processing in the partition.
    - `media_streamed_limit_monthly` integer, nullable — Monthly limit, in MBs, for media streamed from the partition.
    - `media_streamed_limit_max` integer, nullable — Maximum limit, in MBs, for media streamed from the partition.
    - `media_hosted_limit_monthly` integer, nullable — Monthly limit, in MBs, for media hosted in the partition.
    - `media_hosted_limit_max` integer, nullable — Maximum limit, in MBs, for media hosted in the partition.
  - `stats` PartitionStats, required
    - `pages_processed_monthly` number, required — Number of pages processed in the current month in this partition.
    - `pages_hosted_monthly` number, required — Number of hosted pages added in the current month in this partition.
    - `pages_processed_total` number, required — Total number of pages processed in this partition.
    - `pages_hosted_total` number, required — Total number of hosted pages in this partition.
    - `document_count` integer, required — Total number of documents, inclusive of all files types, in this partition.
    - `video_processed_monthly` number, required — Total number of seconds of video processed in the current month in this partition.
    - `video_processed_total` number, required — Total number of seconds of video processed in this partition.
    - `audio_processed_monthly` number, required — Total number of seconds of audio processed in the current month in this partition.
    - `audio_processed_total` number, required — Total number of seconds of audio processed in this partition.
    - `media_streamed_monthly` number, required — Total number of MBs streamed in the current month in this partition.
    - `media_streamed_total` number, required — Total number of MBs streamed in this partition.
    - `media_hosted_monthly` number, required — Total number of MBs hosted in the current month in this partition.
    - `media_hosted_total` number, required — Total number of MBs hosted in this partition.

## Other responses

- `401` — Unauthorized
- `402` — Payment Required
- `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)
