---
title: "Update a project deployment"
method: PATCH
path: "/projects/{projectId}/deployments/{deploymentTargetConfigurationId}"
tags: ["Deployment Target"]
---

# Update a project deployment

`PATCH /projects/{projectId}/deployments/{deploymentTargetConfigurationId}`

## Path parameters

- `projectId` string, required
- `deploymentTargetConfigurationId` string, required

## Request body

- union
  - DedicatedDeploymentTargetPatch
    - `type` 'dedicated' | 'enterprise' | 'local', required — The type of the deployment target.
    - `name` string, required — The name of the deployment target.
    - `enforced_mounts` object — Mounts which are always injected into pushed (e.g. enforce /var/log to be a local mount).
  - EnterpriseDeploymentTargetPatch
    - `type` 'dedicated' | 'enterprise' | 'local', required — The type of the deployment target.
    - `name` string, required — The name of the deployment target.
    - `site_urls` object
    - `ssh_hosts` string[] — List of SSH Hosts.
    - `enterprise_environments_mapping` object — Mapping of clusters to Enterprise applications
  - FoundationDeploymentTargetPatch
    - `type` 'dedicated' | 'enterprise' | 'local', required — The type of the deployment target.
    - `name` string, required — The name of the deployment target.
    - `hosts` object[], nullable — The hosts of the deployment target.
      - `id` string, nullable, required — The identifier of the host.
      - `type` 'core' | 'satellite', required — The type of the deployment to this host.
      - `services` string[], nullable — The services assigned to this host
    - `use_dedicated_grid` boolean — When true, the deployment will be pinned to Grid hosts dedicated to the environment using this deployment target. Dedicated Grid hosts must be created prior to deploying the environment. The constraints that will be set are as follows: * `cluster_type` is set to `environment-custom`. * `cluster` is set to the environment's cluster name.

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
