Drive > Files > Archive

Build archive

Build an archive from selected files. The archive can then be downloaded using the <a href="javascript:window.location = window.location.pathname.replace('post/3', 'get/2') + '/{archive_uuid}';">/2/drive/{drive_id}/files/archives/{archive_uuid}</a> route. </br></br><note> The file identifiers should be in the same parent directory. </note> </br><note> The archive should contain at least one file and may not contain more than 20,000 files. </note>

post/3/drive/{drive_id}/files/archives

Path parameters

drive_idinteger required

Drive identifier

Request body

except_file_idsinteger[]

Array of files to exclude from the request; only used when parent_id is set, meaningless otherwise

file_idsinteger[]

Array of files to include in the request; required without parent_id

parent_idinteger

The directory containing the files to include in the request; required without file_ids

Response

Created

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "uuid": "00000000-e89b-12d3-a456-000000000000"
  }
}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.