file_actions
File Actions

Create a ZIP from one or more paths and save it to a destination path.

Changed on

Create a ZIP from one or more paths and save it to a destination path.

post/file_actions/zip

Request

  • Base URL
    https://app.files.com/api/rest/v1
  • URL
    https://app.files.com/api/rest/v1/file_actions/zip
  • Auth
    none declared

Request body multipart/form-data

pathsstring[] required

Paths to include in the ZIP.

destinationstring required

Destination file path for the ZIP.

overwriteboolean

Overwrite existing file in the destination?

Response

The FileActions object.

statusstring

Status of file operation.

file_migration_idinteger

If status is pending, this is the id of the File Migration to check for status updates. Delete actions include it whenever the deletion runs as a File Migration, including while it is processing.

Example response

{
  "status": "pending",
  "file_migration_id": 1
}

Changes