Records
9 operations, generated from the OpenAPI document.
Live records, oldest first, keyset-paged
GET /api/tables/{tableId}/records
Access: record:read on the table (see ACTIONS for the minimum role); personal access tokens need data.records:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
limit | query | integer | no |
cursor | query | string (uuid) | no |
Responses
200Successrecordsarray of object requiredidstring (uuid) requiredtableIdstring (uuid) requiredversioninteger requiredfieldsobject requiredcreatedAtstring (date-time) requiredcreatedBystring (uuid) | null requiredupdatedAtstring (date-time) requiredupdatedBystring (uuid) | null required
nextCursorstring (uuid) | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Create one record ({ fields }) or up to 1,000 ({ records })
POST /api/tables/{tableId}/records
Access: record:create on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
object
Responses
201Successobject401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Patch up to 1,000 records in one transaction
PATCH /api/tables/{tableId}/records
Access: record:update on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
recordsarray of object requiredidstring (uuid) requiredfieldsobject requiredifVersioninteger
clientOpIdstringtypecastboolean
Responses
200Successrecordsarray of object requiredidstring (uuid) requiredtableIdstring (uuid) requiredversioninteger requiredfieldsobject requiredcreatedAtstring (date-time) requiredcreatedBystring (uuid) | null requiredupdatedAtstring (date-time) requiredupdatedBystring (uuid) | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Filter, sort, group, page and aggregate records (a view query)
POST /api/tables/{tableId}/records/query
Access: record:read on the table (see ACTIONS for the minimum role); personal access tokens need data.records:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
viewIdstring (uuid)queryobjectfilterobjectconjunction"and" | "or"conditionsarray of object required
sortsarray of objectfieldIdstring (uuid) requireddirection"asc" | "desc"
groupByarray of objectfieldIdstring (uuid) requireddirection"asc" | "desc"
fieldsarray of string (uuid)searchstringtimeZonestringwithinarray of objectfieldIdstring (uuid) requiredoperator"is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty" | "=" | "!=" | … requiredvalueany
dateRangeobjectfromstring requiredtostring requiredfieldsarray of object requiredstartFieldIdstring (uuid) requiredendFieldIdstring (uuid) | null
offsetintegerlimitintegercursorstringcountbooleangroupsbooleanaggregatesarray of objectfieldIdstring (uuid) requiredfn"count" | "empty" | "filled" | "unique" | "sum" | "avg" | "min" | "max" required
rowColorsarray of objectcolor"green" | "amber" | "blue" | "red" | "violet" | "teal" | "pink" | "slate" | … requiredfilterobject requiredconjunction"and" | "or"conditionsarray of object required
Responses
200Successrecordsarray of object requiredidstring (uuid) requiredtableIdstring (uuid) requiredversioninteger requiredfieldsobject requiredcreatedAtstring (date-time) requiredcreatedBystring (uuid) | null requiredupdatedAtstring (date-time) requiredupdatedBystring (uuid) | null required
offsetinteger | null requiredtotalinteger | null requirednextCursorstring | null requiredgroupsarray of objectkeyarray of any requiredcountinteger required
aggregatesobjectrowColorsobject
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Move up to 1,000 records to the trash
POST /api/tables/{tableId}/records/delete
Access: record:delete on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
recordIdsarray of string (uuid) requiredclientOpIdstring
Responses
200Successrecordsarray of object requiredidstring (uuid) requireddeletedtrue required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Restore up to 1,000 records from the trash
POST /api/tables/{tableId}/records/restore
Access: record:delete on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
recordIdsarray of string (uuid) requiredclientOpIdstring
Responses
200Successrecordsarray of object requiredidstring (uuid) requiredtableIdstring (uuid) requiredversioninteger requiredfieldsobject requiredcreatedAtstring (date-time) requiredcreatedBystring (uuid) | null requiredupdatedAtstring (date-time) requiredupdatedBystring (uuid) | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Read a record
GET /api/tables/{tableId}/records/{recordId}
Access: record:read on the table (see ACTIONS for the minimum role); personal access tokens need data.records:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
recordId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredtableIdstring (uuid) requiredversioninteger requiredfieldsobject requiredcreatedAtstring (date-time) requiredcreatedBystring (uuid) | null requiredupdatedAtstring (date-time) requiredupdatedBystring (uuid) | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Patch the given cells of a record
PATCH /api/tables/{tableId}/records/{recordId}
Access: record:update on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
recordId | path | string (uuid) | yes |
Request body
fieldsobject requiredifVersionintegerclientOpIdstringtypecastboolean
Responses
200Successidstring (uuid) requiredtableIdstring (uuid) requiredversioninteger requiredfieldsobject requiredcreatedAtstring (date-time) requiredcreatedBystring (uuid) | null requiredupdatedAtstring (date-time) requiredupdatedBystring (uuid) | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Move a record to the trash
DELETE /api/tables/{tableId}/records/{recordId}
Access: record:delete on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
recordId | path | string (uuid) | yes |
Responses
204Success, no content401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)