---
title: "Downloads a version as a zip archive"
method: GET
path: "/lambdas/{privateKey}/versions/{version}/zip"
tags: ["Versions"]
---

# Downloads a version as a zip archive

`GET /lambdas/{privateKey}/versions/{version}/zip`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/lambdas/{privateKey}/versions/{version}/zip`
- Auth: none declared

The archive holds the files as the lambda names them, so it can be changed locally and saved again as a new version
with `POST …/versions/zip`. With `?layout=project` it holds them where a clone of the lambda's git repository has
them instead, so a .NET tool set up in a clone finds them where it looks. Unlike the export, it holds no project
around them and no data.

## Path parameters

- `privateKey` string, required
- `version` integer, required

## Query parameters

- `layout` string

## Response `200`

The files, as a zip archive

## Other responses

- `400`: There is no such layout.
- `404`: No lambda has this editor key, or it has no such version.

---

[API](https://skmtc.dev/genhttp/apis/genhttp-lambda-api.md) · [All operations](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/revisions/8b36699e03df?raw)
