---
title: "Compress resources"
method: POST
path: "/resources/compress"
tags: ["Resources"]
---

# Compress resources

`POST /resources/compress`

Create a zip archive containing the files from given set of paths. Note that this can be a very slow operation if you have indicated many files should be included in the archive.

**Notes:**
- Authenticated user should have modify permission.

## Headers

- `ev-api-key` string, required
- `ev-access-token` string, required

## Request body

- object
  - `resources` string[], required — Resource identifiers for file(s)/folder(s) to include in new zip file
  - `parentResource` string — Resource identifier of the folder where zip archive should be created.
  - `archiveName` string — Name of the zip archive to create. If left blank, current date will be used.

## Response `201`

Successful Operation

- ResourceResponse — unresolved $ref

---

[API](https://skmtc.net/prismic/apis/exavault-api.md) · [All operations](https://skmtc.net/prismic/apis/exavault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prismic/exavault-api/revisions/a1bd874b5960/schema)
