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

# Update a deployment

`PUT /api/v1/deployments/{deploymentId}`

## Path parameters

- `deploymentId` integer, required

## Request body

- UpdateDeploymentInput
  - `cloudProvider` 'cubecloud' | 'aws' | 'gcp'
  - `creationMethod` 'upload' | 'cubecloud' | 'github' | 'ssh'
  - `cspsConfig` CspsConfigInput
    - `awsRoleArn` string, nullable
    - `azureClientId` string, nullable
    - `azureContainer` string, nullable
    - `azureStorageAccount` string, nullable
    - `azureTenantId` string, nullable
    - `enabled` boolean, required
    - `gcpServiceAccountEmail` string, nullable
    - `gcpWorkloadIdentityProvider` string, nullable
    - `gcsBucket` string, nullable
    - `s3Bucket` string, nullable
    - `s3Region` string, nullable
    - `s3Sse` string, nullable
    - `storageProvider` string, required
  - `customDomain` string, nullable
  - `defaultLaunchpadViewGroup` string, nullable
  - `deployBranchMergeAllowed` boolean, nullable
  - `deployBranchName` string, nullable
  - `deployBranchReadOnly` boolean, nullable
  - `deployMode` 'git' | 'cli'
  - `deployProjectRoot` string, nullable
  - `launchpadTabs` string[], nullable
  - `name` string, nullable
  - `region` string, nullable
  - `releaseChannel` 'latest' | 'release'
  - `releaseChannelVersion` string, nullable
  - `releaseChannelVersionHold` boolean, nullable
  - `template` 'single' | 'simpleCluster' | 'multiCluster'
  - `templateVariables` object, nullable

## Response `200`

- DeploymentSettings
  - `autoDomain` string, nullable
  - `cloudProvider` 'cubecloud' | 'aws' | 'gcp', required
  - `creationMethod` 'upload' | 'cubecloud' | 'github' | 'ssh'
  - `creationStep` 'project' | 'upload' | 'schema' | 'github' | 'ssh' | 'databases' | 'ready' | 'demo'
  - `cspsConfig` CspsConfig
    - `awsRoleArn` string, nullable
    - `azureClientId` string, nullable
    - `azureContainer` string, nullable
    - `azureStorageAccount` string, nullable
    - `azureTenantId` string, nullable
    - `enabled` boolean, required
    - `gcpServiceAccountEmail` string, nullable
    - `gcpWorkloadIdentityProvider` string, nullable
    - `gcsBucket` string, nullable
    - `s3Bucket` string, nullable
    - `s3Region` string, nullable
    - `s3Sse` string, nullable
    - `storageProvider` string, required
  - `cubeImageCloud` string, nullable
  - `cubeImageVersion` string, nullable
  - `customDomain` string, nullable
  - `defaultLaunchpadViewGroup` string, nullable
  - `deployBranchMergeAllowed` boolean, required
  - `deployBranchName` string, required
  - `deployBranchReadOnly` boolean, required
  - `deployMode` 'git' | 'cli'
  - `deployProjectRoot` string, required
  - `deploymentUrl` string, nullable
  - `id` integer, required
  - `isCold` boolean, nullable
  - `isCubeSqlEnabled` boolean, required
  - `isManaged` boolean, nullable
  - `isSupportPreAggregations` boolean, required
  - `launchpadTabs` string[], nullable
  - `name` string, required
  - `region` string, nullable
  - `releaseChannel` 'latest' | 'release', required
  - `releaseChannelVersion` string, nullable
  - `releaseChannelVersionHold` boolean, nullable
  - `repoType` 'git' | 'deployRepo'
  - `targetPlatform` string, nullable
  - `template` 'single' | 'simpleCluster' | 'multiCluster', required
  - `templateVariables` object, nullable

---

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