Restore a deleted record
Changed onBring a record back from the trash, together with everything deleted in the same action: a folder comes back with its contents, a file with its attachments, a multi-select delete with every item it removed.
Needs "Move Deleted Records to the Trash" on in Labs.
Required permission: the role the delete needed. A single file needs OWNER, WRITER or FILEORGANIZER on its collection; a folder or several items need OWNER or WRITER.
Names: an item whose name another item next to it now uses comes back as "name (restored)" (a file keeps its extension: "report (restored).pdf").
Search: restored files are indexed again, so they return to search and chat once indexing finishes. reindexPending lists any that could not be queued; reindex those by hand. A file that is back but whose indexing never started is queued again when it is restored again, and the indexing service queues it on its own after about an hour.
A record that is not in the trash answers 200 with nothing restored. The query string and any request body are ignored.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/knowledgeBase/record/{recordId}/restore
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: kb:delete
Path parameters
Record ID of any item in the delete batch
Response
Record restored, with everything deleted along with it
Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info