Finish a direct upload
Finish a direct upload Finish the flow started by POST /uploads. This assembles a multipart upload, checks the uploaded file, and adds it to the media …
Finish a direct upload Finish the flow started by POST /uploads. This assembles a multipart upload, checks the uploaded file, and adds it to the media …
Abort an upload Abort a multipart upload started with POST /uploads, discarding its uploaded parts. Use it when you stop partway through. DELETE …
Create a media folder Create a media folder. Folders group files into galleries. Move files in by setting folderId on a file or on several at once. …
Delete a media file Delete one media file. The file is removed from storage; pages that referenced its URL will show a broken asset until edited. …
Delete a media folder Delete a media folder. By default its files are not deleted: they return to the unfiled library and the folder is gone in one …
Delete several media files Delete the files named in the query. To delete a single file, address it directly. DELETE …
List media List the workspace’s media library, which every site in the workspace shares. GET https://sitepaste.com/api/v1/public/media Requires …
List media folders List media folders. Folders have no manual ordering of their own. Only the media inside a folder can be reordered. GET …
Read a media file Read one file by the fileId list media returns. Media belongs to the workspace, not to one site. GET …
Read a media folder Read one folder by the ID list folders returns. GET https://sitepaste.com/api/v1/public/media/folders/{folderId} Requires the …
Read an upload Read an upload started with POST /uploads. Its Location header names this URL. GET …
Start a direct upload Start the direct upload flow. Use it for large files: POST /media carries the whole file in the request, while this hands you …
Update a media file Update one media file’s note, the folder it sits in, or both. Files cannot be renamed, though folders can. To apply the same …
Update a media folder Rename a folder, set the order of the media inside it, or both. PATCH …
Update several media files Apply the same change to several files in one request. The body carries the fields update a media file carries, and the …
Inline media When writing pages with POST /sites/{siteId}/pages or POST /sites/{siteId}/pages/batch, attach files to the request as multipart form …
Upload media Upload a single file outside of a page request. This is useful when you want the URL up front to reference in content later. To attach …