Admin
Admin Theme Asset Upload
Upload an immutable custom theme stylesheet or script.
POST
Upload an immutable custom theme stylesheet or script.
cookie
storyden-session<token>filename?stringThe client-provided file name for the asset.
Content-Length*integerBody content length in bytes.
Upload a file.
body?fileapplication/octet-streamFormat
binaryUploaded immutable custom theme asset.
application/json- response
id*IdentifierA unique identifier for this resource.
Format
xidfilename*stringpath*stringAPI-relative immutable asset path.
mime_type*stringValue in
"text/css""application/javascript"size*integerRange
1 <= valueintegrity*stringMatch
^sha256-[A-Za-z0-9+/]+={0,2}$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"}