Administration

Restore one record from trash

post/trash/{id}/restore

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/trash/{id}/restore
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Path parameters

idstring uuid required

Soft-deleted record UUID

Request body

entityType'contact' | 'invoice' | 'bill' | 'account' | 'journal_entry' | 'scheduled_journal_entry' | 'product' | 'expense' | 'quote' | 'credit_note' | 'debit_note' | 'purchase_order' | 'bank_account' | 'payment' | 'recurring_template' | 'project' | 'fixed_asset' | 'budget' | 'loan' | 'document' | 'document_template' | 'data_backup' required

Response

Record restored

Changes

No recorded changes to this operation across all 5 revisions of this API.