---
title: "Download mainframe files and directories as ZIP"
method: GET
path: "/v1/integration/mainframe/projects/{projectId}/pipelines/{pipelineId}/files/download"
tags: ["Build and Configure Mainframe Integration Projects"]
---

# Download mainframe files and directories as ZIP

`GET /v1/integration/mainframe/projects/{projectId}/pipelines/{pipelineId}/files/download`

## Request

- Base URL: `https://integration-adapter.connect.cloud.precisely.com`
- URL: `https://integration-adapter.connect.cloud.precisely.com/v1/integration/mainframe/projects/{projectId}/pipelines/{pipelineId}/files/download`
- Auth: HTTP bearer

Downloads all mainframe files and directories for the specified pipeline as a ZIP archive.

**Process Overview:**
1. **Content Collection** - Gathers all files and directories associated with the pipeline
2. **Archive Creation** - Packages files and directories into a ZIP archive preserving structure
3. **Stream Preparation** - Prepares the archive for download
4. **Response Delivery** - Returns the ZIP file with appropriate headers

**Key Features:**
- Single operation bulk file and directory download
- Efficient streaming for large file sets
- Directory structure preservation in archive

**Use Cases:**
- Backup mainframe files and directories
- Transfer content between environments
- Archive pipeline configurations with structure

**Required Permissions:** `replication-pipeline::view`

## Path parameters

- `projectId` string, required
- `pipelineId` string, required

## Response `200`

ZIP archive of mainframe files

## Other responses

- `400`: Bad Request - Validation failed due to one of the following reasons: - Invalid project ID - Invalid pipeline ID
- `401`: Unauthorized - Authentication required, valid credentials not provided
- `403`: Forbidden - User lacks 'replication-pipeline::view' permission
- `404`: Not Found - Files or directories not found for the pipeline
- `500`: Internal Server Error - Server encountered an unexpected condition, such as: - ZIP archive creation failure

---

[API](https://skmtc.dev/precisely/apis/precisely-integration-adapter-service.md) · [All operations](https://skmtc.dev/precisely/apis/precisely-integration-adapter-service/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/precisely-integration-adapter-service/revisions/2d2629f4987d?raw)
