---
title: "PUT /api/v1/deployments"
method: PUT
path: "/api/v1/deployments"
tags: ["Deployments"]
---

# PUT /api/v1/deployments

`PUT /api/v1/deployments`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/deployments`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Create or update a deployment

## Request body

- ApiDeploymentRequest
  - `applicationEntitlementId` string, nullable
  - `applicationVersionId` string
  - `automaticApplicationUpdatesEnabled` boolean, nullable
  - `deploymentId` string, nullable
  - `deploymentTargetId` string
  - `dockerType` string, nullable
  - `envFileData` string, byte
  - `forceRestart` boolean
  - `helmOptions` object, nullable
    - `cleanupOnFailure` boolean
    - `forceConflicts` boolean
    - `rollbackOnFailure` boolean
    - `timeout` integer
    - `waitStrategy` string
  - `ignoreRevisionSkew` boolean
  - `releaseName` string, nullable
  - `valuesYaml` string, byte

## Response `default`

Default response

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
