Get Status of an Extraction Job

get

/documents/api/1.2/files/{fileId}/_extract/{jobId}

Returns the status of an extraction job

Request

Supported Media Types
Path Parameters
  • Globally unique identifier (GUID) of the ZIP file to be extracted into a folder

  • Globally unique identifier (GUID) for the extraction job.

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

The request was fulfilled.

Body ()
Root Schema : FileStatusExtractZipResponse
Type: object
The response body includes information about the zip extract job.
Show Source
Nested Schema : ignoredItems
Type: object
An array of zip filenames that were ignored by the extraction job.
Match All
Show Source
Nested Schema : skippedItems
Type: object
An array of zip filenames that were skipped by the extraction job.
Match All
Show Source
Nested Schema : FilesSkippedIgnoredByExtractZip
Type: object
Information about why a file was not extracted by the extraction job
Show Source
Example Response (application/json)
{
    "completed":"true",
    "completedPercentage":"100",
    "errorCode":"0",
    "filesCreated":"3",
    "filesIgnored":"0",
    "filesNameAdjusted":"0",
    "filesOverwritten":"0",
    "filesProcessed":"3",
    "filesSkipped":"0",
    "filesVersioned":"0",
    "message":"Zip processing completed",
    "progress":"SUCCEEDED",
    "type":"file"
}

400 Response

The request is invalid as described by the error returned.

403 Response

Forbidden if the user does not have read permission.

Back to Top

Examples

The following example gets the status a completed extraction job.

GET .../files/DC765D5CD846E67B395AE676435D1DBF0C5B3FCDE317/_extract/ZX-E83150A29A911D33321FE8A9A6C5814F1643066913096

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 200

JSON Response

{
    "completed": "true",
    "completedPercentage": "100",
    "errorCode": "0",
    "filesCreated": "0",
    "filesIgnored": "0",
    "filesNameAdjusted": "0",
    "filesOverwritten": "0",
    "filesProcessed": "3",
    "filesSkipped": "0",
    "filesVersioned": "0",
    "message": "Zip processing completed",
    "progress": "SUCCEEDED",
    "type": "file"
}

Example 2

The following example gets the status a completed extraction job, but the files were skipped as the files were already present in the folder.

GET .../files/DC765D5CD846E67B395AE676435D1DBF0C5B3FCDE317/_extract/ZX-930F35D291CEA348255D1974A84CB3571643127919210

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 200

JSON Response

{
    "completed": "true",
    "completedPercentage": "100",
    "errorCode": "0",
    "filesCreated": "0",
    "filesIgnored": "0",
    "filesNameAdjusted": "0",
    "filesOverwritten": "0",
    "filesProcessed": "0",
    "filesSkipped": "3",
    "filesVersioned": "0",
    "message": "Zip processing completed",
    "progress": "SUCCEEDED",
    "skippedItems": [
        {
            "id": "exif-xmp.jpg",
            "type": "file",
            "error": "Entry skipped - existing file with same name in folder"
        },
        {
            "id": "Mugs.jpg",
            "type": "file",
            "error": "Entry skipped - existing file with same name in folder"
        },
        {
            "id": "Mugs.png",
            "type": "file",
            "error": "Entry skipped - existing file with same name in folder"
        }
    ],
    "type": "file"
}

Example 3

The following example gets the status on an in-process extraction job.

GET .../files/DC765D5CD846E67B395AE676435D1DBF0C5B3FCDE317/_extract/ZX-930F35D291CEA348255D1974A84CB3571643127919210

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 200

JSON Response

{
    "completed": "false",
    "completedPercentage": "25",
    "errorCode": "0",
    "filesCreated": "0",
    "filesIgnored": "1",
    "filesNameAdjusted": "0",
    "filesOverwritten": "0",
    "filesProcessed": "0",
    "filesSkipped": "0",
    "filesVersioned": "0",
    "message": "Processing entry 6image/./exif-xmp.jpg",
    "progress": "PROCESSING",
    "type": "file"
}

Example 4

The following example requests the status on a job owned by a different user. The error returned is not very detailed to prevent data exposure.

GET .../files/DC765D5CD846E67B395AE676435D1DBF0C5B3FCDE317/_extract/ZX-930F35D291CEA348255D1974A84CB3571643127919210

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 400

JSON Response

{
    "errorCode": "-96",
    "errorKey": "!csCloudBulkExtractionRequestJobNotValid",
    "errorMessage": "Extraction job ID not valid.",
    "errorType": "file",
    "title": "Extraction job ID not valid.",
    "type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}
Back to Top