mirror of
https://github.com/simstudioai/sim.git
synced 2026-11-28 01:49:05 +08:00
* fix(workflow-code): print an inferred-text JSON ref as a template so upstream code edits cannot flip its storage
A stored quoted token in a JSON field printed as the bare reference whenever refValueKind typed it
a string, including when that type was only inferred from a Function's code or a child workflow's
Response data. The printed source then left the field's storage to code in another block: an edit
there that made the type unreadable compiled every unedited reader bare, so a string value broke
the JSON at run time. The printer now prints a quoted token bare only when a declaration types it a
string (refDeclaresString), and as t`${ref}` otherwise, which stores quoted whatever the code returns.
The local check scoped W_JSON_REF_UNTYPED to blocks the lock does not bind, while the server reports
it for any field that compiles differently than stored; it now reports it on any block the edit
changed, including one an edit elsewhere makes compile differently.
* fix(executor): a bare string reference in a JSON field splices as a JSON string
A reference outside any string literal in JSON text (a Response body, table row data, an api
body) spliced a string value raw, so `{"error": <check.message>}` produced invalid JSON for any
message that was not itself JSON. Such a string now lands JSON-encoded; a string that already
reads as one JSON value (an agent's JSON answer, a numeric env var) still splices as written,
and a reference inside a string literal keeps its existing escaping.
The api block's request retry params now say what they retry (timeouts, connection resets, 429
and 5xx, for GET/HEAD/PUT/DELETE unless non-idempotent retries are on), what fails at once (an
unresolvable or refusing host, other 4xx), and that the block retry setting is separate and
reruns the whole block after any failure. Their titles read "Request retries", "Request retry
delay (ms)" and "Max request retry delay (ms)".
* improvement(cli): self-sufficient workflow export, atomic subflow moves, documented table columns
- `sim workflows export` keeps workspace bindings (table, knowledge base, child workflow ids) by default, so a table block prints its tableId; `--no-include-workspace-bindings` clears them for a copy to share. The stderr note pointing at `workflows outline` is gone.
- Moving a block into or out of a loop or parallel removes the stored edges the move leaves crossing the boundary and names them in `warnings`, instead of recording them as skipped items that made `atomic` refuse the batch. Edges the batch itself asks for across a boundary are still refused. Operations help states this.
- `tables create --schema` and `tables columns create --column` list every column field (required, unique, options, multiple, currencyCode, id, position) generated from the shape the server validates.
* improvement(cli): make rerun-from-block a first-class run loop
- A failed run (workflows run, runs get, runs wait) whose failure names a block now carries
`next`: `sim workflows run <workflowId> --from-block <blockId> --source-run <runId>`, so an
agent fixes the block, applies, and reruns only the failing part on that run's upstream outputs.
Parallel-branch ids and ids outside the issued format get no command.
- The raw hidden `--run` JSON flag is gone; the run selection is built only from --manual,
--trigger, --mock-payload, --from-block, --source-run and --stop-after.
- `workflows run --help` and the --from-block/--source-run descriptions say what the rerun reuses;
both source primers name the rerun flags in Run and debug, within the 4096-byte budget.
- paused-run.ts becomes run-next.ts now that it names the next command for failed runs too.
* docs(workflow-code): describe the bare-reference splice rule the executor now applies
* improvement(workflows): reuse the shared block label, drop the dead flag-hidden option, and align the splice docs
* fix(workflows): address review on rerun hints, removed-edge warnings, retry delays and docs
- A failed run's error carries rerunFromBlockId: the failed block, or the outermost loop or
parallel holding it, since a run cannot start inside one. Execute reads it from the graph the
run executed, Get workflow run from the saved draft. The CLI prints next from it instead of
the failed block id, so a failure inside a loop no longer prints a rerun the server refuses.
- Edge validation names why it dropped an edge (missing block, annotation-only, trigger target,
scope); the removed-edge warning adds loop and parallel wiring advice only for a scope crossing.
- backoffWithJitter never waits longer than maxMs: jitter at the cap only shortens the wait, so
an api block's max request retry delay is a real maximum.
- source check help: W_JSON_REF_UNTYPED scope sentence rewritten.
- cross-kind integration expects a child-result text ref printed as t`${...}`.
- Docs baseline hashes for the operations apply edge help fence.
* test(utils): drop the retry test's redundant mock-restore hook
* fix(api): keep rerunFromBlockId out of the resume response's error schema
11624 lines
405 KiB
JSON
11624 lines
405 KiB
JSON
{
|
||
"openapi": "3.1.0",
|
||
"info": {
|
||
"title": "Sim Tables API v2",
|
||
"description": "Version 2 of the Sim REST API for tables, typed columns, rows, saved views, workflow groups, folders, imports, and exports. Row data is keyed by column name.",
|
||
"version": "2.0.0",
|
||
"contact": {
|
||
"name": "Sim Support",
|
||
"email": "help@sim.ai",
|
||
"url": "https://www.sim.ai"
|
||
},
|
||
"license": {
|
||
"name": "Apache 2.0",
|
||
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
||
}
|
||
},
|
||
"servers": [
|
||
{
|
||
"url": "https://www.sim.ai",
|
||
"description": "Production"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"name": "Tables",
|
||
"description": "Manage tables, columns, rows, views, runs, folders, imports, and exports."
|
||
}
|
||
],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": []
|
||
}
|
||
],
|
||
"paths": {
|
||
"/api/v2/tables": {
|
||
"get": {
|
||
"operationId": "listTables",
|
||
"summary": "List tables",
|
||
"description": "List active tables with folder filtering, search, sorting, and cursor pagination. Use `scope=archived` to find tables available for restoration. Workspace folder trees exceeding 10,000 folders return `413`.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.list",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace whose tables should be listed.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace whose tables should be listed."
|
||
}
|
||
},
|
||
{
|
||
"name": "scope",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Which lifecycle set to list: `active` (default) for live tables, `archived` for tables a delete archived and a table restore can bring back. `folderPath` resolves against active folders only, so pairing it with `scope=archived` returns an empty page when the containing folder was archived too.",
|
||
"schema": {
|
||
"default": "active",
|
||
"description": "Which lifecycle set to list: `active` (default) for live tables, `archived` for tables a delete archived and a table restore can bring back. `folderPath` resolves against active folders only, so pairing it with `scope=archived` returns an empty page when the containing folder was archived too.",
|
||
"type": "string",
|
||
"enum": ["active", "archived"]
|
||
}
|
||
},
|
||
{
|
||
"name": "folderPath",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Restrict results to tables in this folder. Unknown folder paths contribute no matches.",
|
||
"schema": {
|
||
"description": "Restrict results to tables in this folder. Unknown folder paths contribute no matches.",
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
{
|
||
"name": "search",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Case-insensitive substring match against the resource name.",
|
||
"schema": {
|
||
"description": "Case-insensitive substring match against the resource name.",
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 200
|
||
}
|
||
},
|
||
{
|
||
"name": "sortBy",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`.",
|
||
"schema": {
|
||
"default": "createdAt",
|
||
"description": "Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`.",
|
||
"type": "string",
|
||
"enum": ["name", "createdAt", "updatedAt"]
|
||
}
|
||
},
|
||
{
|
||
"name": "sortOrder",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Sort direction.",
|
||
"schema": {
|
||
"default": "asc",
|
||
"description": "Sort direction.",
|
||
"type": "string",
|
||
"enum": ["asc", "desc"]
|
||
}
|
||
},
|
||
{
|
||
"name": "limit",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Maximum tables to return per page. Values outside 1–1000 are truncated and clamped into that range rather than rejected. Defaults to 100.",
|
||
"schema": {
|
||
"description": "Maximum tables to return per page. Values outside 1–1000 are truncated and clamped into that range rather than rejected. Defaults to 100.",
|
||
"type": "integer",
|
||
"default": 100
|
||
}
|
||
},
|
||
{
|
||
"name": "cursor",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor.",
|
||
"schema": {
|
||
"description": "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "A page of tables in the workspace.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableListResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"post": {
|
||
"operationId": "createTable",
|
||
"summary": "Create table",
|
||
"description": "Create a table with a typed column schema and optional folder placement.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace, table metadata, folder placement, and typed columns.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"name": "Customers",
|
||
"description": "Customer accounts and lifecycle state.",
|
||
"schema": {
|
||
"columns": [
|
||
{
|
||
"name": "email",
|
||
"type": "string",
|
||
"unique": true
|
||
},
|
||
{
|
||
"name": "status",
|
||
"type": "string"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The created table.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}": {
|
||
"get": {
|
||
"operationId": "getTable",
|
||
"summary": "Get table",
|
||
"description": "Get a table with its metadata, column schema, locks, and current job. Workspace folder trees exceeding 10,000 folders return `413`.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The requested table.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTable",
|
||
"summary": "Delete table",
|
||
"description": "Archive a table while retaining its rows. Use List tables with `scope=archived` to find it and Restore table to recover it.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "Table deletion acknowledgement.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DeleteTableResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "updateTable",
|
||
"summary": "Update table",
|
||
"description": "Rename a table, edit its description, or move it to a folder. Fields are saved independently: a failed request may leave partial changes. `error.details.applied` lists saved fields; retry only the remaining fields. If absent, nothing changed. Lock flags are read-only. Workspace folder trees exceeding 10,000 folders return `413`.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.update",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and one or more table metadata or placement changes.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpdateTableRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"name": "EnterpriseCustomers",
|
||
"folderPath": "/Sales"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The updated table.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2UpdateTableResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/columns": {
|
||
"post": {
|
||
"operationId": "addTableColumn",
|
||
"summary": "Add column",
|
||
"description": "Add a typed column and return the complete resulting table schema.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.columns.add",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and the typed column to add.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/AddTableColumnRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"column": {
|
||
"name": "plan",
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The updated table columns.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableColumnsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "updateTableColumn",
|
||
"summary": "Update column",
|
||
"description": "Update a column by name and return the complete schema. Renames update rows, views, and workflow-group references keyed by column ID. Workflow Table blocks keep their authored `filter`, `order`, and `data` JSON unchanged. Bound blocks still referencing the old name appear in `unmigrated`; edit them with Apply Workflow Operations to prevent failures on their next run.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.columns.update",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, current column name, and fields to update.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpdateTableColumnRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"columnName": "plan",
|
||
"updates": {
|
||
"name": "subscriptionPlan"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The updated table columns, plus any unmigrated workflow Table blocks.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2UpdateTableColumnResponse"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Response example 1",
|
||
"value": {
|
||
"data": {
|
||
"columns": [
|
||
{
|
||
"id": "col_name",
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": true,
|
||
"unique": false
|
||
},
|
||
{
|
||
"id": "col_plan",
|
||
"name": "subscriptionPlan",
|
||
"type": "string",
|
||
"required": false,
|
||
"unique": false
|
||
}
|
||
],
|
||
"unmigrated": [
|
||
{
|
||
"workflowId": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
|
||
"workflowName": "Weekly digest",
|
||
"blockId": "blk_9c1d3f5a7e2b4068a0c2e4f6b8d0f193",
|
||
"blockName": "Query plans",
|
||
"fields": ["filter"]
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTableColumn",
|
||
"summary": "Delete column",
|
||
"description": "Delete a column by name while preserving at least one table column.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.columns.delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and column name to delete.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/DeleteTableColumnRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"columnName": "legacyStatus"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The surviving table columns.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableColumnsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/rows": {
|
||
"get": {
|
||
"operationId": "listTableRows",
|
||
"summary": "List rows",
|
||
"description": "List rows in default order with cursor pagination. Pages default to a 5 MiB limit and may contain fewer rows than requested; continue until `nextCursor` is null. Use Query rows for filtering and sorting. `includeRunState=true` adds per-group run outcomes and reduces the row limit.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.rows.list",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
},
|
||
{
|
||
"name": "limit",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Maximum rows to return per page. Must be a whole number from 1 to 1000. Defaults to 100.",
|
||
"schema": {
|
||
"default": 100,
|
||
"description": "Maximum rows to return per page. Must be a whole number from 1 to 1000. Defaults to 100.",
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 1000
|
||
}
|
||
},
|
||
{
|
||
"name": "cursor",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Opaque cursor from the previous page. Send it back with the same sort, filters and table reference (its id or its name, as the first page used); only `limit` may change. Change anything else and pagination must restart without a cursor.",
|
||
"schema": {
|
||
"description": "Opaque cursor from the previous page. Send it back with the same sort, filters and table reference (its id or its name, as the first page used); only `limit` may change. Change anything else and pagination must restart without a cursor.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "includeRunState",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Include per-workflow-group run outcomes on every row. Off by default. Caps `limit` at 200. Run state above 2 MiB returns `413`; request fewer rows or omit run state.",
|
||
"schema": {
|
||
"description": "Include per-workflow-group run outcomes on every row. Off by default. Caps `limit` at 200. Run state above 2 MiB returns `413`; request fewer rows or omit run state.",
|
||
"type": "boolean"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "A page of table rows.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableRowListResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"post": {
|
||
"operationId": "createTableRows",
|
||
"summary": "Create rows",
|
||
"description": "Insert one row with a data object or insert a bounded batch with a rows array. Cell keys are column names.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "A single row or bounded row batch keyed by column name.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"data": {
|
||
"email": "jane@example.com",
|
||
"status": "active"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The inserted row or rows.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "updateTableRows",
|
||
"summary": "Update rows by filter",
|
||
"description": "Apply the same partial data patch to every row matching a non-empty predicate.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.update_many",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, typed predicate, and row-data patch.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpdateTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"filter": {
|
||
"all": [
|
||
{
|
||
"field": "status",
|
||
"op": "eq",
|
||
"value": "trial"
|
||
}
|
||
]
|
||
},
|
||
"data": {
|
||
"status": "active"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The bulk update result.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2UpdateTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTableRows",
|
||
"summary": "Delete rows",
|
||
"description": "Delete rows by a non-empty predicate or an explicit bounded list of row identifiers.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.delete_many",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and exactly one of a predicate or row identifier list.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/DeleteTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"rowIds": ["row_1f3e5d7c9b8a4c2d806e4a6b8d0f2e93"]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The bulk deletion result.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DeleteTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/rows/{rowId}": {
|
||
"get": {
|
||
"operationId": "getTableRow",
|
||
"summary": "Get row",
|
||
"description": "Get one row by identifier. Set `includeRunState=true` to attach the row's per-workflow-group run outcomes.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.rows.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "rowId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table row identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table row identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
},
|
||
{
|
||
"name": "includeRunState",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Include per-workflow-group run outcomes on the row. Off by default. Run state above 2 MiB returns `413`; omit this option to read the row without run state.",
|
||
"schema": {
|
||
"description": "Include per-workflow-group run outcomes on the row. Off by default. Run state above 2 MiB returns `413`; omit this option to read the row without run state.",
|
||
"type": "boolean"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The requested table row.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableRowResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "updateTableRow",
|
||
"summary": "Update row",
|
||
"description": "Merge a partial data patch into one row by identifier.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.update",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "rowId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table row identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table row identifier."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and row-data patch keyed by column name.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpdateTableRowRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"data": {
|
||
"status": "active"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The updated table row.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableRowResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTableRow",
|
||
"summary": "Delete row",
|
||
"description": "Delete one row by identifier.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "rowId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table row identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table row identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The row deletion result.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DeleteTableRowResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/rows/upsert": {
|
||
"post": {
|
||
"operationId": "upsertTableRow",
|
||
"summary": "Upsert row",
|
||
"description": "Insert a row or replace the row matching a selected unique column. On replacement, omitted columns are cleared; send the complete row. Use Update row for a partial patch.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.upsert",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, row data, and optional unique-column conflict target.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpsertTableRowRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"data": {
|
||
"email": "jane@example.com",
|
||
"status": "active"
|
||
},
|
||
"conflictTarget": "email"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The upserted row and operation performed.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2UpsertTableRowResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/query": {
|
||
"post": {
|
||
"operationId": "queryTableRows",
|
||
"summary": "Query rows",
|
||
"description": "Query rows with typed predicates, sorting, and cursor pagination. Omit the predicate to match all rows. Pages default to a 5 MiB limit; continue until `nextCursor` is null. Oversized predicates return `413`. `includeRunState` adds per-group outcomes and reduces the row limit. Counts are read separately and can differ from paged results if rows change.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.rows.query",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, optional predicate and sort, and cursor pagination controls. The predicate may be one condition or an `all`/`any` group; omitting it matches every row.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/QueryTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"limit": 100
|
||
}
|
||
},
|
||
"example2": {
|
||
"summary": "Request example 2",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"predicate": {
|
||
"field": "status",
|
||
"op": "eq",
|
||
"value": "active"
|
||
},
|
||
"sort": [
|
||
{
|
||
"field": "createdAt",
|
||
"direction": "desc"
|
||
}
|
||
],
|
||
"limit": 100
|
||
}
|
||
},
|
||
"example3": {
|
||
"summary": "Request example 3",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"predicate": {
|
||
"all": [
|
||
{
|
||
"field": "status",
|
||
"op": "eq",
|
||
"value": "active"
|
||
},
|
||
{
|
||
"field": "score",
|
||
"op": "gte",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "A page of matching table rows.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2QueryTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/query/count": {
|
||
"post": {
|
||
"operationId": "countTableRows",
|
||
"summary": "Count rows",
|
||
"description": "Count rows matching a typed predicate, or omit the predicate to count all rows. The count is read separately from row pages and can change between requests. Oversized predicates return `413`.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.rows.query",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and the optional condition or `all`/`any` predicate group whose matches are counted.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CountTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"predicate": {
|
||
"field": "status",
|
||
"op": "eq",
|
||
"value": "active"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The number of matching table rows.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CountTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/views": {
|
||
"get": {
|
||
"operationId": "listTableViews",
|
||
"summary": "List views",
|
||
"description": "List saved table views, omitting references to removed columns. Returns one page; `nextCursor` is always null.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.views.list",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The saved table views.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableViewListResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"post": {
|
||
"operationId": "createTableView",
|
||
"summary": "Create view",
|
||
"description": "Save a filter, sort, and column layout as a named presentation of a table.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.views.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, name, and saved filter, sort, and layout configuration.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableViewRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"name": "Active customers",
|
||
"config": {
|
||
"filter": {
|
||
"all": [
|
||
{
|
||
"field": "status",
|
||
"op": "eq",
|
||
"value": "active"
|
||
}
|
||
]
|
||
},
|
||
"sort": [
|
||
{
|
||
"field": "createdAt",
|
||
"direction": "desc"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The created table view.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableViewResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/views/{viewId}": {
|
||
"get": {
|
||
"operationId": "getTableView",
|
||
"summary": "Get view",
|
||
"description": "Get one saved table view by identifier.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.views.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "viewId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique saved-view identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique saved-view identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The requested table view.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableViewResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "updateTableView",
|
||
"summary": "Update view",
|
||
"description": "Rename a view, replace or shallow-merge its configuration, or promote it to the table default.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.views.update",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "viewId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique saved-view identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique saved-view identifier."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and one or more saved-view changes.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpdateTableViewRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"name": "Priority customers",
|
||
"isDefault": true
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The updated table view.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableViewResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTableView",
|
||
"summary": "Delete view",
|
||
"description": "Delete a saved presentation without changing any table rows.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.views.delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "viewId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique saved-view identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique saved-view identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "Table view deletion acknowledgement.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DeleteTableViewResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/groups": {
|
||
"get": {
|
||
"operationId": "listTableWorkflowGroups",
|
||
"summary": "List workflow groups",
|
||
"description": "List the workflow and enrichment groups that can be dispatched for a table. Returns one page; `nextCursor` is always null.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.groups.list",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The table workflow groups.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableWorkflowGroupListResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"post": {
|
||
"operationId": "addTableWorkflowGroup",
|
||
"summary": "Add workflow group",
|
||
"description": "Bind a workflow or enrichment to the table and create the columns populated by its outputs. An output whose column the table already has attaches that column to the group instead of creating it, so `outputColumns` may be omitted when every output lands in an existing column.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.groups.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, producer definition, and output columns.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/AddTableWorkflowGroupRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"group": {
|
||
"workflowId": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
|
||
"name": "Enrich company",
|
||
"outputs": [
|
||
{
|
||
"blockId": "block_lookup",
|
||
"path": "output.revenue",
|
||
"columnName": "revenue"
|
||
}
|
||
]
|
||
},
|
||
"outputColumns": [
|
||
{
|
||
"name": "revenue",
|
||
"type": "number"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The created workflow group and resulting columns.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2AddTableWorkflowGroupResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "updateTableWorkflowGroup",
|
||
"summary": "Update workflow group",
|
||
"description": "Restructure a workflow group, its producer, outputs, or execution behavior. Repointing the group at a different workflow concurrently invalidates the resolved output types and returns `409` — retry the update.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.groups.update",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, workflow group identifier, and producer changes.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/UpdateTableWorkflowGroupRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"groupId": "grp_5d8b2f0a6c1e4739a8b3d5f7e9c1a204",
|
||
"name": "Company profile enrichment"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The updated workflow group and resulting columns.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2UpdateTableWorkflowGroupResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTableWorkflowGroup",
|
||
"summary": "Delete workflow group",
|
||
"description": "Delete a workflow group and every table column populated by that group.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.groups.delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and workflow group identifier.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/DeleteTableWorkflowGroupRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"groupId": "grp_5d8b2f0a6c1e4739a8b3d5f7e9c1a204"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "Workflow-group deletion acknowledgement and surviving columns.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DeleteTableWorkflowGroupResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/dispatches": {
|
||
"post": {
|
||
"operationId": "createTableDispatch",
|
||
"summary": "Create run dispatch",
|
||
"description": "Start workflow or enrichment groups across all rows or selected rows. Poll Get run dispatch until `complete` or `canceled`. A null `dispatchId` means no dispatch is available to poll; check row outcomes with `includeRunState`. Use Cancel run dispatch to stop further scheduling.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.runs.start",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, producer groups, execution mode, and optional row scope.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableDispatchRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"groupIds": ["grp_5d8b2f0a6c1e4739a8b3d5f7e9c1a204"]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The accepted run dispatch.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableDispatchResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"get": {
|
||
"operationId": "listTableDispatches",
|
||
"summary": "List run dispatches",
|
||
"description": "List the run dispatches on one table, most recent first — settled dispatches (`complete`, `canceled`) alongside the ones still in flight, so a run that finished between two polls is still visible next to the `dispatchId` its create returned. Capped at the 100 most recent, so this list is unpaginated and `nextCursor` is always null.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.runs.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The table's most recent run dispatches.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableRunDispatchListResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/rows/{rowId}/enrichment/{groupId}": {
|
||
"post": {
|
||
"operationId": "runRowEnrichment",
|
||
"summary": "Run enrichment for one row",
|
||
"description": "Start one workflow or enrichment group for a table row. Poll Get run dispatch using the returned `dispatchId`. A null `dispatchId` means no dispatch is available to poll; check row outcomes with `includeRunState`.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.runs.start",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "rowId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table row identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table row identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "groupId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Workflow or enrichment group to run.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workflow or enrichment group to run."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope for the row enrichment.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/RunRowEnrichmentRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The accepted row enrichment dispatch.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2RunRowEnrichmentResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"get": {
|
||
"operationId": "getRowEnrichment",
|
||
"summary": "Get row group run",
|
||
"description": "Read one row’s workflow or enrichment-group outcome: run state, output cells keyed by column name, and providers in cascade order with status, hosted-key cost, duration, and the matching provider. `runState: null` means never run; `cascade: null` means no breakdown was recorded. Missing tables, rows, or groups return `404`. Run state above 2 MiB returns `413`.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.rows.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "rowId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table row identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table row identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "groupId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Workflow or enrichment group to run.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workflow or enrichment group to run."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the table.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The run state, output cells, and provider cascade for the group on the row.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2RowEnrichmentResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/rows/search": {
|
||
"post": {
|
||
"operationId": "searchTableRows",
|
||
"summary": "Search rows",
|
||
"description": "Search cell text for a case-insensitive substring within an optional filtered and sorted view. Returns cell coordinates, not row data; `ordinal` matches the view used by Query rows. Results are unpaginated and capped at 1000. If `truncated` is true, narrow the search or predicate.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.rows.search",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, substring query, and optional predicate and sort.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/SearchTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"q": "acme",
|
||
"predicate": {
|
||
"all": [
|
||
{
|
||
"field": "status",
|
||
"op": "eq",
|
||
"value": "active"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The matching table cells.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2SearchTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/imports": {
|
||
"post": {
|
||
"operationId": "createTableImport",
|
||
"summary": "Create table import",
|
||
"description": "Create a CSV import. Upload sources receive signed transfer instructions; workspace-file sources start processing directly.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.imports.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace, CSV source, target table, optional mapping, and timezone.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableImportRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"source": {
|
||
"type": "upload",
|
||
"name": "customers.csv",
|
||
"contentType": "text/csv",
|
||
"size": 2048
|
||
},
|
||
"target": {
|
||
"type": "new",
|
||
"name": "ImportedCustomers",
|
||
"folderPath": "/Imports"
|
||
},
|
||
"timezone": "America/Los_Angeles"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The created table import and optional transfer instructions.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableImportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/imports/{importId}": {
|
||
"get": {
|
||
"operationId": "getTableImport",
|
||
"summary": "Get table import",
|
||
"description": "Get an import's progress and status. During `uploading`, the signed upload token is required; omitting it returns `404`.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.imports.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "importId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-import identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-import identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
},
|
||
{
|
||
"name": "upload-token",
|
||
"in": "header",
|
||
"required": false,
|
||
"description": "Signed upload control token returned when an upload-backed import was created.",
|
||
"schema": {
|
||
"description": "Signed upload control token returned when an upload-backed import was created.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The requested table import.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableImportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "cancelTableImport",
|
||
"summary": "Cancel table import",
|
||
"description": "Cancel an upload or processing import. Committed row batches remain. Non-cancelable states, including `expired`, return `409`; unknown or purged imports return `404`.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.imports.cancel",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "importId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-import identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-import identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
},
|
||
{
|
||
"name": "upload-token",
|
||
"in": "header",
|
||
"required": false,
|
||
"description": "Signed upload control token returned when an upload-backed import was created.",
|
||
"schema": {
|
||
"description": "Signed upload control token returned when an upload-backed import was created.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The canceled table import.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CancelTableImportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/imports/{importId}/parts": {
|
||
"post": {
|
||
"operationId": "createTableImportPartUrls",
|
||
"summary": "Create table import part URLs",
|
||
"description": "Create signed URLs for multipart upload parts. Requires the `uploading` state; other states return `409`. Unknown or purged imports return `404`.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.imports.create_parts",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "importId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-import identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-import identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
},
|
||
{
|
||
"name": "upload-token",
|
||
"in": "header",
|
||
"required": true,
|
||
"description": "Signed upload control token returned when the upload session was created.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Signed upload control token returned when the upload session was created."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Multipart part numbers for which signed URLs should be created.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableImportPartUrlsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"partNumbers": [1, 2, 3]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The signed multipart upload URLs.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableImportPartUrlsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/imports/{importId}/complete": {
|
||
"post": {
|
||
"operationId": "completeTableImportUpload",
|
||
"summary": "Complete table import upload",
|
||
"description": "Verify or assemble uploaded CSV bytes and start processing under the same import ID. Requires an import awaiting upload completion; other states return `409`. Unknown or purged imports return `404`.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.imports.complete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "importId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-import identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-import identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
},
|
||
{
|
||
"name": "upload-token",
|
||
"in": "header",
|
||
"required": true,
|
||
"description": "Signed upload control token returned when the upload session was created.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Signed upload control token returned when the upload session was created."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The table import after upload completion.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CompleteTableImportUploadResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/exports": {
|
||
"post": {
|
||
"operationId": "createTableExport",
|
||
"summary": "Create table export",
|
||
"description": "Create a CSV or JSON export. Exports of small tables finish during the request; larger exports run asynchronously.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.exports.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and export format.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableExportRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"format": "csv"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The created table export.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableExportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/exports/{exportId}": {
|
||
"get": {
|
||
"operationId": "getTableExport",
|
||
"summary": "Get table export",
|
||
"description": "Get a table export's progress and status.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.exports.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "exportId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-export identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-export identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The requested table export.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableExportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "cancelTableExport",
|
||
"summary": "Cancel table export",
|
||
"description": "Cancel an export that is still in progress.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.exports.cancel",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "exportId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-export identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-export identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The canceled table export.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CancelTableExportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/exports/{exportId}/download": {
|
||
"get": {
|
||
"operationId": "downloadTableExport",
|
||
"summary": "Download table export",
|
||
"description": "Get a short-lived signed download URL for a completed export. Other states return `409`; an unavailable export file returns `404`.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.exports.download",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "exportId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table-export identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table-export identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "Signed table-export download information.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DownloadTableExportResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/cancel-runs": {
|
||
"post": {
|
||
"operationId": "cancelTableRuns",
|
||
"summary": "Cancel column runs",
|
||
"description": "Stop in-flight and pending workflow or enrichment cell runs across the table or one selected row.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.runs.cancel",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, row or all-table cancellation, and optional row predicate or exclusions.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CancelTableRunsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"scope": "row",
|
||
"rowId": "row_1f3e5d7c9b8a4c2d806e4a6b8d0f2e93"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The number of canceled cell runs.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CancelTableRunsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/folders": {
|
||
"get": {
|
||
"operationId": "listTablesFolders",
|
||
"summary": "List folders",
|
||
"description": "List table folders, optionally limiting results to direct children of a parent path. Returns one page; `nextCursor` is always null.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.folders.list",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace whose folders should be listed.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace whose folders should be listed."
|
||
}
|
||
},
|
||
{
|
||
"name": "parentPath",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Restrict results to direct children of this parent path. Unknown folder paths contribute no matches.",
|
||
"schema": {
|
||
"description": "Restrict results to direct children of this parent path. Unknown folder paths contribute no matches.",
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
{
|
||
"name": "search",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Case-insensitive substring match against the folder name.",
|
||
"schema": {
|
||
"description": "Case-insensitive substring match against the folder name.",
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 200
|
||
}
|
||
},
|
||
{
|
||
"name": "sortBy",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`.",
|
||
"schema": {
|
||
"default": "name",
|
||
"description": "Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`.",
|
||
"type": "string",
|
||
"enum": ["name", "createdAt", "updatedAt"]
|
||
}
|
||
},
|
||
{
|
||
"name": "sortOrder",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Sort direction.",
|
||
"schema": {
|
||
"default": "asc",
|
||
"description": "Sort direction.",
|
||
"type": "string",
|
||
"enum": ["asc", "desc"]
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The table folders.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableFolderListResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"post": {
|
||
"operationId": "createTablesFolder",
|
||
"summary": "Create folder",
|
||
"description": "Create one table-folder leaf whose parent path already exists.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.folders.create",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and canonical folder path to create.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/CreateTableFolderRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"path": "/Sales/Enterprise"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"201": {
|
||
"description": "The created table folder.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CreateTableFolderResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"patch": {
|
||
"operationId": "relocateTablesFolder",
|
||
"summary": "Rename or move folder",
|
||
"description": "Rename or move a table folder and update all descendant paths.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.folders.update",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, current canonical path, and destination path.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/RelocateTableFolderRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"path": "/Sales/Enterprise",
|
||
"destinationPath": "/Revenue/Enterprise"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The relocated table folder.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2RelocateTableFolderResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "deleteTablesFolder",
|
||
"summary": "Delete folder",
|
||
"description": "Archive an empty folder, or set `recursive=true` to archive its tables and subfolders. Use Restore folder to recover the archived contents.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.folders.delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace containing the folder.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace containing the folder."
|
||
}
|
||
},
|
||
{
|
||
"name": "path",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Path of the folder to delete.",
|
||
"schema": {
|
||
"description": "Path of the folder to delete.",
|
||
"$ref": "#/components/schemas/NonRootFolderPathInput"
|
||
}
|
||
},
|
||
{
|
||
"name": "recursive",
|
||
"in": "query",
|
||
"required": false,
|
||
"description": "Delete the folder's contents and nested folders too. Required for a non-empty folder. Only the listed case-sensitive spellings are accepted.",
|
||
"schema": {
|
||
"description": "Delete the folder's contents and nested folders too. Required for a non-empty folder. Only the listed case-sensitive spellings are accepted.",
|
||
"enum": [
|
||
"true",
|
||
"1",
|
||
"yes",
|
||
"on",
|
||
"y",
|
||
"enabled",
|
||
"false",
|
||
"0",
|
||
"no",
|
||
"off",
|
||
"n",
|
||
"disabled"
|
||
],
|
||
"default": "false",
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "Table-folder deletion acknowledgement.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2DeleteTableFolderResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/folders/restore": {
|
||
"post": {
|
||
"operationId": "restoreTablesFolder",
|
||
"summary": "Restore folder",
|
||
"description": "Restore an archived table folder, its descendants, and tables using its former path. An archived parent moves it to the root; name conflicts may change the returned `path`. Non-archived paths return `404`. Save the path from Delete folder, because List folders does not include archived table folders.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.folders.restore",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and the canonical path the archived folder held.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/RestoreTableFolderRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"path": "/Sales/Enterprise"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The restored table folder and what it brought back.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2RestoreTableFolderResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/restore": {
|
||
"post": {
|
||
"operationId": "restoreTable",
|
||
"summary": "Restore table",
|
||
"description": "Restore a table and its archived rows, views, and workflow groups. Active tables return unchanged without a new audit event. Name conflicts may change the returned `name`. Find archived tables with List tables and `scope=archived`.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.restore",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique identifier of the archived table. A restore takes the id alone: archived tables need not have unique names.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique identifier of the archived table. A restore takes the id alone: archived tables need not have unique names."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope for the archived table.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/RestoreTableRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The restored table.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2RestoreTableResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"409": {
|
||
"$ref": "#/components/responses/Conflict"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/rows/bulk-update": {
|
||
"post": {
|
||
"operationId": "bulkUpdateTableRows",
|
||
"summary": "Bulk update rows",
|
||
"description": "Apply separate partial patches to up to 1,000 rows, preserving omitted columns. A row outside the table rejects the entire request with `400` and lists missing IDs. Use Update rows by filter to apply one patch to every matching row.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.rows.update_many",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope and one merge patch per row.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/BulkUpdateTableRowsRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"updates": [
|
||
{
|
||
"rowId": "row_1f3e5d7c9b8a4c2d806e4a6b8d0f2e93",
|
||
"data": {
|
||
"status": "active"
|
||
}
|
||
},
|
||
{
|
||
"rowId": "row_2b4d6f8a0c1e3759b8d0f2a4c6e80193",
|
||
"data": {
|
||
"status": "churned"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "The bulk update result.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2BulkUpdateTableRowsResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/{tableId}/dispatches/{dispatchId}": {
|
||
"get": {
|
||
"operationId": "getTableDispatch",
|
||
"summary": "Get run dispatch",
|
||
"description": "Get a dispatch's current state. Poll until `complete` or `canceled`; use row reads with `includeRunState` for per-cell outcomes.\n\nOAuth scope: `api:read`.",
|
||
"x-sim-operation": "tables.runs.read",
|
||
"x-oauth-scope": "api:read",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:read"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "dispatchId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table run-dispatch identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table run-dispatch identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The requested run dispatch.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2TableRunDispatchResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
},
|
||
"delete": {
|
||
"operationId": "cancelTableDispatch",
|
||
"summary": "Cancel run dispatch",
|
||
"description": "Stop a dispatch from scheduling more cells. Already queued or running cells continue; use Cancel column runs to stop them. Completed or canceled dispatches return unchanged.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.runs.cancel",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tableId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id)."
|
||
}
|
||
},
|
||
{
|
||
"name": "dispatchId",
|
||
"in": "path",
|
||
"required": true,
|
||
"description": "Unique table run-dispatch identifier.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Unique table run-dispatch identifier."
|
||
}
|
||
},
|
||
{
|
||
"name": "workspaceId",
|
||
"in": "query",
|
||
"required": true,
|
||
"description": "Workspace that owns the transfer resource.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the transfer resource."
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "The dispatch in its post-cancellation state.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2CancelTableDispatchResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/move": {
|
||
"post": {
|
||
"operationId": "moveTables",
|
||
"summary": "Move tables and folders",
|
||
"description": "Move up to 100 tables and folders to one destination. Items succeed or fail independently: covered tables are `skipped`, missing items are `notFound`, and lock or cycle failures include reasons in `failed`. An invalid destination rejects the request before any move.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.bulk_move",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, the tables and folder paths to move, and the destination folder path.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/BulkMoveTablesRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"tableIds": ["tbl_7c9e6679742540de944be07fc1f90ae7"],
|
||
"folderPaths": ["/Sales/Enterprise"],
|
||
"targetFolderPath": "/Revenue"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "Per-item outcome of the bulk move.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2MoveTablesResponse"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/api/v2/tables/bulk-delete": {
|
||
"post": {
|
||
"operationId": "bulkDeleteTables",
|
||
"summary": "Bulk delete tables and folders",
|
||
"description": "Archive up to 100 selected tables and folders, including folder contents. Items succeed or fail independently, with `skipped`, `notFound`, and `failed` outcomes. `deletedItems` includes all descendants. Use Restore table or Restore folder to recover archived items.\n\nOAuth scope: `api:write`.",
|
||
"x-sim-operation": "tables.bulk_delete",
|
||
"x-oauth-scope": "api:write",
|
||
"tags": ["Tables"],
|
||
"security": [
|
||
{
|
||
"apiKey": []
|
||
},
|
||
{
|
||
"oauthBearer": ["api:write"]
|
||
}
|
||
],
|
||
"requestBody": {
|
||
"required": true,
|
||
"description": "Workspace scope, and the tables and folder paths to delete.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/BulkDeleteTablesRequest"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Request example 1",
|
||
"value": {
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"tableIds": ["tbl_7c9e6679742540de944be07fc1f90ae7"],
|
||
"folderPaths": ["/Sales/Archive"]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "Per-item outcome of the bulk delete.",
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"$ref": "#/components/headers/X-RateLimit-Limit"
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"$ref": "#/components/headers/X-RateLimit-Remaining"
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"$ref": "#/components/headers/X-RateLimit-Reset"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2BulkDeleteTablesResponse"
|
||
},
|
||
"examples": {
|
||
"example1": {
|
||
"summary": "Response example 1",
|
||
"value": {
|
||
"data": {
|
||
"deleted": [
|
||
{
|
||
"kind": "table",
|
||
"id": "tbl_7c9e6679742540de944be07fc1f90ae7",
|
||
"name": "Leads"
|
||
},
|
||
{
|
||
"kind": "folder",
|
||
"id": "/Sales/Archive",
|
||
"name": "/Sales/Archive"
|
||
}
|
||
],
|
||
"skipped": [],
|
||
"notFound": [],
|
||
"failed": [],
|
||
"deletedItems": {
|
||
"tables": 1,
|
||
"folders": 1
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"400": {
|
||
"$ref": "#/components/responses/BadRequest"
|
||
},
|
||
"401": {
|
||
"$ref": "#/components/responses/Unauthorized"
|
||
},
|
||
"403": {
|
||
"$ref": "#/components/responses/Forbidden"
|
||
},
|
||
"404": {
|
||
"$ref": "#/components/responses/NotFound"
|
||
},
|
||
"413": {
|
||
"$ref": "#/components/responses/PayloadTooLarge"
|
||
},
|
||
"415": {
|
||
"$ref": "#/components/responses/UnsupportedMediaType"
|
||
},
|
||
"423": {
|
||
"$ref": "#/components/responses/Locked"
|
||
},
|
||
"429": {
|
||
"$ref": "#/components/responses/RateLimited"
|
||
},
|
||
"500": {
|
||
"$ref": "#/components/responses/InternalError"
|
||
},
|
||
"503": {
|
||
"$ref": "#/components/responses/ServiceUnavailable"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"securitySchemes": {
|
||
"apiKey": {
|
||
"type": "apiKey",
|
||
"in": "header",
|
||
"name": "X-API-Key",
|
||
"description": "Send a personal or workspace API key in `X-API-Key`. See [key types and access](https://docs.sim.ai/api-reference/authentication#key-types); operations that reject workspace keys say so in their description."
|
||
},
|
||
"oauthBearer": {
|
||
"type": "oauth2",
|
||
"description": "Send a Sim OAuth access token in `Authorization: Bearer`. See [OAuth authentication and scopes](https://docs.sim.ai/api-reference/authentication#oauth-access-tokens).",
|
||
"flows": {
|
||
"authorizationCode": {
|
||
"authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
|
||
"tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
|
||
"refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
|
||
"scopes": {
|
||
"api:read": "Read your workspaces, workflows, files, tables, and logs",
|
||
"api:write": "Read, create, change, run, and delete resources in your workspaces",
|
||
"offline_access": "Stay signed in without asking again"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"headers": {
|
||
"X-RateLimit-Limit": {
|
||
"description": "Maximum requests allowed in the current window.",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"title": "Rate limit",
|
||
"description": "Maximum requests allowed in the current window."
|
||
}
|
||
},
|
||
"X-RateLimit-Remaining": {
|
||
"description": "Requests remaining in the current window.",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"title": "Rate limit remaining",
|
||
"description": "Requests remaining in the current window."
|
||
}
|
||
},
|
||
"X-RateLimit-Reset": {
|
||
"description": "ISO 8601 timestamp when the current rate-limit window resets.",
|
||
"schema": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"title": "Rate limit reset",
|
||
"description": "ISO 8601 timestamp when the current rate-limit window resets."
|
||
}
|
||
},
|
||
"Retry-After": {
|
||
"description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"title": "Retry after",
|
||
"description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
|
||
}
|
||
},
|
||
"X-Run-Id": {
|
||
"description": "Identifier assigned to the workflow run.",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"title": "Run identifier",
|
||
"description": "Identifier assigned to the workflow run."
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"BadRequest": {
|
||
"description": "The request is invalid. This includes a query parameter sent with no value (`?limit=`, `?search=`), which is rejected rather than read as zero, empty, or the parameter default — omit the parameter instead.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "BAD_REQUEST",
|
||
"message": "Invalid request"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"Unauthorized": {
|
||
"description": "The API credential is missing or invalid.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "UNAUTHORIZED",
|
||
"message": "Authentication required"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"Forbidden": {
|
||
"description": "The caller lacks the rights this operation requires. When the cause is one a caller can act on, `error.details.code` names it. A resource in a workspace the caller cannot reach at all answers `404` instead, so absence and denial are indistinguishable.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "FORBIDDEN",
|
||
"message": "Insufficient workspace permissions",
|
||
"details": {
|
||
"code": "INSUFFICIENT_WORKSPACE_ROLE"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"NotFound": {
|
||
"description": "The requested resource was not found.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "NOT_FOUND",
|
||
"message": "Not found"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"Conflict": {
|
||
"description": "The request conflicts with current resource state.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "CONFLICT",
|
||
"message": "The request conflicts with current table state"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"PayloadTooLarge": {
|
||
"description": "The request, or a resource collection it must materialize, exceeds the allowed size: an oversized request body, a generated artifact past the download ceiling, or a workspace folder tree too large to load in full.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "PAYLOAD_TOO_LARGE",
|
||
"message": "Request body is too large"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"UnsupportedMediaType": {
|
||
"description": "The request uses an unsupported media type.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "UNSUPPORTED_MEDIA_TYPE",
|
||
"message": "Request body must be sent as application/json"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"Locked": {
|
||
"description": "The resource is temporarily locked or unavailable; retry the request.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "LOCKED",
|
||
"message": "A table lock prevents this operation.",
|
||
"details": {
|
||
"lock": "insert"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"RateLimited": {
|
||
"description": "The caller exceeded the request rate limit.",
|
||
"headers": {
|
||
"Retry-After": {
|
||
"$ref": "#/components/headers/Retry-After"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "RATE_LIMITED",
|
||
"message": "API rate limit exceeded",
|
||
"details": {
|
||
"retryAfter": "2026-01-01T00:00:30.000Z"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"InternalError": {
|
||
"description": "An unexpected server error occurred.",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "INTERNAL_ERROR",
|
||
"message": "Internal server error"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"ServiceUnavailable": {
|
||
"description": "A required service is temporarily unavailable. When present, `Retry-After` gives the minimum seconds to wait; add jitter before retrying. Check operation-specific guidance before repeating a change after an uncertain response.",
|
||
"headers": {
|
||
"Retry-After": {
|
||
"$ref": "#/components/headers/Retry-After"
|
||
}
|
||
},
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/V2Error"
|
||
},
|
||
"example": {
|
||
"error": {
|
||
"code": "SERVICE_UNAVAILABLE",
|
||
"message": "Service temporarily unavailable"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"schemas": {
|
||
"V2ActionableForbiddenDetails": {
|
||
"type": "object",
|
||
"properties": {
|
||
"code": {
|
||
"$ref": "#/components/schemas/V2ForbiddenDetailCode"
|
||
}
|
||
},
|
||
"required": ["code"],
|
||
"additionalProperties": {
|
||
"description": "Additional context for this refusal."
|
||
},
|
||
"title": "Actionable forbidden details",
|
||
"description": "Machine-readable cause and optional context for an actionable `403` response."
|
||
},
|
||
"V2ForbiddenDetailCode": {
|
||
"type": "string",
|
||
"enum": [
|
||
"INSUFFICIENT_WORKSPACE_ROLE",
|
||
"PERSONAL_API_KEYS_DISABLED",
|
||
"WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
|
||
"PRINCIPAL_KIND_NOT_PERMITTED",
|
||
"ORGANIZATION_MEMBERSHIP_REQUIRED",
|
||
"ORGANIZATION_ADMIN_REQUIRED",
|
||
"ENTERPRISE_PLAN_REQUIRED",
|
||
"SSO_DISABLED",
|
||
"SSO_DOMAIN_NOT_VERIFIED",
|
||
"SSO_PROVIDER_LIMIT_REACHED",
|
||
"ORGANIZATION_PLAN_REQUIRED",
|
||
"AUDIT_LOGS_DISABLED",
|
||
"ACCESS_REQUESTS_DISABLED",
|
||
"ACCESS_REQUEST_ORGANIZATION_REQUIRED",
|
||
"SKILL_EDITOR_ACCESS_REQUIRED",
|
||
"SECRET_ADMIN_ACCESS_REQUIRED",
|
||
"WORKSPACE_RESOURCE_LIMIT_REACHED",
|
||
"PUBLIC_SHARING_NOT_ALLOWED",
|
||
"CREDENTIAL_ADMIN_ACCESS_REQUIRED",
|
||
"MCP_SERVER_URL_NOT_ALLOWED",
|
||
"WORKSPACE_PLAN_CAPABILITY_REQUIRED",
|
||
"CHAT_AUTH_MODE_NOT_PERMITTED",
|
||
"CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
|
||
"PERMISSION_GROUP_CAPABILITY_BLOCKED",
|
||
"INTEGRATION_NOT_ALLOWED",
|
||
"INSUFFICIENT_SCOPE",
|
||
"READ_ONLY_API_KEY",
|
||
"SCIM_MANAGED_MEMBERSHIP",
|
||
"FEATURE_NOT_ENABLED"
|
||
],
|
||
"title": "Forbidden detail code",
|
||
"description": "Stable cause code for an actionable `403` response."
|
||
},
|
||
"V2Error": {
|
||
"type": "object",
|
||
"properties": {
|
||
"error": {
|
||
"type": "object",
|
||
"properties": {
|
||
"code": {
|
||
"type": "string",
|
||
"description": "Stable machine-readable error code."
|
||
},
|
||
"message": {
|
||
"type": "string",
|
||
"description": "Human-readable explanation of the error."
|
||
},
|
||
"details": {
|
||
"description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2ActionableForbiddenDetails"
|
||
},
|
||
{
|
||
"description": "Other structured context defined by the specific error."
|
||
}
|
||
]
|
||
},
|
||
"requestId": {
|
||
"description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["code", "message"],
|
||
"additionalProperties": false,
|
||
"description": "Canonical error details."
|
||
}
|
||
},
|
||
"required": ["error"],
|
||
"additionalProperties": false,
|
||
"title": "v2 error response",
|
||
"description": "Canonical error envelope returned by the public v2 API.",
|
||
"examples": [
|
||
{
|
||
"error": {
|
||
"code": "BAD_REQUEST",
|
||
"message": "The request is invalid."
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"FolderPathInput": {
|
||
"title": "Folder path input",
|
||
"description": "Folder path. A missing leading slash is normalized before validation. Segments are percent-encoded, so a folder shown as \"New folder\" is `/New%20folder`: everything outside `A-Z a-z 0-9 - _ . ~` is escaped as uppercase hex, and only that exact encoding is accepted. A trailing slash, an empty segment, and a literal `.` or `..` segment are rejected. At most 64 segments and 4096 encoded bytes.",
|
||
"maxLength": 4096,
|
||
"type": "string"
|
||
},
|
||
"V2ApiTable": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique table identifier."
|
||
},
|
||
"webUrl": {
|
||
"type": "string",
|
||
"format": "uri",
|
||
"description": "Canonical absolute URL for opening this resource in the Sim web application."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name."
|
||
},
|
||
"description": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Table description, or null when none is set."
|
||
},
|
||
"ownerEmail": {
|
||
"type": "string",
|
||
"format": "email",
|
||
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
||
"description": "Current email address of the table owner.",
|
||
"examples": ["owner@example.com"]
|
||
},
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Stable server-assigned column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name used as the public row-data key."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Data type of values stored in the column."
|
||
},
|
||
"required": {
|
||
"default": false,
|
||
"description": "Whether inserts require a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"default": false,
|
||
"description": "Whether values must be unique across table rows.",
|
||
"type": "boolean"
|
||
},
|
||
"workflowGroupId": {
|
||
"description": "Workflow group whose output populates this column.",
|
||
"type": "string"
|
||
},
|
||
"options": {
|
||
"description": "Options declared for a select column.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple options.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for a currency column, normalized to uppercase.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"required": ["name", "type", "required", "unique"],
|
||
"additionalProperties": false,
|
||
"description": "A typed column in a table schema."
|
||
},
|
||
"description": "Table column definitions."
|
||
}
|
||
},
|
||
"required": ["columns"],
|
||
"additionalProperties": false,
|
||
"description": "Typed table schema."
|
||
},
|
||
"rowCount": {
|
||
"type": "number",
|
||
"description": "Current number of rows in the table."
|
||
},
|
||
"maxRows": {
|
||
"type": "number",
|
||
"description": "Maximum rows allowed by the workspace plan."
|
||
},
|
||
"folderPath": {
|
||
"type": "string",
|
||
"title": "Folder path",
|
||
"description": "Canonical slash-prefixed folder path. `/` is the workspace root. Segments are percent-encoded, so a folder shown as \"New folder\" is `/New%20folder`: everything outside `A-Z a-z 0-9 - _ . ~` is escaped as uppercase hex, and only that exact encoding is accepted. A trailing slash, an empty segment, and a literal `.` or `..` segment are rejected. At most 64 segments and 4096 encoded bytes.",
|
||
"maxLength": 4096
|
||
},
|
||
"locks": {
|
||
"type": "object",
|
||
"properties": {
|
||
"schemaLocked": {
|
||
"type": "boolean",
|
||
"description": "Whether column-schema changes are locked."
|
||
},
|
||
"insertLocked": {
|
||
"type": "boolean",
|
||
"description": "Whether row insertion is locked."
|
||
},
|
||
"updateLocked": {
|
||
"type": "boolean",
|
||
"description": "Whether row updates are locked."
|
||
},
|
||
"deleteLocked": {
|
||
"type": "boolean",
|
||
"description": "Whether row and table deletion is locked."
|
||
}
|
||
},
|
||
"required": ["schemaLocked", "insertLocked", "updateLocked", "deleteLocked"],
|
||
"additionalProperties": false,
|
||
"description": "Read-only table governance locks."
|
||
},
|
||
"job": {
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2TableJobState"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Current background job, or null when idle."
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the table was created."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the table was last modified."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"webUrl",
|
||
"name",
|
||
"description",
|
||
"ownerEmail",
|
||
"schema",
|
||
"rowCount",
|
||
"maxRows",
|
||
"folderPath",
|
||
"locks",
|
||
"job",
|
||
"createdAt",
|
||
"updatedAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Table",
|
||
"description": "A user-defined table with typed columns and governance state."
|
||
},
|
||
"V2TableJobState": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Background job identifier, or null when unavailable."
|
||
},
|
||
"type": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"enum": ["import", "delete", "export", "backfill", "update"]
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Kind of background table work."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"enum": ["running", "ready", "failed", "canceled"],
|
||
"description": "Current background job state."
|
||
},
|
||
"rowsProcessed": {
|
||
"type": "number",
|
||
"description": "Number of rows processed by the job."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Failure reason, or null when the job has not failed."
|
||
}
|
||
},
|
||
"required": ["id", "type", "status", "rowsProcessed", "error"],
|
||
"additionalProperties": false,
|
||
"title": "Table job state",
|
||
"description": "Current background work associated with a table."
|
||
},
|
||
"V2TableListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2ApiTable"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Opaque cursor for the next page. Send it back as `cursor`; `null` means there are no more pages. Do not construct a cursor yourself."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Table list response",
|
||
"description": "A cursor-paginated page of tables."
|
||
},
|
||
"V2CreateTableResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTable"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table response",
|
||
"description": "The created table."
|
||
},
|
||
"CreateTableRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Table name."
|
||
},
|
||
"description": {
|
||
"description": "Optional table description.",
|
||
"type": "string",
|
||
"maxLength": 500
|
||
},
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"minItems": 1,
|
||
"maxItems": 1000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Optional client-provided column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Column data type."
|
||
},
|
||
"required": {
|
||
"description": "Whether inserts must supply a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"description": "Whether values in the column must be unique.",
|
||
"type": "boolean"
|
||
},
|
||
"options": {
|
||
"description": "Select options for select-type columns, as [{\"id\":\"open\",\"name\":\"Open\"}].",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"]
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple values.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for currency columns.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"required": ["name", "type"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Initial table columns."
|
||
}
|
||
},
|
||
"required": ["columns"],
|
||
"additionalProperties": false,
|
||
"description": "Initial table column definitions: {\"columns\":[{\"name\":\"email\",\"type\":\"string\",\"required\":true,\"unique\":true}]}. Column fields: id - Optional client-provided column identifier; name (required) - Column name; type (required) - Column data type; required - Whether inserts must supply a value for this column; unique - Whether values in the column must be unique; options - Select options for select-type columns, as [{\"id\":\"open\",\"name\":\"Open\"}]; multiple - Whether a select column accepts multiple values; currencyCode - ISO 4217 code for currency columns. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options."
|
||
},
|
||
"folderPath": {
|
||
"description": "Folder in which to create the table.",
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["name", "workspaceId", "schema"],
|
||
"additionalProperties": false,
|
||
"title": "Create table request",
|
||
"description": "Workspace, table metadata, folder placement, and typed columns."
|
||
},
|
||
"V2TableResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTable"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table response",
|
||
"description": "A single table."
|
||
},
|
||
"V2DeleteTableData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Identifier of the deleted table."
|
||
},
|
||
"deleted": {
|
||
"type": "boolean",
|
||
"const": true,
|
||
"description": "Confirms that the table was deleted."
|
||
}
|
||
},
|
||
"required": ["id", "deleted"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table data",
|
||
"description": "Table deletion acknowledgement."
|
||
},
|
||
"V2DeleteTableResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2DeleteTableData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table response",
|
||
"description": "Table deletion acknowledgement."
|
||
},
|
||
"V2UpdateTableResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTable"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Update table response",
|
||
"description": "The updated table."
|
||
},
|
||
"UpdateTableRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"name": {
|
||
"description": "Replacement table name.",
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
||
},
|
||
"description": {
|
||
"anyOf": [
|
||
{
|
||
"description": "Optional table description.",
|
||
"type": "string",
|
||
"maxLength": 500
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Replacement table description, or null to clear it."
|
||
},
|
||
"folderPath": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Update table request",
|
||
"description": "Workspace scope and one or more table metadata or placement changes."
|
||
},
|
||
"V2TableColumnsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Stable server-assigned column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name used as the public row-data key."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Data type of values stored in the column."
|
||
},
|
||
"required": {
|
||
"default": false,
|
||
"description": "Whether inserts require a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"default": false,
|
||
"description": "Whether values must be unique across table rows.",
|
||
"type": "boolean"
|
||
},
|
||
"workflowGroupId": {
|
||
"description": "Workflow group whose output populates this column.",
|
||
"type": "string"
|
||
},
|
||
"options": {
|
||
"description": "Options declared for a select column.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple options.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for a currency column, normalized to uppercase.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"required": ["name", "type", "required", "unique"],
|
||
"additionalProperties": false,
|
||
"description": "A typed column in a table schema."
|
||
},
|
||
"description": "Current table columns."
|
||
}
|
||
},
|
||
"required": ["columns"],
|
||
"additionalProperties": false,
|
||
"title": "Table columns data",
|
||
"description": "The table column list after a schema mutation."
|
||
},
|
||
"V2TableColumnsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableColumnsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table columns response",
|
||
"description": "The table column list after a schema mutation."
|
||
},
|
||
"AddTableColumnRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the table."
|
||
},
|
||
"column": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Optional client-provided column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Column data type."
|
||
},
|
||
"required": {
|
||
"description": "Whether inserts must supply a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"description": "Whether values in the column must be unique.",
|
||
"type": "boolean"
|
||
},
|
||
"options": {
|
||
"description": "Select options for select-type columns, as [{\"id\":\"open\",\"name\":\"Open\"}].",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"]
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple values.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for currency columns.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
},
|
||
"position": {
|
||
"description": "Zero-based insertion position for the column.",
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991
|
||
}
|
||
},
|
||
"required": ["name", "type"],
|
||
"additionalProperties": false,
|
||
"description": "Column definition to add: {\"name\":\"status\",\"type\":\"string\"}. Column fields: id - Optional client-provided column identifier; name (required) - Column name; type (required) - Column data type; required - Whether inserts must supply a value for this column; unique - Whether values in the column must be unique; options - Select options for select-type columns, as [{\"id\":\"open\",\"name\":\"Open\"}]; multiple - Whether a select column accepts multiple values; currencyCode - ISO 4217 code for currency columns; position - Zero-based insertion position for the column. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "column"],
|
||
"additionalProperties": false,
|
||
"title": "Add table column request",
|
||
"description": "Workspace scope and the typed column to add.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"column": {
|
||
"name": "plan",
|
||
"type": "string"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"V2UnmigratedTableBlockReference": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workflowId": {
|
||
"type": "string",
|
||
"description": "Workflow holding the Table block."
|
||
},
|
||
"workflowName": {
|
||
"type": "string",
|
||
"description": "Display name of that workflow."
|
||
},
|
||
"blockId": {
|
||
"type": "string",
|
||
"description": "Table block whose configuration still names the old column."
|
||
},
|
||
"blockName": {
|
||
"type": "string",
|
||
"description": "Display name of that block."
|
||
},
|
||
"fields": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"enum": ["filter", "order", "data"]
|
||
},
|
||
"description": "Sub-block fields that still reference the old column name."
|
||
}
|
||
},
|
||
"required": ["workflowId", "workflowName", "blockId", "blockName", "fields"],
|
||
"additionalProperties": false,
|
||
"title": "Unmigrated table block reference",
|
||
"description": "A workflow Table block still configured against a renamed column."
|
||
},
|
||
"V2UpdateTableColumnData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Stable server-assigned column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name used as the public row-data key."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Data type of values stored in the column."
|
||
},
|
||
"required": {
|
||
"default": false,
|
||
"description": "Whether inserts require a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"default": false,
|
||
"description": "Whether values must be unique across table rows.",
|
||
"type": "boolean"
|
||
},
|
||
"workflowGroupId": {
|
||
"description": "Workflow group whose output populates this column.",
|
||
"type": "string"
|
||
},
|
||
"options": {
|
||
"description": "Options declared for a select column.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple options.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for a currency column, normalized to uppercase.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"required": ["name", "type", "required", "unique"],
|
||
"additionalProperties": false,
|
||
"description": "A typed column in a table schema."
|
||
},
|
||
"description": "Current table columns."
|
||
},
|
||
"unmigrated": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2UnmigratedTableBlockReference"
|
||
},
|
||
"description": "Workflow Table blocks bound to this table whose `filter`, `order`, or `data` still name the column by its previous name. Only populated by a rename; empty otherwise. Workflow state is never rewritten here — edit those blocks with Apply Workflow Operations or their next run fails on the old name."
|
||
}
|
||
},
|
||
"required": ["columns", "unmigrated"],
|
||
"additionalProperties": false,
|
||
"title": "Update table column data",
|
||
"description": "The table column list after the update, plus any workflow Table blocks a rename left pointing at the old column name."
|
||
},
|
||
"V2UpdateTableColumnResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2UpdateTableColumnData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Update table column response",
|
||
"description": "The table column list after the update, plus workflow Table blocks a rename left on the old column name.",
|
||
"examples": [
|
||
{
|
||
"data": {
|
||
"columns": [
|
||
{
|
||
"id": "col_name",
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": true,
|
||
"unique": false
|
||
},
|
||
{
|
||
"id": "col_plan",
|
||
"name": "subscriptionPlan",
|
||
"type": "string",
|
||
"required": false,
|
||
"unique": false
|
||
}
|
||
],
|
||
"unmigrated": [
|
||
{
|
||
"workflowId": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
|
||
"workflowName": "Weekly digest",
|
||
"blockId": "blk_9c1d3f5a7e2b4068a0c2e4f6b8d0f193",
|
||
"blockName": "Query plans",
|
||
"fields": ["filter"]
|
||
}
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"UpdateTableColumnRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the table."
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Current name of the column to update."
|
||
},
|
||
"updates": {
|
||
"type": "object",
|
||
"properties": {
|
||
"name": {
|
||
"description": "Replacement column name.",
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
||
},
|
||
"type": {
|
||
"description": "Replacement column data type.",
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"]
|
||
},
|
||
"required": {
|
||
"description": "Whether inserts must supply a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"description": "Whether values in the column must be unique.",
|
||
"type": "boolean"
|
||
},
|
||
"options": {
|
||
"description": "Replacement select options for select-type columns.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"]
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple values.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "Replacement ISO 4217 code for a currency column.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"additionalProperties": false,
|
||
"description": "Mutable column fields."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "columnName", "updates"],
|
||
"additionalProperties": false,
|
||
"title": "Update table column request",
|
||
"description": "Workspace scope, current column name, and fields to update.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"columnName": "plan",
|
||
"updates": {
|
||
"name": "subscriptionPlan"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"DeleteTableColumnRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Name of the column to delete."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "columnName"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table column request",
|
||
"description": "Workspace scope and column name to delete.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"columnName": "legacyStatus"
|
||
}
|
||
]
|
||
},
|
||
"V2ApiTableRow": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique row identifier."
|
||
},
|
||
"data": {
|
||
"description": "Row cells keyed by column name.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
},
|
||
"runState": {
|
||
"description": "Per-workflow-group run state keyed by group identifier. Present only when the read requested `includeRunState`.",
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"$ref": "#/components/schemas/V2TableRowRunState"
|
||
}
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the row was created."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the row was last modified."
|
||
}
|
||
},
|
||
"required": ["id", "data", "createdAt", "updatedAt"],
|
||
"additionalProperties": false,
|
||
"title": "Table row",
|
||
"description": "A table row with user-defined cell values."
|
||
},
|
||
"V2TableRowData": {
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"description": "User-defined cell value interpreted by its column definition."
|
||
},
|
||
"description": "User-defined row cells keyed by column name.",
|
||
"title": "Table row data",
|
||
"examples": [
|
||
{
|
||
"email": "jane@example.com",
|
||
"name": "Jane Doe",
|
||
"age": 30
|
||
}
|
||
]
|
||
},
|
||
"V2TableRowRunState": {
|
||
"type": "object",
|
||
"properties": {
|
||
"status": {
|
||
"type": "string",
|
||
"description": "Lifecycle state of the most recent run for this cell: `pending`, `queued`, `running`, `completed`, `error`, or `canceled`."
|
||
},
|
||
"executionId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Workflow execution identifier, or null before a worker claimed the cell."
|
||
},
|
||
"workflowId": {
|
||
"type": "string",
|
||
"description": "Workflow the group runs for this cell."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Failure reason, or null when the run did not fail."
|
||
},
|
||
"runningBlockIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"description": "Block identifiers currently mid-execution."
|
||
},
|
||
"blockErrors": {
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "string"
|
||
},
|
||
"description": "Per-block failure messages keyed by block identifier."
|
||
},
|
||
"canceledAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 timestamp when the cell was canceled, or null."
|
||
}
|
||
},
|
||
"required": [
|
||
"status",
|
||
"executionId",
|
||
"workflowId",
|
||
"error",
|
||
"runningBlockIds",
|
||
"blockErrors",
|
||
"canceledAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Table row run state",
|
||
"description": "Run outcome for one workflow group on one row."
|
||
},
|
||
"V2TableRowListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2ApiTableRow"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Opaque cursor for the next page. Send it back as `cursor`; `null` means there are no more pages. Do not construct a cursor yourself."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Table row list response",
|
||
"description": "A cursor-paginated page of table rows."
|
||
},
|
||
"V2CreateSingleTableRowResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTableRow"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create single table row response",
|
||
"description": "Response returned after inserting one table row."
|
||
},
|
||
"V2CreateBatchTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2BatchInsertRowsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create batch table rows response",
|
||
"description": "Response returned after inserting a batch of table rows."
|
||
},
|
||
"V2BatchInsertRowsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"rows": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2ApiTableRow"
|
||
},
|
||
"description": "Inserted table rows."
|
||
},
|
||
"insertedCount": {
|
||
"type": "number",
|
||
"description": "Number of inserted rows."
|
||
}
|
||
},
|
||
"required": ["rows", "insertedCount"],
|
||
"additionalProperties": false,
|
||
"title": "Batch insert rows data",
|
||
"description": "Rows created by a batch insert."
|
||
},
|
||
"V2CreateTableRowsResponse": {
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2CreateSingleTableRowResponse"
|
||
},
|
||
{
|
||
"$ref": "#/components/schemas/V2CreateBatchTableRowsResponse"
|
||
}
|
||
],
|
||
"title": "Create table rows response",
|
||
"description": "The inserted single row or inserted batch result."
|
||
},
|
||
"CreateTableRowsRequest": {
|
||
"anyOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"rows": {
|
||
"minItems": 1,
|
||
"maxItems": 1000,
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
},
|
||
"description": "Rows to insert, with cells keyed by column name."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "rows"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"data": {
|
||
"description": "Row cells keyed by column name.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
},
|
||
"afterRowId": {
|
||
"description": "Row after which to insert the new row.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"beforeRowId": {
|
||
"description": "Row before which to insert the new row.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": ["workspaceId", "data"],
|
||
"additionalProperties": false
|
||
}
|
||
],
|
||
"title": "Create table rows request",
|
||
"description": "A single row or bounded row batch keyed by column name.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"data": {
|
||
"email": "jane@example.com",
|
||
"status": "active"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"V2UpdateRowsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"updatedCount": {
|
||
"type": "number",
|
||
"description": "Number of updated rows."
|
||
},
|
||
"updatedRowIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"description": "Identifiers of updated rows."
|
||
}
|
||
},
|
||
"required": ["updatedCount", "updatedRowIds"],
|
||
"additionalProperties": false,
|
||
"title": "Update rows data",
|
||
"description": "Result of a bulk row update."
|
||
},
|
||
"V2UpdateTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2UpdateRowsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Update table rows response",
|
||
"description": "Updated row count and identifiers."
|
||
},
|
||
"TablePredicateInput": {
|
||
"title": "Table predicate input",
|
||
"description": "One condition or a recursive `all`/`any` group, normalized to a grouped predicate. Limits: 100 members per group, 10 levels, and 500 nodes. The negating operators include nulls and absent cells, multi-select included; combine with `isNotNull` or `isNotEmpty` to exclude them. Pattern operators use `*` as the only wildcard; `%`, `_`, and backslash are literal. Select operators: single-select uses `eq`/`ne`/`in`/`nin`; multi-select uses `contains`/`ncontains`; option names resolve to IDs. Full operand rules are documented on `op`.",
|
||
"oneOf": [
|
||
{
|
||
"type": "object",
|
||
"description": "Matches a row when every member matches.",
|
||
"properties": {
|
||
"all": {
|
||
"type": "array",
|
||
"minItems": 1,
|
||
"maxItems": 100,
|
||
"description": "Members combined with AND. An empty group is rejected, because it would compile to no filter at all.",
|
||
"items": {
|
||
"description": "A nested group, or a single condition.",
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"title": "Predicate condition",
|
||
"description": "One column comparison.",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to compare, or one of the system fields `id`, `createdAt`, `updatedAt`."
|
||
},
|
||
"op": {
|
||
"type": "string",
|
||
"enum": [
|
||
"eq",
|
||
"ne",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"in",
|
||
"nin",
|
||
"contains",
|
||
"ncontains",
|
||
"startsWith",
|
||
"endsWith",
|
||
"like",
|
||
"ilike",
|
||
"nlike",
|
||
"nilike",
|
||
"isEmpty",
|
||
"isNotEmpty",
|
||
"isNull",
|
||
"isNotNull"
|
||
],
|
||
"description": "Operators: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`; `in`/`nin` take arrays; `isEmpty`, `isNotEmpty`, `isNull`, and `isNotNull` take no operand. Text operators are `contains`, `ncontains`, `startsWith`, `endsWith`, `like`, `nlike`, `ilike`, and `nilike`. Contains variants are case-insensitive and literal; `like`/`nlike` are case-sensitive, while `ilike`/`nilike` are case-insensitive. `*` is the only wildcard; `%`, `_`, and backslash are literal. For `select` columns, single-select accepts `eq`, `ne`, `in`, `nin`; multi-select accepts `contains`, `ncontains`. Option names resolve to IDs."
|
||
},
|
||
"value": {
|
||
"description": "Operand. A scalar for the comparison operators, an array of at most 1000 entries for `in`/`nin`, a pattern for the matching operators, and omitted for `isEmpty`/`isNotEmpty`/`isNull`/`isNotNull`."
|
||
}
|
||
},
|
||
"required": ["field", "op"],
|
||
"additionalProperties": false
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": ["all"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"description": "Matches a row when at least one member matches.",
|
||
"properties": {
|
||
"any": {
|
||
"type": "array",
|
||
"minItems": 1,
|
||
"maxItems": 100,
|
||
"description": "Members combined with OR. An empty group is rejected, because it would compile to no filter at all.",
|
||
"items": {
|
||
"description": "A nested group, or a single condition.",
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"title": "Predicate condition",
|
||
"description": "One column comparison.",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to compare, or one of the system fields `id`, `createdAt`, `updatedAt`."
|
||
},
|
||
"op": {
|
||
"type": "string",
|
||
"enum": [
|
||
"eq",
|
||
"ne",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"in",
|
||
"nin",
|
||
"contains",
|
||
"ncontains",
|
||
"startsWith",
|
||
"endsWith",
|
||
"like",
|
||
"ilike",
|
||
"nlike",
|
||
"nilike",
|
||
"isEmpty",
|
||
"isNotEmpty",
|
||
"isNull",
|
||
"isNotNull"
|
||
],
|
||
"description": "Operators: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`; `in`/`nin` take arrays; `isEmpty`, `isNotEmpty`, `isNull`, and `isNotNull` take no operand. Text operators are `contains`, `ncontains`, `startsWith`, `endsWith`, `like`, `nlike`, `ilike`, and `nilike`. Contains variants are case-insensitive and literal; `like`/`nlike` are case-sensitive, while `ilike`/`nilike` are case-insensitive. `*` is the only wildcard; `%`, `_`, and backslash are literal. For `select` columns, single-select accepts `eq`, `ne`, `in`, `nin`; multi-select accepts `contains`, `ncontains`. Option names resolve to IDs."
|
||
},
|
||
"value": {
|
||
"description": "Operand. A scalar for the comparison operators, an array of at most 1000 entries for `in`/`nin`, a pattern for the matching operators, and omitted for `isEmpty`/`isNotEmpty`/`isNull`/`isNotNull`."
|
||
}
|
||
},
|
||
"required": ["field", "op"],
|
||
"additionalProperties": false
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": ["any"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"title": "Predicate condition",
|
||
"description": "One column comparison.",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to compare, or one of the system fields `id`, `createdAt`, `updatedAt`."
|
||
},
|
||
"op": {
|
||
"type": "string",
|
||
"enum": [
|
||
"eq",
|
||
"ne",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"in",
|
||
"nin",
|
||
"contains",
|
||
"ncontains",
|
||
"startsWith",
|
||
"endsWith",
|
||
"like",
|
||
"ilike",
|
||
"nlike",
|
||
"nilike",
|
||
"isEmpty",
|
||
"isNotEmpty",
|
||
"isNull",
|
||
"isNotNull"
|
||
],
|
||
"description": "Operators: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`; `in`/`nin` take arrays; `isEmpty`, `isNotEmpty`, `isNull`, and `isNotNull` take no operand. Text operators are `contains`, `ncontains`, `startsWith`, `endsWith`, `like`, `nlike`, `ilike`, and `nilike`. Contains variants are case-insensitive and literal; `like`/`nlike` are case-sensitive, while `ilike`/`nilike` are case-insensitive. `*` is the only wildcard; `%`, `_`, and backslash are literal. For `select` columns, single-select accepts `eq`, `ne`, `in`, `nin`; multi-select accepts `contains`, `ncontains`. Option names resolve to IDs."
|
||
},
|
||
"value": {
|
||
"description": "Operand. A scalar for the comparison operators, an array of at most 1000 entries for `in`/`nin`, a pattern for the matching operators, and omitted for `isEmpty`/`isNotEmpty`/`isNull`/`isNotNull`."
|
||
}
|
||
},
|
||
"required": ["field", "op"],
|
||
"additionalProperties": false
|
||
}
|
||
]
|
||
},
|
||
"UpdateTableRowsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"filter": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
"data": {
|
||
"description": "Row-data patch applied to every matching row.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
},
|
||
"limit": {
|
||
"description": "Maximum matching rows to update.",
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 1000
|
||
}
|
||
},
|
||
"required": ["workspaceId", "filter", "data"],
|
||
"additionalProperties": false,
|
||
"title": "Update table rows request",
|
||
"description": "Workspace scope, typed predicate, and row-data patch."
|
||
},
|
||
"V2DeleteRowsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"deletedCount": {
|
||
"type": "number",
|
||
"description": "Number of deleted rows."
|
||
},
|
||
"deletedRowIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"description": "Identifiers of deleted rows."
|
||
},
|
||
"requestedCount": {
|
||
"description": "Number of row identifiers requested.",
|
||
"type": "number"
|
||
},
|
||
"missingRowIds": {
|
||
"description": "Requested row identifiers not found.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"required": ["deletedCount", "deletedRowIds"],
|
||
"additionalProperties": false,
|
||
"title": "Delete rows data",
|
||
"description": "Result of a bulk row deletion."
|
||
},
|
||
"V2DeleteTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2DeleteRowsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table rows response",
|
||
"description": "Deleted row counts, identifiers, and optional missing identifiers."
|
||
},
|
||
"DeleteTableRowsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"filter": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
"limit": {
|
||
"description": "Maximum matching rows to delete.",
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 1000
|
||
},
|
||
"rowIds": {
|
||
"description": "Explicit row identifiers to delete.",
|
||
"minItems": 1,
|
||
"maxItems": 1000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table rows request",
|
||
"description": "Workspace scope and exactly one of a predicate or row identifier list."
|
||
},
|
||
"V2TableRowResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTableRow"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table row response",
|
||
"description": "A single table row."
|
||
},
|
||
"UpdateTableRowRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"data": {
|
||
"description": "Partial row-data patch keyed by column name.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "data"],
|
||
"additionalProperties": false,
|
||
"title": "Update table row request",
|
||
"description": "Workspace scope and row-data patch keyed by column name.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"data": {
|
||
"status": "active"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"V2DeleteRowData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Identifier of the deleted row."
|
||
},
|
||
"deleted": {
|
||
"type": "boolean",
|
||
"const": true,
|
||
"description": "Confirms that the row was deleted."
|
||
}
|
||
},
|
||
"required": ["id", "deleted"],
|
||
"additionalProperties": false,
|
||
"title": "Delete row data",
|
||
"description": "Row deletion acknowledgement."
|
||
},
|
||
"V2DeleteTableRowResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2DeleteRowData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table row response",
|
||
"description": "Row deletion acknowledgement."
|
||
},
|
||
"V2UpsertRowData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"row": {
|
||
"description": "The inserted or updated table row.",
|
||
"$ref": "#/components/schemas/V2ApiTableRow"
|
||
},
|
||
"operation": {
|
||
"type": "string",
|
||
"enum": ["insert", "update"],
|
||
"description": "Whether the row was inserted or updated."
|
||
}
|
||
},
|
||
"required": ["row", "operation"],
|
||
"additionalProperties": false,
|
||
"title": "Upsert row data",
|
||
"description": "Row returned by an upsert and the operation performed."
|
||
},
|
||
"V2UpsertTableRowResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2UpsertRowData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Upsert table row response",
|
||
"description": "The resulting row and whether it was inserted or updated."
|
||
},
|
||
"UpsertTableRowRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"data": {
|
||
"description": "Complete set of row cells keyed by column name. On the update branch this REPLACES the matched row: any column not present here is cleared, unlike a single-row update, which merges.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
},
|
||
"conflictTarget": {
|
||
"description": "Unique column used to detect a conflict.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": ["workspaceId", "data"],
|
||
"additionalProperties": false,
|
||
"title": "Upsert table row request",
|
||
"description": "Workspace scope, row data, and optional unique-column conflict target.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"data": {
|
||
"email": "jane@example.com",
|
||
"status": "active"
|
||
},
|
||
"conflictTarget": "email"
|
||
}
|
||
]
|
||
},
|
||
"V2QueryTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2ApiTableRow"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Opaque cursor for the next page. Send it back as `cursor`; `null` means there are no more pages. Do not construct a cursor yourself."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Query table rows response",
|
||
"description": "A cursor-paginated page of matching table rows."
|
||
},
|
||
"QueryTableRowsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"predicate": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
"sort": {
|
||
"description": "Ordered table-row sort specification.",
|
||
"maxItems": 16,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to sort by."
|
||
},
|
||
"direction": {
|
||
"type": "string",
|
||
"enum": ["asc", "desc"],
|
||
"description": "Sort direction for this column."
|
||
}
|
||
},
|
||
"required": ["field", "direction"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"limit": {
|
||
"description": "Maximum rows per page. `0` requests all matches, subject to a 5 MiB row-data ceiling; larger results return `400` with `TABLE_QUERY_RESULT_TOO_LARGE`. Use paged queries or an export for larger results.",
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1000
|
||
},
|
||
"cursor": {
|
||
"description": "Opaque cursor returned by the previous query page. Send it back under the same table reference (its id or its name, as the first page used).",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"includeRunState": {
|
||
"default": false,
|
||
"description": "Include per-workflow-group run outcomes on every row. Off by default. Incompatible with `limit: 0`; caps `limit` at 200. Run state above 2 MiB returns `413`; request fewer rows or omit run state.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Query table rows request",
|
||
"description": "Workspace scope, optional predicate and sort, and cursor pagination controls. The predicate may be one condition or an `all`/`any` group; omitting it matches every row."
|
||
},
|
||
"V2QueryRowsCountData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"totalCount": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Number of rows matching the predicate across the entire table."
|
||
}
|
||
},
|
||
"required": ["totalCount"],
|
||
"additionalProperties": false,
|
||
"title": "Query rows count data",
|
||
"description": "Total number of table rows matching a predicate."
|
||
},
|
||
"V2CountTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2QueryRowsCountData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Count table rows response",
|
||
"description": "The total number of table rows matching the predicate."
|
||
},
|
||
"CountTableRowsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"predicate": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Count table rows request",
|
||
"description": "Workspace scope and the optional condition or `all`/`any` predicate group whose matches are counted."
|
||
},
|
||
"V2ApiTableView": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique saved-view identifier."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"description": "Table to which the view belongs."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Saved-view display name."
|
||
},
|
||
"config": {
|
||
"description": "Saved filter, sort, and column-layout configuration.",
|
||
"$ref": "#/components/schemas/V2TableViewConfig"
|
||
},
|
||
"isDefault": {
|
||
"type": "boolean",
|
||
"description": "Whether this is the table default view."
|
||
},
|
||
"createdByEmail": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "email",
|
||
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Current author email, or null when removed."
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the view was created."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the view was last modified."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"tableId",
|
||
"name",
|
||
"config",
|
||
"isDefault",
|
||
"createdByEmail",
|
||
"createdAt",
|
||
"updatedAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Table view",
|
||
"description": "A named saved presentation of table rows and columns."
|
||
},
|
||
"V2TableViewConfig": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columnWidths": {
|
||
"description": "Column widths keyed by column name.",
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "number",
|
||
"exclusiveMinimum": 0
|
||
}
|
||
},
|
||
"columnOrder": {
|
||
"description": "Column names in display order.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"pinnedColumns": {
|
||
"description": "Names of pinned columns.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"hiddenColumns": {
|
||
"description": "Names of hidden columns.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"filter": {
|
||
"description": "Saved row predicate, or null when the view is unfiltered.",
|
||
"anyOf": [
|
||
{
|
||
"description": "Recursive saved predicate tree. Runtime validation uses the canonical predicate schema."
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"sort": {
|
||
"description": "Saved ordered sort specification, or null for default ordering.",
|
||
"anyOf": [
|
||
{
|
||
"maxItems": 16,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to sort by."
|
||
},
|
||
"direction": {
|
||
"type": "string",
|
||
"enum": ["asc", "desc"],
|
||
"description": "Sort direction for this column."
|
||
}
|
||
},
|
||
"required": ["field", "direction"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"additionalProperties": false,
|
||
"title": "Table view configuration",
|
||
"description": "Saved filter, sort, and column-layout settings for a table view."
|
||
},
|
||
"V2TableViewListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2ApiTableView"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Always `null`. This list has no `cursor` or `limit` parameters; see the operation for inventory limits."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Table view list response",
|
||
"description": "A cursor envelope containing the saved views."
|
||
},
|
||
"V2CreateTableViewResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTableView"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table view response",
|
||
"description": "The created saved view."
|
||
},
|
||
"CreateTableViewRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Saved-view display name."
|
||
},
|
||
"config": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columnWidths": {
|
||
"description": "Column widths keyed by column name or stable column identifier.",
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "number",
|
||
"exclusiveMinimum": 0
|
||
}
|
||
},
|
||
"columnOrder": {
|
||
"description": "Columns in display order, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"pinnedColumns": {
|
||
"description": "Pinned columns, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"hiddenColumns": {
|
||
"description": "Hidden columns, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"filter": {
|
||
"description": "Saved row predicate, or null when the view is unfiltered.",
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"sort": {
|
||
"description": "Saved ordered sort specification, or null for default ordering.",
|
||
"anyOf": [
|
||
{
|
||
"maxItems": 16,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to sort by."
|
||
},
|
||
"direction": {
|
||
"type": "string",
|
||
"enum": ["asc", "desc"],
|
||
"description": "Sort direction for this column."
|
||
}
|
||
},
|
||
"required": ["field", "direction"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"additionalProperties": false,
|
||
"description": "Saved filter, sort, and column-layout configuration."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "name", "config"],
|
||
"additionalProperties": false,
|
||
"title": "Create table view request",
|
||
"description": "Workspace scope, name, and saved filter, sort, and layout configuration."
|
||
},
|
||
"V2TableViewResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTableView"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table view response",
|
||
"description": "A single saved table view."
|
||
},
|
||
"UpdateTableViewRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workspace that owns the table."
|
||
},
|
||
"name": {
|
||
"description": "Replacement saved-view display name.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"config": {
|
||
"description": "Complete replacement saved-view configuration.",
|
||
"type": "object",
|
||
"properties": {
|
||
"columnWidths": {
|
||
"description": "Column widths keyed by column name or stable column identifier.",
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "number",
|
||
"exclusiveMinimum": 0
|
||
}
|
||
},
|
||
"columnOrder": {
|
||
"description": "Columns in display order, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"pinnedColumns": {
|
||
"description": "Pinned columns, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"hiddenColumns": {
|
||
"description": "Hidden columns, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"filter": {
|
||
"description": "Saved row predicate, or null when the view is unfiltered.",
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"sort": {
|
||
"description": "Saved ordered sort specification, or null for default ordering.",
|
||
"anyOf": [
|
||
{
|
||
"maxItems": 16,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to sort by."
|
||
},
|
||
"direction": {
|
||
"type": "string",
|
||
"enum": ["asc", "desc"],
|
||
"description": "Sort direction for this column."
|
||
}
|
||
},
|
||
"required": ["field", "direction"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"additionalProperties": false
|
||
},
|
||
"configPatch": {
|
||
"description": "Saved-view configuration fields to shallow-merge.",
|
||
"type": "object",
|
||
"properties": {
|
||
"columnWidths": {
|
||
"description": "Column widths keyed by column name or stable column identifier.",
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "number",
|
||
"exclusiveMinimum": 0
|
||
}
|
||
},
|
||
"columnOrder": {
|
||
"description": "Columns in display order, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"pinnedColumns": {
|
||
"description": "Pinned columns, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"hiddenColumns": {
|
||
"description": "Hidden columns, by name or stable identifier.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"filter": {
|
||
"description": "Saved row predicate, or null when the view is unfiltered.",
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"sort": {
|
||
"description": "Saved ordered sort specification, or null for default ordering.",
|
||
"anyOf": [
|
||
{
|
||
"maxItems": 16,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to sort by."
|
||
},
|
||
"direction": {
|
||
"type": "string",
|
||
"enum": ["asc", "desc"],
|
||
"description": "Sort direction for this column."
|
||
}
|
||
},
|
||
"required": ["field", "direction"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"additionalProperties": false
|
||
},
|
||
"isDefault": {
|
||
"description": "Whether to promote this view to the table default.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Update table view request",
|
||
"description": "Workspace scope and one or more saved-view changes."
|
||
},
|
||
"V2DeleteTableViewData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Identifier of the deleted view."
|
||
},
|
||
"deleted": {
|
||
"type": "boolean",
|
||
"const": true,
|
||
"description": "Confirms that the view was deleted."
|
||
}
|
||
},
|
||
"required": ["id", "deleted"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table view data",
|
||
"description": "Saved-view deletion acknowledgement."
|
||
},
|
||
"V2DeleteTableViewResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2DeleteTableViewData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table view response",
|
||
"description": "Saved-view deletion acknowledgement."
|
||
},
|
||
"V2TableWorkflowGroup": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique workflow-group identifier."
|
||
},
|
||
"workflowId": {
|
||
"type": "string",
|
||
"description": "Backing workflow identifier for a manual group."
|
||
},
|
||
"enrichmentId": {
|
||
"description": "Registry enrichment identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"description": "Workflow-group display name.",
|
||
"type": "string"
|
||
},
|
||
"type": {
|
||
"description": "Producer type.",
|
||
"type": "string",
|
||
"enum": ["manual", "enrichment"]
|
||
},
|
||
"dependencies": {
|
||
"description": "Input column dependencies.",
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"description": "Columns required as producer inputs.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"additionalProperties": false
|
||
},
|
||
"outputs": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"blockId": {
|
||
"type": "string",
|
||
"description": "Workflow block producing this output."
|
||
},
|
||
"path": {
|
||
"type": "string",
|
||
"description": "Path to the value in the workflow block output."
|
||
},
|
||
"outputId": {
|
||
"description": "Registry enrichment output identifier.",
|
||
"type": "string"
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"description": "Name of the table column receiving the output."
|
||
}
|
||
},
|
||
"required": ["blockId", "path", "columnName"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Workflow outputs mapped to table columns."
|
||
},
|
||
"inputMappings": {
|
||
"description": "Workflow inputs mapped from table columns.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"inputName": {
|
||
"type": "string",
|
||
"description": "Workflow input name."
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"description": "Name of the source table column."
|
||
}
|
||
},
|
||
"required": ["inputName", "columnName"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"deploymentMode": {
|
||
"type": "string",
|
||
"enum": ["live", "deployed"],
|
||
"description": "Which workflow state per-cell runs execute against. `deployed` (the default when a group was created without one) runs the latest active deployment and refuses to run while the workflow is undeployed; `live` runs the editable draft."
|
||
},
|
||
"autoRun": {
|
||
"description": "Whether the group automatically runs for new rows.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["id", "workflowId", "outputs", "deploymentMode"],
|
||
"additionalProperties": false,
|
||
"title": "Table workflow group",
|
||
"description": "A workflow or enrichment producer and the columns it populates."
|
||
},
|
||
"V2TableWorkflowGroupListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableWorkflowGroup"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Always `null`. This list has no `cursor` or `limit` parameters; see the operation for inventory limits."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Table workflow group list response",
|
||
"description": "A cursor envelope containing the table workflow groups."
|
||
},
|
||
"V2WorkflowGroupData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group": {
|
||
"description": "The created or updated workflow group.",
|
||
"$ref": "#/components/schemas/V2TableWorkflowGroup"
|
||
},
|
||
"columns": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Stable server-assigned column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name used as the public row-data key."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Data type of values stored in the column."
|
||
},
|
||
"required": {
|
||
"default": false,
|
||
"description": "Whether inserts require a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"default": false,
|
||
"description": "Whether values must be unique across table rows.",
|
||
"type": "boolean"
|
||
},
|
||
"workflowGroupId": {
|
||
"description": "Workflow group whose output populates this column.",
|
||
"type": "string"
|
||
},
|
||
"options": {
|
||
"description": "Options declared for a select column.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple options.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for a currency column, normalized to uppercase.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"required": ["name", "type", "required", "unique"],
|
||
"additionalProperties": false,
|
||
"description": "A typed column in a table schema."
|
||
},
|
||
"description": "Current table columns after the mutation."
|
||
}
|
||
},
|
||
"required": ["group", "columns"],
|
||
"additionalProperties": false,
|
||
"title": "Workflow group data",
|
||
"description": "A workflow group and the resulting table columns."
|
||
},
|
||
"V2AddTableWorkflowGroupResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2WorkflowGroupData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Add table workflow group response",
|
||
"description": "The workflow group and complete resulting table columns."
|
||
},
|
||
"AddTableWorkflowGroupRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"group": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Optional client-provided workflow-group identifier.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"workflowId": {
|
||
"description": "Backing workflow identifier. Required when `type` is `manual` (which is also the default when `type` is omitted); omit it for an `enrichment` group.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"enrichmentId": {
|
||
"description": "Registry enrichment identifier.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"name": {
|
||
"description": "Workflow-group display name.",
|
||
"type": "string"
|
||
},
|
||
"type": {
|
||
"description": "Workflow-group producer type.",
|
||
"type": "string",
|
||
"enum": ["manual", "enrichment"]
|
||
},
|
||
"dependencies": {
|
||
"description": "Producer input dependencies.",
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"description": "Columns required as producer inputs.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"outputs": {
|
||
"minItems": 1,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"blockId": {
|
||
"default": "",
|
||
"description": "Workflow block producing this output.",
|
||
"type": "string"
|
||
},
|
||
"path": {
|
||
"default": "",
|
||
"description": "Path to the value in the workflow block output.",
|
||
"type": "string"
|
||
},
|
||
"outputId": {
|
||
"description": "Registry enrichment output identifier.",
|
||
"type": "string"
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Table column receiving the output."
|
||
}
|
||
},
|
||
"required": ["columnName"]
|
||
},
|
||
"description": "Producer outputs mapped to columns."
|
||
},
|
||
"inputMappings": {
|
||
"description": "Workflow inputs mapped from table columns.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"inputName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workflow input name."
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Source table column name."
|
||
}
|
||
},
|
||
"required": ["inputName", "columnName"]
|
||
}
|
||
},
|
||
"deploymentMode": {
|
||
"description": "Workflow state used for cell runs.",
|
||
"type": "string",
|
||
"enum": ["live", "deployed"]
|
||
},
|
||
"autoRun": {
|
||
"description": "Whether this group automatically runs for new rows.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["outputs"],
|
||
"description": "Workflow or enrichment producer definition."
|
||
},
|
||
"outputColumns": {
|
||
"default": [],
|
||
"description": "Columns to create for producer outputs. An entry naming a column the table already has attaches that column to the group instead of creating it (its `type` must match), and an output whose column already exists may omit its entry entirely — so `[]` attaches existing columns only.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Output column name."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Output column data type."
|
||
},
|
||
"required": {
|
||
"description": "Whether the output column is required.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"description": "Whether the output column must be unique.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["name", "type"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"autoRun": {
|
||
"default": false,
|
||
"description": "Whether to schedule existing rows after group creation.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "group"],
|
||
"additionalProperties": false,
|
||
"title": "Add table workflow group request",
|
||
"description": "Workspace scope, producer definition, and output columns.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"group": {
|
||
"workflowId": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
|
||
"name": "Enrich company",
|
||
"outputs": [
|
||
{
|
||
"blockId": "block_lookup",
|
||
"path": "output.revenue",
|
||
"columnName": "revenue"
|
||
}
|
||
]
|
||
},
|
||
"outputColumns": [
|
||
{
|
||
"name": "revenue",
|
||
"type": "number"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"V2UpdateTableWorkflowGroupResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2WorkflowGroupData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Update table workflow group response",
|
||
"description": "The workflow group and complete resulting table columns."
|
||
},
|
||
"UpdateTableWorkflowGroupRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"groupId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workflow group to update."
|
||
},
|
||
"workflowId": {
|
||
"description": "Replacement backing workflow identifier.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"name": {
|
||
"description": "Replacement workflow-group display name.",
|
||
"type": "string"
|
||
},
|
||
"dependencies": {
|
||
"description": "Replacement input dependencies.",
|
||
"type": "object",
|
||
"properties": {
|
||
"columns": {
|
||
"description": "Columns required as producer inputs.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"outputs": {
|
||
"description": "Replacement producer outputs.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"blockId": {
|
||
"default": "",
|
||
"description": "Workflow block producing this output.",
|
||
"type": "string"
|
||
},
|
||
"path": {
|
||
"default": "",
|
||
"description": "Path to the value in the workflow block output.",
|
||
"type": "string"
|
||
},
|
||
"outputId": {
|
||
"description": "Registry enrichment output identifier.",
|
||
"type": "string"
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Table column receiving the output."
|
||
}
|
||
},
|
||
"required": ["columnName"]
|
||
}
|
||
},
|
||
"newOutputColumns": {
|
||
"description": "Columns to add for new outputs.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Output column name."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Output column data type."
|
||
},
|
||
"required": {
|
||
"description": "Whether the output column is required.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"description": "Whether the output column must be unique.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["name", "type"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"mappingUpdates": {
|
||
"description": "Existing output-column mapping changes.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Existing output column to remap."
|
||
},
|
||
"blockId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "New workflow block producing the value."
|
||
},
|
||
"path": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "New path to the workflow output value."
|
||
}
|
||
},
|
||
"required": ["columnName", "blockId", "path"]
|
||
}
|
||
},
|
||
"inputMappings": {
|
||
"description": "Replacement workflow input mappings.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"inputName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workflow input name."
|
||
},
|
||
"columnName": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Source table column name."
|
||
}
|
||
},
|
||
"required": ["inputName", "columnName"]
|
||
}
|
||
},
|
||
"deploymentMode": {
|
||
"description": "Replacement workflow execution mode.",
|
||
"type": "string",
|
||
"enum": ["live", "deployed"]
|
||
},
|
||
"type": {
|
||
"description": "Workflow-group producer type. Must match the group's stored type — a group's producer cannot be changed after creation.",
|
||
"type": "string",
|
||
"enum": ["manual", "enrichment"]
|
||
},
|
||
"autoRun": {
|
||
"description": "Replacement automatic-run setting.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "groupId"],
|
||
"additionalProperties": false,
|
||
"title": "Update table workflow group request",
|
||
"description": "Workspace scope, workflow group identifier, and producer changes.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"groupId": "grp_5d8b2f0a6c1e4739a8b3d5f7e9c1a204",
|
||
"name": "Company profile enrichment"
|
||
}
|
||
]
|
||
},
|
||
"V2DeleteWorkflowGroupData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Identifier of the deleted workflow group."
|
||
},
|
||
"deleted": {
|
||
"type": "boolean",
|
||
"const": true,
|
||
"description": "Confirms that the workflow group was deleted."
|
||
},
|
||
"columns": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "Stable server-assigned column identifier.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Column name used as the public row-data key."
|
||
},
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["string", "number", "currency", "boolean", "date", "json", "select"],
|
||
"description": "Data type of values stored in the column."
|
||
},
|
||
"required": {
|
||
"default": false,
|
||
"description": "Whether inserts require a value for this column.",
|
||
"type": "boolean"
|
||
},
|
||
"unique": {
|
||
"default": false,
|
||
"description": "Whether values must be unique across table rows.",
|
||
"type": "boolean"
|
||
},
|
||
"workflowGroupId": {
|
||
"description": "Workflow group whose output populates this column.",
|
||
"type": "string"
|
||
},
|
||
"options": {
|
||
"description": "Options declared for a select column.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Stable select-option identifier."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 100,
|
||
"description": "Display name of the select option."
|
||
}
|
||
},
|
||
"required": ["id", "name"],
|
||
"additionalProperties": false
|
||
}
|
||
},
|
||
"multiple": {
|
||
"description": "Whether a select column accepts multiple options.",
|
||
"type": "boolean"
|
||
},
|
||
"currencyCode": {
|
||
"description": "ISO 4217 code for a currency column, normalized to uppercase.",
|
||
"type": "string",
|
||
"pattern": "^[A-Za-z]{3}$"
|
||
}
|
||
},
|
||
"required": ["name", "type", "required", "unique"],
|
||
"additionalProperties": false,
|
||
"description": "A typed column in a table schema."
|
||
},
|
||
"description": "Surviving table columns."
|
||
}
|
||
},
|
||
"required": ["id", "deleted", "columns"],
|
||
"additionalProperties": false,
|
||
"title": "Delete workflow group data",
|
||
"description": "Workflow-group deletion acknowledgement and surviving columns."
|
||
},
|
||
"V2DeleteTableWorkflowGroupResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2DeleteWorkflowGroupData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table workflow group response",
|
||
"description": "Deletion acknowledgement and surviving table columns."
|
||
},
|
||
"DeleteTableWorkflowGroupRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"groupId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Workflow group to delete."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "groupId"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table workflow group request",
|
||
"description": "Workspace scope and workflow group identifier.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"groupId": "grp_5d8b2f0a6c1e4739a8b3d5f7e9c1a204"
|
||
}
|
||
]
|
||
},
|
||
"V2RunColumnData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"dispatchId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Run dispatch ID, or null when no dispatch is available to poll. Use row reads with `includeRunState` to check cell outcomes."
|
||
}
|
||
},
|
||
"required": ["dispatchId"],
|
||
"additionalProperties": false,
|
||
"title": "Run column data",
|
||
"description": "Acknowledgement for a table column run."
|
||
},
|
||
"V2CreateTableDispatchResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2RunColumnData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table dispatch response",
|
||
"description": "Accepted background dispatch identifier."
|
||
},
|
||
"CreateTableDispatchRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"groupIds": {
|
||
"minItems": 1,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"description": "Workflow or enrichment groups to run."
|
||
},
|
||
"runMode": {
|
||
"default": "all",
|
||
"description": "Whether to run all or only incomplete cells.",
|
||
"type": "string",
|
||
"enum": ["all", "incomplete"]
|
||
},
|
||
"rowIds": {
|
||
"description": "Explicit row subset to run.",
|
||
"minItems": 1,
|
||
"maxItems": 1000000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"filter": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
"excludeRowIds": {
|
||
"description": "Rows excluded from a select-all run scope.",
|
||
"maxItems": 10000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"limit": {
|
||
"description": "Optional cap on eligible rows to run.",
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "rows",
|
||
"description": "Unit constrained by the run cap."
|
||
},
|
||
"max": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 1000000,
|
||
"description": "Maximum eligible rows to run."
|
||
}
|
||
},
|
||
"required": ["type", "max"]
|
||
}
|
||
},
|
||
"required": ["workspaceId", "groupIds"],
|
||
"additionalProperties": false,
|
||
"title": "Create table dispatch request",
|
||
"description": "Workspace scope, producer groups, execution mode, and optional row scope."
|
||
},
|
||
"V2RunRowEnrichmentResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2RunColumnData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Run row enrichment response",
|
||
"description": "Accepted background dispatch identifier."
|
||
},
|
||
"RunRowEnrichmentRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Run row enrichment request",
|
||
"description": "Workspace scope for the row enrichment.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64"
|
||
}
|
||
]
|
||
},
|
||
"V2TableRowMatch": {
|
||
"type": "object",
|
||
"properties": {
|
||
"ordinal": {
|
||
"type": "number",
|
||
"description": "Zero-based row index in the filtered and sorted view."
|
||
},
|
||
"rowId": {
|
||
"type": "string",
|
||
"description": "Identifier of the matching row."
|
||
},
|
||
"column": {
|
||
"type": "string",
|
||
"description": "Column name containing the match."
|
||
}
|
||
},
|
||
"required": ["ordinal", "rowId", "column"],
|
||
"additionalProperties": false,
|
||
"title": "Table row match",
|
||
"description": "One matching cell returned by a table row search."
|
||
},
|
||
"V2SearchRowsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"matches": {
|
||
"maxItems": 1000,
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableRowMatch"
|
||
},
|
||
"description": "Matching table cells, at most 1000."
|
||
},
|
||
"truncated": {
|
||
"type": "boolean",
|
||
"description": "Whether more than 1000 cells matched, so the list was cut."
|
||
}
|
||
},
|
||
"required": ["matches", "truncated"],
|
||
"additionalProperties": false,
|
||
"title": "Search rows data",
|
||
"description": "Matching table cells and truncation state."
|
||
},
|
||
"V2SearchTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2SearchRowsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Search table rows response",
|
||
"description": "Matching table cells and truncation state."
|
||
},
|
||
"SearchTableRowsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"q": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 200,
|
||
"description": "Case-insensitive cell substring to find."
|
||
},
|
||
"predicate": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
"sort": {
|
||
"description": "Ordered table-row sort specification.",
|
||
"maxItems": 16,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"field": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Column name to sort by."
|
||
},
|
||
"direction": {
|
||
"type": "string",
|
||
"enum": ["asc", "desc"],
|
||
"description": "Sort direction for this column."
|
||
}
|
||
},
|
||
"required": ["field", "direction"],
|
||
"additionalProperties": false
|
||
}
|
||
}
|
||
},
|
||
"required": ["workspaceId", "q"],
|
||
"additionalProperties": false,
|
||
"title": "Search table rows request",
|
||
"description": "Workspace scope, substring query, and optional predicate and sort."
|
||
},
|
||
"V2TableUploadImportSource": {
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "upload",
|
||
"description": "Upload-backed import discriminator."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 255,
|
||
"description": "CSV filename."
|
||
},
|
||
"contentType": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 255,
|
||
"description": "CSV MIME type."
|
||
},
|
||
"size": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 5368709120,
|
||
"description": "Exact CSV file size in bytes."
|
||
}
|
||
},
|
||
"required": ["type", "name", "contentType", "size"],
|
||
"additionalProperties": false,
|
||
"title": "Upload table import source",
|
||
"description": "CSV file uploaded through signed transfer instructions."
|
||
},
|
||
"V2TableImportRejectedSample": {
|
||
"type": "object",
|
||
"properties": {
|
||
"code": {
|
||
"type": "string",
|
||
"description": "CSV parser error code, e.g. CSV_QUOTE_NOT_CLOSED."
|
||
},
|
||
"line": {
|
||
"anyOf": [
|
||
{
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "1-based source line the parser had reached when it gave up, or null."
|
||
},
|
||
"message": {
|
||
"type": "string",
|
||
"description": "Parser message for the dropped record."
|
||
}
|
||
},
|
||
"required": ["code", "line", "message"],
|
||
"additionalProperties": false,
|
||
"title": "Rejected import record",
|
||
"description": "One source record a table import could not read."
|
||
},
|
||
"V2UploadBackedTableImport": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique table-import identifier."
|
||
},
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"description": "Workspace that owns the import."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"enum": ["uploading", "processing", "completed", "failed", "canceled", "expired"],
|
||
"description": "Current import lifecycle state."
|
||
},
|
||
"source": {
|
||
"description": "Uploaded CSV source for this import.",
|
||
"$ref": "#/components/schemas/V2TableUploadImportSource"
|
||
},
|
||
"target": {
|
||
"oneOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "new",
|
||
"description": "Create-new-table target discriminator."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Name of the table to create."
|
||
},
|
||
"folderPath": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["type", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "existing",
|
||
"description": "Existing-table target discriminator."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Existing target table identifier."
|
||
},
|
||
"mode": {
|
||
"type": "string",
|
||
"enum": ["append", "replace"],
|
||
"description": "Whether to append rows or replace existing rows."
|
||
}
|
||
},
|
||
"required": ["type", "tableId", "mode"],
|
||
"additionalProperties": false
|
||
}
|
||
],
|
||
"description": "New or existing table import target."
|
||
},
|
||
"tableId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Resulting or target table identifier."
|
||
},
|
||
"rowsProcessed": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Rows processed so far."
|
||
},
|
||
"rowsRejected": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Minimum number of source records dropped by parser failures. One failure can discard multiple records, such as an unterminated quote consuming the rest of the file. A non-zero value means partial import even with `completed` status; zero does not guarantee no loss."
|
||
},
|
||
"cellsRejected": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Non-empty cell values the target column type could not represent. Their rows were imported with the cell left blank."
|
||
},
|
||
"rejectedSamples": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableImportRejectedSample"
|
||
},
|
||
"description": "Bounded sample of the dropped records, for locating them in the source file."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Terminal failure reason, or null."
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 creation timestamp."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 last-update timestamp."
|
||
},
|
||
"completedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 completion timestamp, or null."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"workspaceId",
|
||
"status",
|
||
"source",
|
||
"target",
|
||
"tableId",
|
||
"rowsProcessed",
|
||
"rowsRejected",
|
||
"cellsRejected",
|
||
"rejectedSamples",
|
||
"error",
|
||
"createdAt",
|
||
"updatedAt",
|
||
"completedAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Upload-backed table import",
|
||
"description": "Table import whose CSV source is uploaded through signed transfer instructions."
|
||
},
|
||
"V2PutUploadTransfer": {
|
||
"type": "object",
|
||
"properties": {
|
||
"method": {
|
||
"type": "string",
|
||
"const": "put",
|
||
"description": "Upload strategy discriminator."
|
||
},
|
||
"url": {
|
||
"type": "string",
|
||
"format": "uri",
|
||
"description": "Signed URL to which the file bytes are uploaded. Upload bytes with `PUT` and exactly the supplied headers; never construct or modify the signed URL. Treat any `2xx` as success. Sim-hosted URLs return an empty `204` and v2 JSON errors. Object-storage URLs may return `200` or `201` and provider-specific errors, often XML."
|
||
},
|
||
"headers": {
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "string"
|
||
},
|
||
"description": "Headers that must be included with the upload request."
|
||
},
|
||
"expiresAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 expiration time for this signed URL. This is the URL's own expiry and is normally earlier than the upload session's expiresAt: the session stays open for later part, status, completion, and abort requests, but the bytes must be uploaded before this time. Once it passes, the storage provider rejects the upload and a new upload session must be created."
|
||
}
|
||
},
|
||
"required": ["method", "url", "headers", "expiresAt"],
|
||
"additionalProperties": false,
|
||
"title": "Direct upload transfer",
|
||
"description": "Instructions for uploading bytes to one signed URL."
|
||
},
|
||
"V2MultipartUploadTransfer": {
|
||
"type": "object",
|
||
"properties": {
|
||
"method": {
|
||
"type": "string",
|
||
"const": "multipart",
|
||
"description": "Upload strategy discriminator."
|
||
},
|
||
"partSize": {
|
||
"type": "integer",
|
||
"exclusiveMinimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Required size of each non-final part in bytes."
|
||
},
|
||
"partCount": {
|
||
"type": "integer",
|
||
"exclusiveMinimum": 0,
|
||
"maximum": 640,
|
||
"description": "Total number of upload parts."
|
||
}
|
||
},
|
||
"required": ["method", "partSize", "partCount"],
|
||
"additionalProperties": false,
|
||
"title": "Multipart upload transfer",
|
||
"description": "Instructions for splitting bytes into a multipart upload."
|
||
},
|
||
"V2TableWorkspaceFileImportSource": {
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "workspace_file",
|
||
"description": "Workspace-file source discriminator."
|
||
},
|
||
"fileId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Existing workspace file identifier."
|
||
}
|
||
},
|
||
"required": ["type", "fileId"],
|
||
"additionalProperties": false,
|
||
"title": "Workspace file table import source",
|
||
"description": "Existing workspace file used as a CSV import source."
|
||
},
|
||
"V2WorkspaceFileTableImport": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique table-import identifier."
|
||
},
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"description": "Workspace that owns the import."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"enum": ["uploading", "processing", "completed", "failed", "canceled", "expired"],
|
||
"description": "Current import lifecycle state."
|
||
},
|
||
"source": {
|
||
"description": "Workspace-file CSV source for this import.",
|
||
"$ref": "#/components/schemas/V2TableWorkspaceFileImportSource"
|
||
},
|
||
"target": {
|
||
"oneOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "new",
|
||
"description": "Create-new-table target discriminator."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Name of the table to create."
|
||
},
|
||
"folderPath": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["type", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "existing",
|
||
"description": "Existing-table target discriminator."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Existing target table identifier."
|
||
},
|
||
"mode": {
|
||
"type": "string",
|
||
"enum": ["append", "replace"],
|
||
"description": "Whether to append rows or replace existing rows."
|
||
}
|
||
},
|
||
"required": ["type", "tableId", "mode"],
|
||
"additionalProperties": false
|
||
}
|
||
],
|
||
"description": "New or existing table import target."
|
||
},
|
||
"tableId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Resulting or target table identifier."
|
||
},
|
||
"rowsProcessed": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Rows processed so far."
|
||
},
|
||
"rowsRejected": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Minimum number of source records dropped by parser failures. One failure can discard multiple records, such as an unterminated quote consuming the rest of the file. A non-zero value means partial import even with `completed` status; zero does not guarantee no loss."
|
||
},
|
||
"cellsRejected": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Non-empty cell values the target column type could not represent. Their rows were imported with the cell left blank."
|
||
},
|
||
"rejectedSamples": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableImportRejectedSample"
|
||
},
|
||
"description": "Bounded sample of the dropped records, for locating them in the source file."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Terminal failure reason, or null."
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 creation timestamp."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 last-update timestamp."
|
||
},
|
||
"completedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 completion timestamp, or null."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"workspaceId",
|
||
"status",
|
||
"source",
|
||
"target",
|
||
"tableId",
|
||
"rowsProcessed",
|
||
"rowsRejected",
|
||
"cellsRejected",
|
||
"rejectedSamples",
|
||
"error",
|
||
"createdAt",
|
||
"updatedAt",
|
||
"completedAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Workspace-file table import",
|
||
"description": "Table import whose CSV source is an existing workspace file."
|
||
},
|
||
"V2CreateTableImportData": {
|
||
"anyOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"session": {
|
||
"description": "Created upload-backed import session.",
|
||
"$ref": "#/components/schemas/V2UploadBackedTableImport"
|
||
},
|
||
"uploadToken": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Signed token for upload control requests."
|
||
},
|
||
"transfer": {
|
||
"oneOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2PutUploadTransfer"
|
||
},
|
||
{
|
||
"$ref": "#/components/schemas/V2MultipartUploadTransfer"
|
||
}
|
||
],
|
||
"description": "Signed CSV upload instructions."
|
||
}
|
||
},
|
||
"required": ["session", "uploadToken", "transfer"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"session": {
|
||
"description": "Created workspace-file import session.",
|
||
"$ref": "#/components/schemas/V2WorkspaceFileTableImport"
|
||
},
|
||
"uploadToken": {
|
||
"type": "null",
|
||
"description": "Always null; a workspace-file import has no upload to authorize."
|
||
},
|
||
"transfer": {
|
||
"type": "null",
|
||
"description": "Always null; a workspace-file import has no bytes to transfer."
|
||
}
|
||
},
|
||
"required": ["session", "uploadToken", "transfer"],
|
||
"additionalProperties": false
|
||
}
|
||
],
|
||
"title": "Create table import data",
|
||
"description": "Created import session and upload instructions when the source needs transfer."
|
||
},
|
||
"V2CreateTableImportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2CreateTableImportData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table import response",
|
||
"description": "The import session and upload instructions when transfer is required."
|
||
},
|
||
"CreateTableImportRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"source": {
|
||
"oneOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2TableUploadImportSource"
|
||
},
|
||
{
|
||
"$ref": "#/components/schemas/V2TableWorkspaceFileImportSource"
|
||
}
|
||
],
|
||
"description": "CSV source for the import."
|
||
},
|
||
"target": {
|
||
"oneOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "new",
|
||
"description": "Create-new-table target discriminator."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Name of the table to create."
|
||
},
|
||
"folderPath": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["type", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "existing",
|
||
"description": "Existing-table target discriminator."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Existing target table identifier."
|
||
},
|
||
"mode": {
|
||
"type": "string",
|
||
"enum": ["append", "replace"],
|
||
"description": "Whether to append rows or replace existing rows."
|
||
}
|
||
},
|
||
"required": ["type", "tableId", "mode"],
|
||
"additionalProperties": false
|
||
}
|
||
],
|
||
"description": "New or existing table import target."
|
||
},
|
||
"mapping": {
|
||
"description": "CSV headers mapped to existing table columns.",
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50
|
||
},
|
||
"additionalProperties": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"createColumns": {
|
||
"description": "CSV headers for which new columns should be created.",
|
||
"maxItems": 1000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 50
|
||
}
|
||
},
|
||
"timezone": {
|
||
"description": "IANA timezone used to interpret local date values.",
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "source", "target"],
|
||
"additionalProperties": false,
|
||
"title": "Create table import request",
|
||
"description": "Workspace, CSV source, target table, optional mapping, and timezone."
|
||
},
|
||
"V2TableImport": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique table-import identifier."
|
||
},
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"description": "Workspace that owns the import."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"enum": ["uploading", "processing", "completed", "failed", "canceled", "expired"],
|
||
"description": "Current import lifecycle state."
|
||
},
|
||
"source": {
|
||
"oneOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2TableUploadImportSource"
|
||
},
|
||
{
|
||
"$ref": "#/components/schemas/V2TableWorkspaceFileImportSource"
|
||
}
|
||
],
|
||
"description": "CSV source for the import."
|
||
},
|
||
"target": {
|
||
"oneOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "new",
|
||
"description": "Create-new-table target discriminator."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||
"description": "Name of the table to create."
|
||
},
|
||
"folderPath": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["type", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "existing",
|
||
"description": "Existing-table target discriminator."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Existing target table identifier."
|
||
},
|
||
"mode": {
|
||
"type": "string",
|
||
"enum": ["append", "replace"],
|
||
"description": "Whether to append rows or replace existing rows."
|
||
}
|
||
},
|
||
"required": ["type", "tableId", "mode"],
|
||
"additionalProperties": false
|
||
}
|
||
],
|
||
"description": "New or existing table import target."
|
||
},
|
||
"tableId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Resulting or target table identifier."
|
||
},
|
||
"rowsProcessed": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Rows processed so far."
|
||
},
|
||
"rowsRejected": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Minimum number of source records dropped by parser failures. One failure can discard multiple records, such as an unterminated quote consuming the rest of the file. A non-zero value means partial import even with `completed` status; zero does not guarantee no loss."
|
||
},
|
||
"cellsRejected": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Non-empty cell values the target column type could not represent. Their rows were imported with the cell left blank."
|
||
},
|
||
"rejectedSamples": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableImportRejectedSample"
|
||
},
|
||
"description": "Bounded sample of the dropped records, for locating them in the source file."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Terminal failure reason, or null."
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 creation timestamp."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 last-update timestamp."
|
||
},
|
||
"completedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 completion timestamp, or null."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"workspaceId",
|
||
"status",
|
||
"source",
|
||
"target",
|
||
"tableId",
|
||
"rowsProcessed",
|
||
"rowsRejected",
|
||
"cellsRejected",
|
||
"rejectedSamples",
|
||
"error",
|
||
"createdAt",
|
||
"updatedAt",
|
||
"completedAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Table import",
|
||
"description": "Durable CSV table-import lifecycle resource."
|
||
},
|
||
"V2TableImportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableImport"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table import response",
|
||
"description": "A durable table-import lifecycle resource."
|
||
},
|
||
"V2CancelTableImportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableImport"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Cancel table import response",
|
||
"description": "The canceled table-import lifecycle resource."
|
||
},
|
||
"V2UploadPartUrl": {
|
||
"type": "object",
|
||
"properties": {
|
||
"partNumber": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 9007199254740991,
|
||
"description": "Multipart part number."
|
||
},
|
||
"url": {
|
||
"type": "string",
|
||
"format": "uri",
|
||
"description": "Signed URL for this upload part. Upload bytes with `PUT` and exactly the supplied headers; never construct or modify the signed URL. Treat any `2xx` as success. Sim-hosted URLs return an empty `204` and v2 JSON errors. Object-storage URLs may return `200` or `201` and provider-specific errors, often XML. Do not retain part `ETag` values; after every part succeeds, call the completion endpoint without a request body."
|
||
},
|
||
"headers": {
|
||
"type": "object",
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"additionalProperties": {
|
||
"type": "string"
|
||
},
|
||
"description": "Headers that must be included with the part upload."
|
||
},
|
||
"expiresAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 expiration time for the signed URL."
|
||
}
|
||
},
|
||
"required": ["partNumber", "url", "headers", "expiresAt"],
|
||
"additionalProperties": false,
|
||
"title": "Upload part URL",
|
||
"description": "A signed URL and required headers for one multipart upload part."
|
||
},
|
||
"V2PartUrlsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"parts": {
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2UploadPartUrl"
|
||
},
|
||
"description": "Signed URLs for requested parts."
|
||
}
|
||
},
|
||
"required": ["parts"],
|
||
"additionalProperties": false,
|
||
"title": "Upload part URLs",
|
||
"description": "Signed transfer URLs for the requested multipart upload parts."
|
||
},
|
||
"V2CreateTableImportPartUrlsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2PartUrlsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table import part URLs response",
|
||
"description": "Signed URLs and required headers for each requested upload part."
|
||
},
|
||
"CreateTableImportPartUrlsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"partNumbers": {
|
||
"minItems": 1,
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 9007199254740991
|
||
},
|
||
"description": "Multipart part numbers for which signed URLs should be created."
|
||
}
|
||
},
|
||
"required": ["partNumbers"],
|
||
"additionalProperties": false,
|
||
"title": "Create table import part URLs request",
|
||
"description": "Multipart part numbers for which signed URLs should be created.",
|
||
"examples": [
|
||
{
|
||
"partNumbers": [1, 2, 3]
|
||
}
|
||
]
|
||
},
|
||
"V2CompleteTableImportUploadResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableImport"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Complete table import upload response",
|
||
"description": "The import lifecycle resource after processing is queued."
|
||
},
|
||
"V2TableExport": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique table-export identifier."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"description": "Exported table identifier."
|
||
},
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"description": "Workspace that owns the export."
|
||
},
|
||
"format": {
|
||
"type": "string",
|
||
"enum": ["csv", "json"],
|
||
"description": "Export file format."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"enum": ["queued", "processing", "completed", "failed", "canceled"],
|
||
"description": "Current export lifecycle state."
|
||
},
|
||
"rowsProcessed": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Rows exported so far."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Terminal failure reason, or null."
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 creation timestamp."
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 last-update timestamp."
|
||
},
|
||
"completedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 completion timestamp, or null."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"tableId",
|
||
"workspaceId",
|
||
"format",
|
||
"status",
|
||
"rowsProcessed",
|
||
"error",
|
||
"createdAt",
|
||
"updatedAt",
|
||
"completedAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Table export",
|
||
"description": "Durable asynchronous table-export lifecycle resource."
|
||
},
|
||
"V2CreateTableExportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableExport"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table export response",
|
||
"description": "The created durable table-export lifecycle resource."
|
||
},
|
||
"CreateTableExportRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"format": {
|
||
"default": "csv",
|
||
"description": "Export file format.",
|
||
"type": "string",
|
||
"enum": ["csv", "json"]
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Create table export request",
|
||
"description": "Workspace scope and export format.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"format": "csv"
|
||
}
|
||
]
|
||
},
|
||
"V2TableExportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableExport"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table export response",
|
||
"description": "A durable table-export lifecycle resource."
|
||
},
|
||
"V2CancelTableExportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableExport"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Cancel table export response",
|
||
"description": "The canceled durable table-export lifecycle resource."
|
||
},
|
||
"V2TableExportDownloadData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"format": "uri",
|
||
"description": "Short-lived signed download URL."
|
||
},
|
||
"fileName": {
|
||
"type": "string",
|
||
"description": "Suggested export filename."
|
||
},
|
||
"expiresAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 URL expiration timestamp."
|
||
}
|
||
},
|
||
"required": ["url", "fileName", "expiresAt"],
|
||
"additionalProperties": false,
|
||
"title": "Table export download data",
|
||
"description": "Signed URL and filename for a completed table export."
|
||
},
|
||
"V2DownloadTableExportResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableExportDownloadData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Download table export response",
|
||
"description": "Short-lived signed URL, filename, and expiration timestamp."
|
||
},
|
||
"V2CancelTableRunsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"cancelled": {
|
||
"type": "number",
|
||
"description": "Number of cell runs canceled."
|
||
}
|
||
},
|
||
"required": ["cancelled"],
|
||
"additionalProperties": false,
|
||
"title": "Cancel table runs data",
|
||
"description": "Result of canceling in-flight table cell runs."
|
||
},
|
||
"V2CancelTableRunsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2CancelTableRunsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Cancel table runs response",
|
||
"description": "Count of canceled table cell runs."
|
||
},
|
||
"CancelTableRunsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
},
|
||
"scope": {
|
||
"type": "string",
|
||
"enum": ["all", "row"],
|
||
"description": "Whether to cancel across the table or one row."
|
||
},
|
||
"rowId": {
|
||
"description": "Row whose runs should be canceled for row scope.",
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"filter": {
|
||
"$ref": "#/components/schemas/TablePredicateInput"
|
||
},
|
||
"excludeRowIds": {
|
||
"description": "Rows excluded from an all-scope cancellation.",
|
||
"maxItems": 10000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
},
|
||
"required": ["workspaceId", "scope"],
|
||
"additionalProperties": false,
|
||
"title": "Cancel table runs request",
|
||
"description": "Workspace scope, row or all-table cancellation, and optional row predicate or exclusions."
|
||
},
|
||
"V2Folder": {
|
||
"type": "object",
|
||
"properties": {
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Folder name."
|
||
},
|
||
"path": {
|
||
"type": "string",
|
||
"title": "Non-root folder path",
|
||
"description": "Canonical folder path used as the public folder identifier.",
|
||
"maxLength": 4096
|
||
},
|
||
"parentPath": {
|
||
"type": "string",
|
||
"title": "Folder path",
|
||
"description": "Canonical parent path; `/` is the root.",
|
||
"maxLength": 4096
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"description": "ISO 8601 timestamp when the folder was created.",
|
||
"format": "date-time"
|
||
},
|
||
"updatedAt": {
|
||
"type": "string",
|
||
"description": "ISO 8601 timestamp when the folder was last updated.",
|
||
"format": "date-time"
|
||
}
|
||
},
|
||
"required": ["name", "path", "parentPath", "createdAt", "updatedAt"],
|
||
"additionalProperties": false,
|
||
"title": "Folder",
|
||
"description": "A canonical workspace folder."
|
||
},
|
||
"V2TableFolderListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2Folder"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Always `null`. This list has no `cursor` or `limit` parameters; see the operation for inventory limits."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Table folder list response",
|
||
"description": "A cursor envelope containing table folders."
|
||
},
|
||
"V2CreateTableFolderResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2Folder"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Create table folder response",
|
||
"description": "The created table folder."
|
||
},
|
||
"NonRootFolderPathInput": {
|
||
"title": "Non-root folder path input",
|
||
"description": "Non-root folder path. A missing leading slash is normalized before validation. Segments are percent-encoded, so a folder shown as \"New folder\" is `/New%20folder`: everything outside `A-Z a-z 0-9 - _ . ~` is escaped as uppercase hex, and only that exact encoding is accepted. A trailing slash, an empty segment, and a literal `.` or `..` segment are rejected. At most 64 segments and 4096 encoded bytes.",
|
||
"maxLength": 4096,
|
||
"type": "string"
|
||
},
|
||
"CreateTableFolderRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace in which to create the folder."
|
||
},
|
||
"path": {
|
||
"description": "Path of the folder to create.",
|
||
"$ref": "#/components/schemas/NonRootFolderPathInput"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "path"],
|
||
"additionalProperties": false,
|
||
"title": "Create table folder request",
|
||
"description": "Workspace scope and canonical folder path to create."
|
||
},
|
||
"V2RelocateTableFolderResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2Folder"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Relocate table folder response",
|
||
"description": "The relocated table folder."
|
||
},
|
||
"RelocateTableFolderRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace containing the folder."
|
||
},
|
||
"path": {
|
||
"description": "Current folder path.",
|
||
"$ref": "#/components/schemas/NonRootFolderPathInput"
|
||
},
|
||
"destinationPath": {
|
||
"description": "Where the folder lands, with `mv` semantics. A path naming an existing folder receives the source as a child under its current name; `/` moves it to the workspace root under its current name; any other path becomes the folder’s new full path (a rename, a relocation, or both).",
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "path", "destinationPath"],
|
||
"additionalProperties": false,
|
||
"title": "Relocate table folder request",
|
||
"description": "Workspace scope, current canonical path, and destination path."
|
||
},
|
||
"V2DeleteTableFolderData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"path": {
|
||
"type": "string",
|
||
"title": "Folder path",
|
||
"description": "Canonical path of the deleted folder.",
|
||
"maxLength": 4096
|
||
},
|
||
"deleted": {
|
||
"type": "boolean",
|
||
"const": true,
|
||
"description": "Confirms that the folder was deleted."
|
||
},
|
||
"deletedItems": {
|
||
"type": "object",
|
||
"properties": {
|
||
"folders": {
|
||
"type": "integer",
|
||
"minimum": -9007199254740991,
|
||
"maximum": 9007199254740991,
|
||
"description": "Number of deleted folders."
|
||
},
|
||
"tables": {
|
||
"type": "integer",
|
||
"minimum": -9007199254740991,
|
||
"maximum": 9007199254740991,
|
||
"description": "Number of deleted tables."
|
||
}
|
||
},
|
||
"required": ["folders", "tables"],
|
||
"additionalProperties": false,
|
||
"description": "Deleted resource counts."
|
||
}
|
||
},
|
||
"required": ["path", "deleted", "deletedItems"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table folder data",
|
||
"description": "Folder deletion acknowledgement and deleted-resource counts."
|
||
},
|
||
"V2DeleteTableFolderResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2DeleteTableFolderData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Delete table folder response",
|
||
"description": "Folder deletion acknowledgement and deleted resource counts."
|
||
},
|
||
"V2TableFolderRestore": {
|
||
"type": "object",
|
||
"properties": {
|
||
"folder": {
|
||
"description": "The restored folder, at the path it actually landed on — which is not always the path requested.",
|
||
"$ref": "#/components/schemas/V2Folder"
|
||
},
|
||
"restoredItems": {
|
||
"type": "object",
|
||
"properties": {
|
||
"folders": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Folders restored, including the one addressed."
|
||
},
|
||
"tables": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Tables restored inside the folder tree."
|
||
}
|
||
},
|
||
"required": ["folders", "tables"],
|
||
"additionalProperties": false,
|
||
"description": "What the restore brought back."
|
||
}
|
||
},
|
||
"required": ["folder", "restoredItems"],
|
||
"additionalProperties": false,
|
||
"title": "Table folder restore result",
|
||
"description": "The restored folder and the counts of items it brought back."
|
||
},
|
||
"V2RestoreTableFolderResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableFolderRestore"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Restore table folder response",
|
||
"description": "The restored table folder and the counts of items it brought back."
|
||
},
|
||
"RestoreTableFolderRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the archived folder."
|
||
},
|
||
"path": {
|
||
"description": "Path the folder held when a folder delete archived it.",
|
||
"$ref": "#/components/schemas/NonRootFolderPathInput"
|
||
}
|
||
},
|
||
"required": ["workspaceId", "path"],
|
||
"additionalProperties": false,
|
||
"title": "Restore table folder request",
|
||
"description": "Workspace scope and the canonical path the archived folder held."
|
||
},
|
||
"V2RestoreTableResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2ApiTable"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Restore table response",
|
||
"description": "The restored table."
|
||
},
|
||
"RestoreTableRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Unique workspace identifier."
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Restore table request",
|
||
"description": "Workspace scope for the archived table.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64"
|
||
}
|
||
]
|
||
},
|
||
"V2BulkUpdateRowsData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"updatedCount": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Number of rows the batch updated."
|
||
},
|
||
"updatedRowIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"description": "Identifiers of the rows the batch updated."
|
||
}
|
||
},
|
||
"required": ["updatedCount", "updatedRowIds"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk update rows data",
|
||
"description": "Rows affected by a heterogeneous bulk update."
|
||
},
|
||
"V2BulkUpdateTableRowsResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2BulkUpdateRowsData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk update table rows response",
|
||
"description": "Updated row count and identifiers."
|
||
},
|
||
"BulkUpdateTableRowsRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns the table."
|
||
},
|
||
"updates": {
|
||
"minItems": 1,
|
||
"maxItems": 1000,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"rowId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "Identifier of the row this patch applies to."
|
||
},
|
||
"data": {
|
||
"description": "Cells to merge into this row, keyed by column name.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
}
|
||
},
|
||
"required": ["rowId", "data"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "One merge patch per row. Each row identifier may appear at most once."
|
||
}
|
||
},
|
||
"required": ["workspaceId", "updates"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk update table rows request",
|
||
"description": "Workspace scope and one merge patch per row.",
|
||
"examples": [
|
||
{
|
||
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
|
||
"updates": [
|
||
{
|
||
"rowId": "row_1f3e5d7c9b8a4c2d806e4a6b8d0f2e93",
|
||
"data": {
|
||
"status": "active"
|
||
}
|
||
},
|
||
{
|
||
"rowId": "row_2b4d6f8a0c1e3759b8d0f2a4c6e80193",
|
||
"data": {
|
||
"status": "churned"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"V2EnrichmentRunDetail": {
|
||
"type": "object",
|
||
"properties": {
|
||
"startedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 timestamp when the cascade started, or null when not recorded."
|
||
},
|
||
"completedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 timestamp when the cascade finished, or null when not recorded."
|
||
},
|
||
"durationMs": {
|
||
"type": "number",
|
||
"description": "Wall-clock milliseconds across the whole cascade; zero when not recorded."
|
||
},
|
||
"totalCost": {
|
||
"type": "number",
|
||
"description": "Sum of per-provider hosted-key cost in USD; zero when not recorded."
|
||
},
|
||
"matchedProvider": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Provider that produced the match, or null when none did."
|
||
},
|
||
"aborted": {
|
||
"type": "boolean",
|
||
"description": "True when the run was canceled before it settled."
|
||
},
|
||
"providers": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2EnrichmentProviderOutcome"
|
||
},
|
||
"description": "Every configured provider, in cascade order, including those that never ran."
|
||
}
|
||
},
|
||
"required": [
|
||
"startedAt",
|
||
"completedAt",
|
||
"durationMs",
|
||
"totalCost",
|
||
"matchedProvider",
|
||
"aborted",
|
||
"providers"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Enrichment run detail",
|
||
"description": "Provider cascade, cost, and timing for one enrichment cell."
|
||
},
|
||
"V2EnrichmentProviderOutcome": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Provider identifier, e.g. `hunter`."
|
||
},
|
||
"label": {
|
||
"type": "string",
|
||
"description": "Human-readable provider name."
|
||
},
|
||
"toolId": {
|
||
"type": "string",
|
||
"description": "Sim tool identifier the provider ran."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"description": "Provider outcome: `matched`, `no_match`, `skipped`, `error`, or `not_run`. Handle unrecognized values, since additional statuses may be returned."
|
||
},
|
||
"cost": {
|
||
"type": "number",
|
||
"description": "Hosted-key cost in USD this provider incurred; zero when Sim did not bill it."
|
||
},
|
||
"durationMs": {
|
||
"type": "number",
|
||
"description": "Wall-clock milliseconds this provider took; zero if skipped."
|
||
},
|
||
"error": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Failure reason when `status` is `error`, else null."
|
||
}
|
||
},
|
||
"required": ["id", "label", "toolId", "status", "cost", "durationMs", "error"],
|
||
"additionalProperties": false,
|
||
"title": "Enrichment provider outcome",
|
||
"description": "One provider's result within an enrichment cascade."
|
||
},
|
||
"V2RowGroupEnrichment": {
|
||
"type": "object",
|
||
"properties": {
|
||
"groupId": {
|
||
"type": "string",
|
||
"description": "Workflow or enrichment group this answers for."
|
||
},
|
||
"runState": {
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2TableRowRunState"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Most recent run of this group on this row — the same shape `includeRunState` reports — or null when the group has never run for the row."
|
||
},
|
||
"outputs": {
|
||
"description": "The group's output cells keyed by column name. A column the run has not populated is null.",
|
||
"$ref": "#/components/schemas/V2TableRowData"
|
||
},
|
||
"cascade": {
|
||
"anyOf": [
|
||
{
|
||
"$ref": "#/components/schemas/V2EnrichmentRunDetail"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Provider cascade behind the cell, or null when none was recorded — a manual workflow group, a group that has not run, or a run predating the breakdown."
|
||
}
|
||
},
|
||
"required": ["groupId", "runState", "outputs", "cascade"],
|
||
"additionalProperties": false,
|
||
"title": "Row group enrichment",
|
||
"description": "Run state, output cells, and provider cascade for one group on one row."
|
||
},
|
||
"V2RowEnrichmentResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2RowGroupEnrichment"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Row enrichment response",
|
||
"description": "Run state, output cells, and provider cascade for one group on one row."
|
||
},
|
||
"V2TableRunDispatch": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Unique dispatch identifier."
|
||
},
|
||
"tableId": {
|
||
"type": "string",
|
||
"description": "Table the dispatch runs against."
|
||
},
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"description": "Workspace that owns the dispatch."
|
||
},
|
||
"status": {
|
||
"type": "string",
|
||
"enum": ["pending", "dispatching", "complete", "canceled"],
|
||
"description": "Current dispatch lifecycle state."
|
||
},
|
||
"mode": {
|
||
"type": "string",
|
||
"enum": ["all", "incomplete", "new"],
|
||
"description": "Which cells the dispatch targets: `all` re-runs settled cells, `incomplete` skips them, `new` covers only cells that have never run."
|
||
},
|
||
"scope": {
|
||
"type": "object",
|
||
"properties": {
|
||
"groupIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"description": "Workflow groups the dispatch runs."
|
||
},
|
||
"rowIds": {
|
||
"description": "Explicit rows the dispatch targets. Absent means it was given no row list and walks every eligible row, narrowed by `filtered` and `excludeRowIds` when either is present.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"filtered": {
|
||
"description": "Present and true when a stored filter narrows which rows run. The filter itself is not published: it is held compiled, in a different grammar from the predicate the request was written in. Absent means no filter narrows the dispatch — which, with no `rowIds` and no `excludeRowIds`, is what means every eligible row.",
|
||
"type": "boolean"
|
||
},
|
||
"excludeRowIds": {
|
||
"description": "Rows the walk skips. Independent of `filtered`: a dispatch may exclude rows from a filtered set or from every eligible row. Never present alongside `rowIds`, which the run rejects and the walk would ignore.",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"required": ["groupIds"],
|
||
"additionalProperties": false,
|
||
"description": "What the dispatch was asked to run."
|
||
},
|
||
"limit": {
|
||
"anyOf": [
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"const": "rows",
|
||
"description": "Unit the cap counts."
|
||
},
|
||
"max": {
|
||
"type": "integer",
|
||
"exclusiveMinimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Hard ceiling in units of `type`."
|
||
}
|
||
},
|
||
"required": ["type", "max"],
|
||
"additionalProperties": false
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Cap on how much work the dispatch does, or null when unbounded."
|
||
},
|
||
"processedCount": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 9007199254740991,
|
||
"description": "Units of `limit.type` consumed so far."
|
||
},
|
||
"isManualRun": {
|
||
"type": "boolean",
|
||
"description": "True when a caller started the run, false for an automatic re-fire."
|
||
},
|
||
"requestedAt": {
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
||
"description": "ISO 8601 timestamp when the dispatch was created."
|
||
},
|
||
"completedAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 timestamp when the dispatch completed, or null."
|
||
},
|
||
"canceledAt": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string",
|
||
"format": "date-time",
|
||
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "ISO 8601 timestamp when the dispatch was canceled, or null."
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"tableId",
|
||
"workspaceId",
|
||
"status",
|
||
"mode",
|
||
"scope",
|
||
"limit",
|
||
"processedCount",
|
||
"isManualRun",
|
||
"requestedAt",
|
||
"completedAt",
|
||
"canceledAt"
|
||
],
|
||
"additionalProperties": false,
|
||
"title": "Table run dispatch",
|
||
"description": "Lifecycle state of one table workflow-column run dispatch."
|
||
},
|
||
"V2TableRunDispatchResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableRunDispatch"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Table run dispatch response",
|
||
"description": "A single table run dispatch."
|
||
},
|
||
"V2CancelTableDispatchResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2TableRunDispatch"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Cancel table dispatch response",
|
||
"description": "The dispatch in its post-cancellation state."
|
||
},
|
||
"V2TableRunDispatchListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/V2TableRunDispatch"
|
||
},
|
||
"description": "Items in the current page."
|
||
},
|
||
"nextCursor": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Always `null`. This list has no `cursor` or `limit` parameters; see the operation for inventory limits."
|
||
}
|
||
},
|
||
"required": ["data", "nextCursor"],
|
||
"additionalProperties": false,
|
||
"title": "Table run dispatch list response",
|
||
"description": "The table's most recent run dispatches, settled ones included."
|
||
},
|
||
"V2MoveTablesData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"moved": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name, or the folder path for a folder."
|
||
}
|
||
},
|
||
"required": ["kind", "id", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Items the batch moved."
|
||
},
|
||
"skipped": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name, or the folder path for a folder."
|
||
}
|
||
},
|
||
"required": ["kind", "id", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Items dropped because a selected folder already carries them."
|
||
},
|
||
"notFound": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
}
|
||
},
|
||
"required": ["kind", "id"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Entries nothing active resolved to."
|
||
},
|
||
"failed": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name, or the folder path for a folder."
|
||
},
|
||
"reason": {
|
||
"type": "string",
|
||
"description": "Why this item could not be acted on."
|
||
}
|
||
},
|
||
"required": ["kind", "id", "name", "reason"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Items the batch could not move."
|
||
}
|
||
},
|
||
"required": ["moved", "skipped", "notFound", "failed"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk move tables data",
|
||
"description": "Per-item outcome of a bulk table and folder move."
|
||
},
|
||
"V2MoveTablesResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2MoveTablesData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk move tables response",
|
||
"description": "Per-item outcome of a bulk table and folder move."
|
||
},
|
||
"BulkMoveTablesRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns every selected item."
|
||
},
|
||
"tableIds": {
|
||
"default": [],
|
||
"description": "Tables to move, by identifier.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"folderPaths": {
|
||
"description": "Table folders to re-parent, by canonical path.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"targetFolderPath": {
|
||
"description": "Destination folder path. Omit to move the selection to the workspace root.",
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk move tables request",
|
||
"description": "Workspace scope, the tables and folder paths to move, and the destination folder path."
|
||
},
|
||
"V2BulkDeleteTablesData": {
|
||
"type": "object",
|
||
"properties": {
|
||
"deleted": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name, or the folder path for a folder."
|
||
}
|
||
},
|
||
"required": ["kind", "id", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Items the batch archived or deleted."
|
||
},
|
||
"skipped": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name, or the folder path for a folder."
|
||
}
|
||
},
|
||
"required": ["kind", "id", "name"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Items dropped because a selected folder already carries them."
|
||
},
|
||
"notFound": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
}
|
||
},
|
||
"required": ["kind", "id"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Entries nothing active resolved to."
|
||
},
|
||
"failed": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"kind": {
|
||
"type": "string",
|
||
"enum": ["table", "folder"],
|
||
"description": "Which kind of item this entry names."
|
||
},
|
||
"id": {
|
||
"type": "string",
|
||
"description": "Table identifier, or the folder path for a folder."
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Table name, or the folder path for a folder."
|
||
},
|
||
"reason": {
|
||
"type": "string",
|
||
"description": "Why this item could not be acted on."
|
||
}
|
||
},
|
||
"required": ["kind", "id", "name", "reason"],
|
||
"additionalProperties": false
|
||
},
|
||
"description": "Items the batch could not delete."
|
||
},
|
||
"deletedItems": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tables": {
|
||
"type": "integer",
|
||
"minimum": -9007199254740991,
|
||
"maximum": 9007199254740991,
|
||
"description": "Tables archived, including folder cascades."
|
||
},
|
||
"folders": {
|
||
"type": "integer",
|
||
"minimum": -9007199254740991,
|
||
"maximum": 9007199254740991,
|
||
"description": "Folders deleted, including nested folders."
|
||
}
|
||
},
|
||
"required": ["tables", "folders"],
|
||
"additionalProperties": false,
|
||
"description": "Totals across the explicit archives and every folder cascade they triggered."
|
||
}
|
||
},
|
||
"required": ["deleted", "skipped", "notFound", "failed", "deletedItems"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk delete tables data",
|
||
"description": "Per-item outcome of a bulk table and folder delete."
|
||
},
|
||
"V2BulkDeleteTablesResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"description": "Response data.",
|
||
"$ref": "#/components/schemas/V2BulkDeleteTablesData"
|
||
}
|
||
},
|
||
"required": ["data"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk delete tables response",
|
||
"description": "Per-item outcome of a bulk table and folder delete.",
|
||
"examples": [
|
||
{
|
||
"data": {
|
||
"deleted": [
|
||
{
|
||
"kind": "table",
|
||
"id": "tbl_7c9e6679742540de944be07fc1f90ae7",
|
||
"name": "Leads"
|
||
},
|
||
{
|
||
"kind": "folder",
|
||
"id": "/Sales/Archive",
|
||
"name": "/Sales/Archive"
|
||
}
|
||
],
|
||
"skipped": [],
|
||
"notFound": [],
|
||
"failed": [],
|
||
"deletedItems": {
|
||
"tables": 1,
|
||
"folders": 1
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"BulkDeleteTablesRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"workspaceId": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"maxLength": 128,
|
||
"description": "Workspace that owns every selected item."
|
||
},
|
||
"tableIds": {
|
||
"default": [],
|
||
"description": "Tables to archive, by identifier.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"folderPaths": {
|
||
"description": "Table folders to delete, by canonical path. Each cascades to everything inside it.",
|
||
"maxItems": 100,
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/components/schemas/FolderPathInput"
|
||
}
|
||
}
|
||
},
|
||
"required": ["workspaceId"],
|
||
"additionalProperties": false,
|
||
"title": "Bulk delete tables request",
|
||
"description": "Workspace scope, and the tables and folder paths to delete."
|
||
}
|
||
}
|
||
},
|
||
"x-generated-by": "scripts/generate-openapi.ts"
|
||
}
|