---
title: "Upload a static bundle for later deployment"
method: POST
path: "/projects/{project_id}/upload/static"
tags: ["Static Bundles"]
---

# Upload a static bundle for later deployment

`POST /projects/{project_id}/upload/static`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/upload/static`
- Auth: HTTP bearer

Uploads a tar.gz or zip file containing static assets. The bundle can be
deployed later using the deploy/static endpoint.

## Path parameters

- `project_id` integer, required

## Request body `multipart/form-data`

- SourceArchiveUpload
  - `file` string, binary, required

## Response `201`

Bundle uploaded successfully

- StaticBundleResponse
  - `blob_path` string, required
  - `checksum` string, nullable
  - `content_type` string, required
  - `created_at` string, date-time, required
  - `format` string, nullable
  - `id` integer, required
  - `metadata` unknown
  - `original_filename` string, nullable
  - `project_id` integer, required
  - `size_bytes` integer, required
  - `uploaded_at` string, date-time, required

## Other responses

- `400`: Invalid request or unsupported format
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Project not found
- `409`: Deployment method unavailable in stateless mode
- `413`: Bundle too large
- `500`: Internal server error

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - added the non-success response with the status `409`
- **2026-10-05** `63a80791dc58`: 1 info
  - removed the non-success response with the status `409`
- **2026-09-22** `1dd3766c34ed`: 1 info
  - added the non-success response with the status `409`
- **2026-09-07** `5ab851bb63bf`: 1 breaking
  - added required request body
- **2026-09-07** `22543057a288`: 1 breaking
  - removed the request body

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/upload/static/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
