HOC SiteDocumentation

upload_file_from_url

Download a file from the site CDN (HTTPS) into the website library. Other hosts are rejected. Large files should use create_upload_url, then PUT the bytes, then complete_upload.

upload_file_from_url · Group: files

Download a file from the site CDN (HTTPS) into the website library. Other hosts are rejected. Large files should use create_upload_url, then PUT the bytes, then complete_upload.

Inputs

FieldRequiredNotes
websiteIdrequired
urlrequired
fileNamerequired
directoryIdoptional
contentTyperequiredMIME type

Maps to

  • POST /api/v1/{locale}/{websiteId}/files/from-url → API