Trash
Put a deleted table or field back
Recreates what was deleted with the SAME ids, a table with its rows and its links, a field with its values, a converted column with the values it held before, and the grants that named it.
POST/v1/apps/{appId}/trash/{trashId}/restore
Records created since keep theirs; a value is only written back to a record that still exists, and a link only where both records do. Refused when something now uses the id (restore the table before its fields).
Requires the schema:write scope. Operation trash.restore. MCP tool trash_restore. CLI, once published: gtable trash restore.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
appId | string | yes | |
trashId | string | yes |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Response
Success
dataobjectrequiredRefused
errorobjectrequired