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

# Update deployment

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

## Path parameters

- `deploymentId` integer, required

## Request body

- UpdateDeploymentInput
  - `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
  - `deployBranchMergeAllowed` boolean, nullable
  - `deployBranchName` string, nullable
  - `deployBranchReadOnly` boolean, nullable
  - `deployMode` 'git' | 'cli'
  - `deployProjectRoot` string, nullable
  - `name` string, nullable

## Response `200`

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

---

[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/a0c6b1d2ac96/schema)
