---
title: "Set Partition Limits"
method: PUT
path: "/partitions/{partition_id}/limits"
tags: ["partitions"]
---

# Set Partition Limits

`PUT /partitions/{partition_id}/limits`

Sets limits on a partition. Limits can be set on the total number of pages a partition can host and process. When the limit is reached, the partition will be disabled. A limit may be removed by setting it to `null`.

## Path parameters

- `partition_id` string, required

## Request body

- PartitionLimitParams
  - `pages_hosted_limit_monthly` integer, nullable — Monthly limit of hosted pages added in the current month in the partition.
  - `pages_processed_limit_monthly` integer, nullable — Monthly 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.
  - `pages_processed_limit_max` integer, nullable — Maximum limit, in pages, for processed 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.

## 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)
