Skip to content
Endless Documentation
Assets

Restore asset

POST
/assets/{asset_id}/restore

Restore asset. Scoped to the asset named by asset_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: assets:delete

Path Parameters

asset_id*string
Formatuuid

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
id*string
Formatuuid
organization_id*string
created_by_id*string
type*string
Value in"image""video""audio""document""text""transcript""3d"
title*string|null
mime_type*string|null
url*string|null
object_key*string|null
content*string|null
upload_file_state*|null
enrichment_state*|null
visibility*string
Value in"private""workspace""public"
workspace_role*string
Value in"viewer""editor""manager""owner"
color*|null
metadata*string|number|boolean|null||array<unknown|null>|null
generation_id*|null
origin_conversation_id*|null
origin_canvas_id*|null
uploaded_from*|null
mod_transcript_id*string|null
mod_asset_id*string|null
mod_source_id*string|null
dual_media_id*string|null
deleted_at*|null
deleted_by_id*string|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X POST 'https://api.endless.app/assets/0191e5a2-3d71-7c02-9a44-2b7e5c81d0a3/restore'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organization_id": "string",  "created_by_id": "string",  "type": "image",  "title": "string",  "mime_type": "string",  "url": "string",  "object_key": "string",  "content": "string",  "upload_file_state": "in_progress",  "enrichment_state": "ignored",  "visibility": "private",  "workspace_role": "viewer",  "color": "red",  "metadata": "string",  "generation_id": "a3c889df-e7ae-4ae9-9838-8884129ade5e",  "origin_conversation_id": "4754211d-696b-46d6-8b2f-376fa5a2850c",  "origin_canvas_id": "16b35206-3210-42c7-a590-f6d220e0854e",  "uploaded_from": "library",  "mod_transcript_id": "string",  "mod_asset_id": "string",  "mod_source_id": "string",  "dual_media_id": "string",  "deleted_at": "2019-08-24T14:15:22Z",  "deleted_by_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}