Trash
11 operations, generated from the OpenAPI document.
Bases of a workspace in the trash (creators and up)
GET /api/workspaces/{workspaceId}/trash
Access: workspace:read_trash on the workspace (see ACTIONS for the minimum role); personal access tokens need schema.bases:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
workspaceId | path | string | yes |
Responses
200Successbasesarray of object requiredidstring (uuid) requirednamestring requireddeletedAtstring (date-time) requireddeletedBystring (uuid) | null requiredpurgeAfterstring (date-time) 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)
Restore a base from the trash
POST /api/workspaces/{workspaceId}/trash/bases/{trashedBaseId}/restore
Access: base:restore on the workspace (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
workspaceId | path | string | yes |
trashedBaseId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredworkspaceIdstring (uuid) requirednamestring requireddescriptionstring | null requirediconstring | null requiredcolorstring | null requiredrole"owner" | "creator" | "editor" | "commenter" | "read_only" requiredcreatedAtstring (date-time) requiredupdatedAtstring (date-time) 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)
Delete a base in the trash permanently, with everything in it
DELETE /api/workspaces/{workspaceId}/trash/bases/{trashedBaseId}
Access: base:purge on the workspace (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
workspaceId | path | string | yes |
trashedBaseId | 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)
A base's deleted tables, and the deleted fields and views of its tables (editors and up)
GET /api/bases/{baseId}/trash
Access: base:read_trash on the base (see ACTIONS for the minimum role); personal access tokens need schema.bases:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Responses
200Successtablesarray of object requiredidstring (uuid) requirednamestring requireddeletedAtstring (date-time) requireddeletedBystring (uuid) | null requiredpurgeAfterstring (date-time) required
fieldsarray of object requiredidstring (uuid) requirednamestring requireddeletedAtstring (date-time) requireddeletedBystring (uuid) | null requiredpurgeAfterstring (date-time) requiredtableIdstring (uuid) requiredtableNamestring requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredinverseobject | null requiredidstring (uuid) requirednamestring requiredtableNamestring required
viewsarray of object requiredidstring (uuid) requirednamestring requireddeletedAtstring (date-time) requireddeletedBystring (uuid) | null requiredpurgeAfterstring (date-time) requiredtableIdstring (uuid) requiredtableNamestring requiredtypestring requiredpersonalboolean 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)
Restore a table from the trash, with the link fields deleted with it
POST /api/bases/{baseId}/trash/tables/{trashedTableId}/restore
Access: table:restore on the base (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
trashedTableId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requirednamestring requireddescriptionstring | null requirediconstring | null requiredpositionnumber requiredschemaVersioninteger requiredpermissionsobjectaddRecordsobject requireddeleteRecordsobject requirededitRecordsobject required
fieldsarray of object requiredidstring (uuid) requiredtableIdstring (uuid) requirednamestring requireddescriptionstring | null requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredoptionsany requiredisPrimaryboolean requiredpositionnumber requiredpermissionsobjecteditobject requiredallowFormsboolean
createdAtstring (date-time) requiredupdatedAtstring (date-time) requireddeletedAtstring (date-time) | null requiredrecomputingtruesyncedtrue
syncedtruecreatedAtstring (date-time) requiredupdatedAtstring (date-time) 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)
Delete a table in the trash permanently, with its records and links
DELETE /api/bases/{baseId}/trash/tables/{trashedTableId}
Access: table:purge on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
trashedTableId | 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)
Delete a field in the trash permanently, with its values (and a link pair)
DELETE /api/tables/{tableId}/trash/fields/{trashedFieldId}
Access: field:purge on the table (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
trashedFieldId | 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)
Restore a view from the trash
POST /api/tables/{tableId}/trash/views/{trashedViewId}/restore
Access: view:restore on the table (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
trashedViewId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredtableIdstring (uuid) requirednamestring requiredtype"grid" | "gallery" | "kanban" | "calendar" | "timeline" | "list" | "form" requiredpositionnumber requiredconfigobject requiredfilterobjectconjunction"and" | "or" requiredconditionsarray of object required
sortsarray of objectfieldIdstring (uuid) requireddirection"asc" | "desc" required
groupByarray of objectfieldIdstring (uuid) requireddirection"asc" | "desc" required
gridobjectfieldOrderarray of string (uuid)columnWidthsobjectfrozenCountintegerrowHeight"compact" | "default" | "medium" | "tall"hiddenFieldsarray of string (uuid)
kanbanobjectstackFieldIdstring (uuid) | nullcardFieldsarray of string (uuid)coverFieldIdstring (uuid) | nullcollapseEmptyboolean
calendarobjectdateFieldsarray of objectstartFieldIdstring (uuid) requiredendFieldIdstring (uuid) | null
colorFieldIdstring (uuid) | nullmode"month" | "week" | "day"
galleryobjectcardFieldsarray of string (uuid)coverFieldIdstring (uuid) | nullcoverFit"crop" | "fit"cardSize"small" | "medium" | "large"
timelineobjectstartFieldIdstring (uuid) | nullendFieldIdstring (uuid) | nullscale"day" | "week" | "month"groupFieldIdstring (uuid) | nullcolorFieldIdstring (uuid) | nulldependencyFieldIdstring (uuid) | null
listobjectparentFieldIdstring (uuid) | nullrowFieldsarray of string (uuid)
formobjectfieldsarray of objectfieldIdstring (uuid) requiredlabelstringhelpTextstringrequiredbooleanallowPrefillbooleanconditionobject | nullviewIdForRecordSelectionstring (uuid) | null
titlestringdescriptionstringcoverAttachmentIdstring (uuid) | nulllogoAttachmentIdstring (uuid) | nullsubmitLabelstringafterSubmit"message" | "redirect"submitMessagestringredirectUrlstring | nullshowBrandingboolean
rowColorobject | null
personalboolean requiredlockedboolean requiredsectionIdstring (uuid) | null requiredcreatedBystring (uuid) | null requiredcreatedAtstring (date-time) requiredupdatedAtstring (date-time) 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)
Delete a view in the trash permanently
DELETE /api/tables/{tableId}/trash/views/{trashedViewId}
Access: view:purge on the table (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
trashedViewId | 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)
Records of a table in the trash, most recently deleted first (editors and up)
GET /api/tables/{tableId}/trash/records
Access: record:read_trash 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 | no |
Responses
200Successrecordsarray of object requiredidstring (uuid) requirednamestring requireddeletedAtstring (date-time) requireddeletedBystring (uuid) | null requiredpurgeAfterstring (date-time) required
nextCursorstring | 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)
Delete up to 1,000 records in the trash permanently
POST /api/tables/{tableId}/trash/records/purge
Access: record:purge on the table (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
recordIdsarray of string (uuid) required
Responses
200Successpurgedinteger 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)