Skip to main content
POST
Restore Items

Authorizations

Authorization
string
header
required

Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

Body

application/json

API request schema for restoring filesystem items from the project trash.

Each item returns to the directory it was trashed from. If that directory no longer exists or is itself in trash, the item goes to the project root directory. A name already taken at an item's destination returns 409.

project_id
string<uuid>
required

Project ID the items belong to

asset_ids
string<uuid>[] | null

List of asset IDs to restore from trash

directory_ids
string<uuid>[] | null

List of directory IDs to restore from trash

List of symlink IDs to restore from trash

Response

Successful Response

API response schema for restoring filesystem items from trash

restored_asset_count
integer
required

Number of assets successfully restored

restored_directory_count
integer
required

Number of directories successfully restored

Number of symlinks successfully restored