Storyden
Admin

Admin Theme Asset Upload

Upload an immutable custom theme stylesheet or script.

POST
/admin/theme/assets

Upload an immutable custom theme stylesheet or script.

Authorization

cookiestoryden-session<token>

Query Parameters

filename?string

The client-provided file name for the asset.

Header Parameters

Content-Length*integer

Body content length in bytes.

Request Body

Upload a file.

body?fileapplication/octet-stream
Formatbinary

Response Body

Uploaded immutable custom theme asset.

application/json
  1. response
id*Identifier

A unique identifier for this resource.

Formatxid
filename*string
path*string

API-relative immutable asset path.

mime_type*string
Value in"text/css""application/javascript"
size*integer
Range1 <= value
integrity*string
Match^sha256-[A-Za-z0-9+/]+={0,2}$
Example Request
curl -X POST 'https://example.com/api/admin/theme/assets' \  -H 'Content-Length: 0' \  -H 'Content-Type: application/octet-stream' \  -d 'string'
Example Response
{  "id": "string",  "filename": "string",  "path": "string",  "mime_type": "text/css",  "size": 1,  "integrity": "string"}