Skip to content

Add Smart Tables API to OpenAPI spec with RBAC requirements#321

Closed
bb220 wants to merge 1 commit into
masterfrom
claude/eloquent-mendel-P7W0r
Closed

Add Smart Tables API to OpenAPI spec with RBAC requirements#321
bb220 wants to merge 1 commit into
masterfrom
claude/eloquent-mendel-P7W0r

Conversation

@bb220
Copy link
Copy Markdown
Collaborator

@bb220 bb220 commented May 27, 2026

Summary

Documents the Smart Tables public API table-level endpoints in the OpenAPI spec, including the RBAC permission requirements introduced for mutation routes.

New paths:

  • GET /api/public/v2/tables — list tables with cursor-based pagination and filtering by folder, name, or prompt reference
  • POST /api/public/v2/tables — create a table (requires REPORT_CREATE workspace permission)
  • GET /api/public/v2/tables/{table_id} — retrieve table details including per-sheet row counts
  • PATCH /api/public/v2/tables/{table_id} — update title or folder (requires REPORT_EDIT workspace permission)

New schemas added to components/schemas:

  • SmartTable — base table resource (id, workspace_id, folder_id, title, sheet_count)
  • SmartTableDetail — extends SmartTable with sheet_row_counts map
  • CreateTableRequest — optional title and folder_id
  • UpdateTableRequest — optional title and folder_id
  • ListTablesResponse — paginated list envelope with cursor pagination

Generated by Claude Code

Documents the Smart Tables public API table-level endpoints:
- GET /api/public/v2/tables — list tables with cursor pagination
- POST /api/public/v2/tables — create table (requires REPORT_CREATE)
- GET /api/public/v2/tables/{table_id} — get table details
- PATCH /api/public/v2/tables/{table_id} — update table (requires REPORT_EDIT)

Adds SmartTable, SmartTableDetail, CreateTableRequest, UpdateTableRequest,
and ListTablesResponse schemas to components/schemas.

https://claude.ai/code/session_01PrEiq5U7sGYo4k1jgEHADX
@bb220 bb220 added the automation label May 27, 2026 — with Claude
@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 27, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
promptlayer 🟢 Ready View Preview May 27, 2026, 9:27 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7535c20313

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread openapi.json
}
}
},
"/api/public/v2/tables": {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add reference pages for Smart Tables endpoints

When these paths are added only to openapi.json, they are not exposed in the public REST API docs because this repo’s Reference nav points to MDX pages listed in docs.json; I checked docs.json and reference/*.mdx, and there are no pages with openapi: "GET /api/public/v2/tables" (or the other new table operations). Add the minimal OpenAPI-backed Reference pages and nav entries so users can reach stable URLs for the new endpoints.

Useful? React with 👍 / 👎.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants