Skip to content

docs(databases): state the Data API request body limit - #188

Open
shawnwu-kong wants to merge 2 commits into
mainfrom
claude/vol-1423-data-api-body-limit
Open

shawnwu-kong wants to merge 2 commits into
mainfrom
claude/vol-1423-data-api-body-limit

Conversation

@shawnwu-kong

@shawnwu-kong shawnwu-kong commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Companion to Kong/volcano-hosting#3435 for VOL-1423, which caps Data API request bodies at 4 MiB. A larger body is refused with 413 and {"error": "request body too large"}.

This adds one paragraph to the Database REST API page, under the endpoint description, stating the limit and pointing large files at Storage. Insert takes a single row, so the limit only affects a row holding a very large value.

It also caps call-api, the provider API proxy, at 4 MiB per request. The JS, Python and Ruby SDK authentication pages now state that limit next to callOAuthAPI / call_oauth_api.

Merge when the hosting change reaches production, not when it merges.

Validation: pnpm lint:docs content and pnpm check:links pass.

Data API request bodies are capped at 4 MiB; a larger one is refused
with 413. Point large files at Storage instead.

Refs VOL-1423
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

AI review: no P0-P2 findings

Reviewed 2a802ac. Run log

Docs-only change. The Database REST API page now says Data API request bodies are capped at 4 MiB, that a larger body gets 413 with {"error": "request body too large"}, and that large files belong in Storage. The JS, Python and Ruby SDK authentication pages now say the provider API proxy (callOAuthAPI / call_oauth_api) refuses requests over 4 MiB with a 413. Risk is low. The only issues are the two P3 findings from the earlier round, and both still apply at this head.

⚪ P3

  • content/platform/databases/rest-api.md:30 Storage link uses a site-absolute path inside the platform section (also reported as: Storage link does not follow the within-section linking convention)
  • content/platform/databases/rest-api.md:28 Body-size limit sits outside the page's Limits and Error Handling sections (also reported as: Request-body limit is missing from the existing Limits section)

Not checked: The AI review read the diff, the code, and the PR's text; it ran no tests or builds and read nothing outside this repository.

  • Whether the volcano-hosting change for VOL-1423 caps Data API request bodies at exactly 4 MiB and answers 413 with exactly {"error": "request body too large"}.
  • Whether that same change caps call-api (the provider API proxy) requests at 4 MiB, counting the whole request including body, and answers with 413.
  • Whether the hosting change has reached production before this PR merges, as spec/writing.md's release-timing rule requires.
  • Confirm Kong/volcano-hosting#3435 implements the documented 4 MiB limits and 413 responses, including the Database REST API error JSON.
  • Confirm the companion hosting change reaches production before these pages merge, as spec/writing.md requires.

Human review: not needed


A request body can be up to 4 MiB. A larger one is refused with `413` and
`{"error": "request body too large"}`. Keep large files in
[Storage](/platform/storage/overview) and store their path in the row instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ P3: Storage link uses a site-absolute path within the platform section

spec/writing.md says to link within a section by relative path with .md (its example is ../guides/deployment-source.md) and to use site-absolute paths only for links to another section. [Storage](/platform/storage/overview) is now the only /platform/... link anywhere under content/platform. Every other cross-directory link there, including interfaces/dashboard.md's link to the same page, uses the relative form. The link still resolves, so this is a convention issue only. Change it to [Storage](../storage/overview.md).

Found by claude-opus-5-5

/databases/{databaseName}/branches/{branchName}/query/{operation}`. Everything on
this page applies unchanged. See [Branching](branching.md).

A request body can be up to 4 MiB. A larger one is refused with `413` and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ P3: Body-size limit is outside the page's Limits section

The page already has a ## Limits section (around line 813) that lists per-request constraints such as the 60-second query time and connection capacity, plus an ## Error Handling section that lists error bodies. The new 4 MiB limit and its 413 response sit in the Overview instead, so a reader scanning Limits or Error Handling won't find them. Consider adding a Request body bullet under Limits next to Query time, and optionally a 413 entry under Error Handling.

Found by claude-opus-5-5

Volcano refuses a call-api request over 4 MiB with 413. State it next
to each SDK's provider API call.

Refs VOL-1423

A request body can be up to 4 MiB. A larger one is refused with `413` and
`{"error": "request body too large"}`. Keep large files in
[Storage](/platform/storage/overview) and store their path in the row instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ P3: Storage link does not follow the within-section linking convention

spec/writing.md requires relative .md links within a section. Use [Storage](../storage/overview.md) to follow the platform docs convention and preserve navigation in the GitHub-rendered source.

Found by gpt-6.1-sol

/databases/{databaseName}/branches/{branchName}/query/{operation}`. Everything on
this page applies unchanged. See [Branching](branching.md).

A request body can be up to 4 MiB. A larger one is refused with `413` and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ P3: Request-body limit is missing from the existing Limits section

The new limit appears only in Overview, so readers consulting ## Limits alongside the existing connection and query-time constraints will miss it. Consider adding a request-body bullet there.

Found by gpt-6.1-sol

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant