---
title: "Update Deployment"
method: PUT
path: "/v1/projects/{project_id}/deployments/{deployment_id}"
tags: ["Deployment"]
---

# Update Deployment

`PUT /v1/projects/{project_id}/deployments/{deployment_id}`

You can update a deployment by providing one or both of the following:
- A new model to be used for predictions.
- A new threshold value to be used for classifying predictions.

At least one of these values must be provided for a successful update.

Updating the threshold value with a model already deployed has the
following behavior:
- If you specify a new threshold value, it will override the model's
default threshold.
- If you don't specify a new threshold value, the model's default
threshold will be used.

Updating the deployment with a new model affects the threshold value as
follows:
- If you specify a new threshold value along with the new model, the new
threshold will be used.
- If you don't specify a new threshold value, the threshold associated
with the new model will be used.

## Path parameters

- `project_id` integer, required
- `deployment_id` string, uuid4, required

## Query parameters

- `timeout` integer, nullable

## Headers

- `apikey` string, nullable

## Request body

- DeploymentUpdateInput
  - `modelId` string, uuid4, nullable
  - `threshold` number, nullable

## Response `200`

Successful Response

- BaseResponseDeploymentItem
  - `data` DeploymentItem, required
    - `id` string, uuid4, required
    - `predictionUrl` string, required
    - `name` string, required
    - `modelId` string, uuid4, nullable
    - `threshold` number, nullable

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Validation Error

---

[API](https://skmtc.net/landing-ai/apis/landinglens-api.md) · [All operations](https://skmtc.net/landing-ai/apis/landinglens-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/landing-ai/landinglens-api/versions/73e50adb1306/schema)
