---
title: "Create a deployment from a compose file"
method: POST
path: "/api/cli/v1/projects/{project_slug}/deployments"
tags: ["Deployment"]
---

# Create a deployment from a compose file

`POST /api/cli/v1/projects/{project_slug}/deployments`

Create a deployment from a compose file

## Path parameters

- `project_slug` string, required

## Request body

- object
  - `compose_file` object
    - `path` string
    - `source` string
    - `content` string
  - `dependencies` object[]
    - `path` string
    - `source` string
    - `content` string

## Response `201`

OK

## Other responses

- `401` — Not authorized
- `404` — Not found
- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/uffizzicloud/apis/uffizzi-docs.md) · [All operations](https://skmtc.dev/uffizzicloud/apis/uffizzi-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uffizzicloud/uffizzi-docs/revisions/b656c8c2fcd1/schema)
