Create Zip for the List of Files under a Scope

post

/api/restapi/document/file/zip/files

Send a request to this endpoint to create a zip creation request for the specified files under a given scope.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityZipRequest
Type: object
Title: ApiEntityZipRequest
This entity represents a ZipRequest object, a unique ZipRequest object can be identified by the following combinations of the fields.
  • scope, scopeId
  • scope, scopeCode, workspaceId
  • scope, scopeCode, workspaceCode
Show Source
Nested Schema : documents
Type: array
The list of files and folders.
Show Source
  • DocumentIdentifier
    Title: DocumentIdentifier
    This entity represents a dentifier object, a unique dentifier object can be identified by the following combinations of the fields.
    • id
    • parentId, name
    • parentFolderPath, name, scope, workspaceId
    • parentFolderPath, name, scope, workspaceCode
Nested Schema : DocumentIdentifier
Type: object
Title: DocumentIdentifier
This entity represents a dentifier object, a unique dentifier object can be identified by the following combinations of the fields.
  • id
  • parentId, name
  • parentFolderPath, name, scope, workspaceId
  • parentFolderPath, name, scope, workspaceCode
Show Source
Back to Top

Response

Supported Media Types

201 Response

The object was successfully created.
Body ()
Root Schema : ApiEntityZipRequestDetails
Type: object
Title: ApiEntityZipRequestDetails
Show Source
  • errorDetails
    The field represents the error details in case of zip request in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status.
  • The date and time the file will be available for downloading. Once this time has passed, the file is no longer available and will need to be downloaded again.
  • The system-generated identifier of a zip request created.
  • Allowed Values: [ "IN_QUEUE", "ZIP_CREATION_IN_PROGRESS", "ZIP_CREATION_IN_PROGRESS_WITH_WARNING", "READY_FOR_DOWNLOAD", "REQUEST_FAILED", "REQUEST_FAILED_NO_FILES", "REQUEST_EXPIRED" ]
    The status of the file zip request process.
    • IN_QUEUE: The zip requests is waiting to be processed.
    • ZIP_CREATION_IN_PROGRESS: The creation of the zip folder is in progress.
    • ZIP_CREATION_IN_PROGRESS_WITH_WARNING : The creation of the zip folder is in process, but some files could not be included.
    • READY_FOR_DOWNLOAD: The creation of the zip folder has completed and is ready for download.
    • REQUEST_FAILED: An error occured during the zip folder creation and couldn't complete the request
    • REQUEST_FAILED_NO_FILES: The zip folder could not be created. There are no files to add to the .zip folder
    • REQUEST_EXPIRED: The zip folder was created but is deleted after 24 hours.
Nested Schema : errorDetails
The field represents the error details in case of zip request in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status.
Match All
Show Source
Nested Schema : ApiEntityZipRequestErrorDetails
Type: object
Title: ApiEntityZipRequestErrorDetails
Show Source
  • Maximum Length: 4000
    The cause for the error when the zip request is in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status.
  • This field represents the error message when the zip request is in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status. The field is non-persistable and thus maximum length is not applicable.
  • The resolution for the error when the zip request is in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status. The field is non-persistable and thus maximum length is not applicable.

400 Response

Invalid input for the Document service. Verify the request contains valid data, then resubmit the request.
Back to Top