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
- 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.
Show Source
- scope, scopeId
- scope, scopeCode, workspaceId
- scope, scopeCode, workspaceCode
-
documents: array
documents
The list of files and folders.
-
includeUnscannedFiles: boolean
This parameter is used to determine whether to include the files that are un-scanned or not.
-
scope: string
Allowed Values:
[ "genericPortfolio", "project", "idea", "program" ]
The object name of the context the file is created in. -
scopeCode: string
Maximum Length:
255
The user-specified identifier of the object of the context the file is created in. -
scopeId: integer
(int64)
The system-generated identifier of the object of the context the file is created in.
-
workspaceCode: string
Maximum Length:
60
The user-specified identifier of a workspace. -
workspaceId: integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Nested Schema : documents
Type:
array
The list of files and folders.
Show Source
-
Array of:
object 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.
Show Source
- id
- parentId, name
- parentFolderPath, name, scope, workspaceId
- parentFolderPath, name, scope, workspaceCode
-
id: string
The system-generated identifier of the file, folder, or template.
-
name: string
The name of the file, folder, or template.
-
parentFolderPath: string
The path of the parent folder from it's root folder.
The field is non-persistable and thus maximum length is not applicable. -
parentId: string
The system-generated identifier of the parent object of the file or folder.
-
scope: string
Allowed Values:
[ "genericPortfolio", "project", "idea", "program" ]
The object name of the context the file or folder is created in. -
workspaceCode: string
The user-specified identifier of a workspace.
-
workspaceId: integer
(int64)
The system-specified identifier of a workspace.
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : ApiEntityZipRequestDetails
Type:
object
Title:
Show Source
ApiEntityZipRequestDetails
-
errorDetails:
errorDetails
The field represents the error details in case of zip request in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status.
-
expiresAt: string
(date-time)
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.
-
zipRequestId: integer
(int64)
The system-generated identifier of a zip request created.
-
zipRequestStatus: string
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
-
object
ApiEntityZipRequestErrorDetails
Title:
ApiEntityZipRequestErrorDetails
Nested Schema : ApiEntityZipRequestErrorDetails
Type:
object
Title:
Show Source
ApiEntityZipRequestErrorDetails
-
cause: string
Maximum Length:
4000
The cause for the error when the zip request is in REQUEST_FAILED or REQUEST_FAILED_NO_FILES status. -
message: string
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.
-
resolution: string
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.