---
title: "Update deployment"
method: PUT
path: "/v1/deployments/{deploymentId}"
tags: ["Deployments"]
---

# Update deployment

`PUT /v1/deployments/{deploymentId}`

## Path parameters

- `deploymentId` integer, required

## Request body

- UpdateDeploymentInput
  - `cloudProvider` string, nullable
  - `creationMethod` 'upload' | 'cubecloud' | 'github' | 'ssh'
  - `creationStep` 'project' | 'upload' | 'schema' | 'github' | 'ssh' | 'databases' | 'ready' | 'demo'
  - `customDomain` string, nullable
  - `deployBranchMergeAllowed` boolean, nullable
  - `deployBranchName` string, nullable
  - `deployBranchReadOnly` boolean, nullable
  - `deployMode` 'git' | 'cli'
  - `deployProjectRoot` string, nullable
  - `name` string, nullable
  - `region` string, nullable

## Response `200`

- Deployment
  - `creationStep` 'project' | 'upload' | 'schema' | 'github' | 'ssh' | 'databases' | 'ready' | 'demo', required
  - `deploymentUrl` string, required
  - `id` integer, required
  - `name` string, required

## Changes

- **2026-07-20** `df6e5a12170a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/v1/deployments/:deploymentId/put.md)

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/df6e5a12170a/schema)
