---
title: "Create deployment"
method: POST
path: "/applications/v1/projects/{id}/deployments"
tags: ["Applications Deployments"]
---

# Create deployment

`POST /applications/v1/projects/{id}/deployments`

Starts a new deployment for an existing project using its saved repository and hosting configuration. Any environment variables passed in the request are merged into the deployment workflow before the build starts.

## Path parameters

- `id` string, required

## Request body

- object
  - `environmentVariables` object[] — Additional environment variables to set or update before deployment
    - `key` string, required — Environment variable name
    - `value` string, required — Environment variable value
    - `target` string[], required — Deployment targets that should receive this variable
    - `type` 'plain' | 'encrypted' | 'secret' — Storage mode for the environment variable value

## Response `200`

Deployment workflow started successfully

## Other responses

- `400` — Project configuration is invalid or GitHub is not connected
- `401` — Invalid API key
- `403` — API key does not have access to compute service
- `404` — Project not found

---

[API](https://skmtc.dev/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.dev/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/casemark/case-dev-api/revisions/ff4b6844ccdf/schema)
