---
title: "Deploy from an uploaded static bundle"
method: POST
path: "/projects/{project_id}/environments/{environment_id}/deploy/static"
tags: ["Deployments"]
---

# Deploy from an uploaded static bundle

`POST /projects/{project_id}/environments/{environment_id}/deploy/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}/environments/{environment_id}/deploy/static`
- Auth: HTTP bearer

Triggers a deployment using a previously uploaded static file bundle.

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Request body

- DeployFromStaticRequest
  - `health_check_path` string, nullable: Optional HTTP health-check path override (e.g. "/api/healthz"). Static deploys can't read `.temps.yaml`, so this sets the path the deployer probes after the container starts and the path the environment's uptime monitor checks. Must start with '/'. When omitted, defaults to "/".
  - `metadata` unknown
  - `static_bundle_id` integer, required: Static bundle ID (required)

## Response `202`

Deployment started

- RemoteDeploymentResponse
  - `created_at` string, date-time, required
  - `environment_id` integer, required
  - `id` integer, required
  - `project_id` integer, required
  - `slug` string, required
  - `source_type` string, required
  - `state` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Project, environment, or bundle not found
- `409`: Deployment method unavailable in stateless mode
- `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-07-01** `d83dcb738585`: 2 info
  - api tag `Deployments` added
  - added the new optional request property `health_check_path`
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/deploy/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)
