---
title: "Update the deployment with new compose file"
method: PUT
path: "/api/cli/v1/projects/{project_slug}/deployments/{id}\""
tags: ["Deployment"]
---

# Update the deployment with new compose file

`PUT /api/cli/v1/projects/{project_slug}/deployments/{id}"`

Update the deployment with new compose file

## Path parameters

- `id` string, required
- `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

## Changes

- **2022-05-13** (v1) `6f791ff59335` — 1 info
  - endpoint added
- **2022-04-21** (v1) `08adcc720aec` — 1 breaking
  - api path removed without deprecation
- **2022-04-08** (v1) `4bf843509fb3` — 1 info
  - endpoint added
- **2022-03-14** (v1) `c7fe7612b0ab` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/uffizzicloud/apis/uffizzi-docs/changes/api/cli/v1/projects/:project_slug/deployments/:id"/put.md)

---

[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)
