Skip to content

Report.restore

Restore this report from trash.

Server: POST /api/reports/{id}/restore. Restore is append-only at the assistant boundary and does not require confirm_name.

Signature

restore() -> Report

HTTP parameters

Name In Type Required Default
report_id path string yes -

Return shape

HTTP 200 — OK

Schema: ReportDetailOut

Field Type Required
attachments array<ReportAttachmentOut> no
body_md string yes
created_at string yes
id string yes
latest_version integer no
owner_id string no
project_id string yes
project_title string no
published_at string no
published_by_id string no
references array<ReportReferenceOut> no
slug string no
slug_number integer no
status string yes
tags array<ReportTagOut> no
title string yes
updated_at string yes

Permission

Required permission: report:delete

HTTP

POST /api/reports/{id}/restore (restoreReport)

Usage

report.restore()