---
title: "Updates a self-serve deployment (name and/or replica count) in the project."
method: PATCH
path: "/projects/{project_id}/foundry/selfserve/deployments/{id}"
tags: ["Foundry"]
---

# Updates a self-serve deployment (name and/or replica count) in the project.

`PATCH /projects/{project_id}/foundry/selfserve/deployments/{id}`

## Path parameters

- `project_id` string, required
- `id` string, required

## Request body

- UpdateDeploymentRequest
  - `deployment_name` string — Updated deployment name.
  - `replicas` integer — Updated replica count.

## Response `202`

- DeploymentAcceptedResponse — DeploymentAcceptedResponse is returned when a self-serve deployment create/update/delete is accepted for asynchronous processing.
  - `id` string — ID of the affected deployment.
  - `status` string — Resulting status.

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `403` — Error Permissions
- `404` — Error Not Found
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/versions/a3fd2dedc72b/schema)
