---
title: "Update Deployment"
method: PUT
path: "/api/deployments/{id}"
tags: ["Deployment"]
---

# Update Deployment

`PUT /api/deployments/{id}`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/deployments/{id}`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Path parameters

- `id` string, required

## Request body

- UpdateDeploymentRequest: UpdateDeploymentRequest schema
  - `args` string[], nullable
  - `command` string
  - `entrypoint` string[], nullable
  - `env_variables` object, nullable
  - `image_url` string
  - `registry_secret` string
  - `registry_username` string
  - `secret_env_variables` object, nullable
  - `traffic_port` integer, nullable

## Response `200`

OK

- ResponseDtoDeploymentStatusResponse: Response_dto.DeploymentStatusResponse schema
  - `data` DeploymentStatusResponse, required
    - `deployment_id` string, required
    - `status` string, required
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
