Restore record
restore_recordBring back a soft-deleted contact or account by object_type + id — the undo of delete_record. A contact returns with its account links and its touch / note / task history intact (delete retains them); an account returns with its contacts, opportunities, subscriptions, touches, notes and tasks linked again (they kept their account_id). Only contact and account are restorable: the other objects have no undo (re-create them). Find a deleted record with get_record(include_archived:true) or the delete result's id. A record that is not deleted, or an id that names nothing in this workspace, is refused with the reason and nothing changes. Returns the restored record's full state with restored:true.
When to use: Undo a delete: bring back a soft-deleted contact (its account links and history come back with it) or account (its records link up again). Only these two objects restore; the same scope as delete_record decides who may.
Example: Restore the contact I deleted by mistake.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The deleted record's id — a uuid from the delete result or a get_record read with include_archived. A uuid. | |
| object_type | Yes | Which kind of deleted record to bring back: contact or account. One of: contact | account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | No | ||
| restored | No |