Storyden
Assets

Asset Upload

Upload and process a media file.

Upload and process a media file.

POST/assets
storyden-session<token>

In: cookie

Query Parameters

filename?string

The client-provided file name for the asset.

parent_asset_id?string

For uploading new versions of an existing asset, set this parameter to the asset ID of the parent asset. This must be an ID and not a filename. This feature is used for situations where you want to replace an asset in its usage context, but retain the original with a way to reference it for features such as editable/croppable images or file version history.

Header Parameters

Content-Lengthinteger

Body content length in bytes.

Upload a file.

body?file
Formatbinary

Response Body

curl -X POST "https://loading/api/assets?filename=string&parent_asset_id=string" \  -H "Content-Length: 0" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{
  "id": "cc5lnd2s1s4652adtu50",
  "filename": "string",
  "path": "string",
  "mime_type": "string",
  "width": 0,
  "height": 0,
  "parent": {
    "id": "cc5lnd2s1s4652adtu50",
    "filename": "string",
    "path": "string",
    "mime_type": "string",
    "width": 0,
    "height": 0,
    "parent": {}
  }
}
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}