Skip to main content

Extract Resources

Summary

Extract the contents of a zip archive to a specified directory.

Endpoint

POST https://mysite.files.com/api/v2/resources/extract

Replace mysite.files.com with your site address.

Request Body Schema

NameData TypeNotes
resourcestring The archive (zip) file to be extracted. It should be specified either as the complete path (e.g. my/folder/file.zip) or with the internal resource ID (e.g. id:31415926535)
parentResourcestringRequired. The folder the items will be placed in.
It can be specified as either the complete path (e.g. my/sub/folder) or as a resource ID (e.g. id:66260702)