Skip to main content
PATCH
Patch Deployment Tier

Path Parameters

deployment_id
string<uuid>
required

Body

application/json

Request body for updating a deployment's fixed resource tier.

deployment_tier
enum<string>
required

Fixed resource tier to apply to the deployment. Serverless deployments support SERVERLESS_S, SERVERLESS_M, and SERVERLESS_L; dedicated deployments support DEDICATED_S, DEDICATED_M, and DEDICATED_L.

Available options:
SERVERLESS_S,
SERVERLESS_M,
SERVERLESS_L,
DEDICATED_S,
DEDICATED_M,
DEDICATED_L

Response

Successful Response

Deployment resource.

name
string
required

Name of the deployment.

A LangSmith tracing project with the same name will also automatically be created. This cannot be changed once the deployment is created.

source
enum<string>
required

Deploy from a GitHub repository (github), an external Docker image (external_docker), a CLI-pushed image (internal_docker), uploaded source (internal_source), or a prebuilt LangChain template (internal_template).

Deploying from GitHub, internal Docker, internal source, or a template is only available for Cloud SaaS deployments. Deploying from an external Docker image is only available for self-hosted deployments. This cannot be changed once the deployment is created.

Available options:
github,
external_docker,
internal_docker,
internal_source,
internal_template
source_config
SourceConfig · object
required

Source configuration.

source_revision_config
SourceRevisionConfig · object
required

Source revision configuration.

For a Deployment resource, the field values refer to the latest revision of the Deployment. For a Revision resource, the field values refer to the Revision itself.

secrets
Secret · object[]
required
id
string<uuid>
required

The ID of the deployment.

This is a read-only field.

tenant_id
string<uuid>
required

The ID of the tenant that owns the deployment.

This is a read-only field.

created_at
string<date-time>
required

The creation time of the deployment.

This is a read-only field.

updated_at
string<date-time>
required

The last update time of the deployment.

This is a read-only field.

status
enum<string>
required

The status of the deployment.

This is a read-only field.

Available options:
AWAITING_DATABASE,
READY,
UNUSED,
AWAITING_DELETE,
UNKNOWN
latest_revision_id
string<uuid> | null
required

The ID of the latest revision of the deployment.

This is a read-only field.

active_revision_id
string<uuid> | null
required

The ID of the current (actively deployed) revision of the deployment.

This is a read-only field.

secret_references
SecretReference · object[] | null

List of Kubernetes Secret references.

Only applicable for external_docker source.

image_version
string | null

Image version of the deployment.

is_managed_deep_agent
boolean
default:false

Whether this deployment is a Managed Deep Agent deployment.

This is a read-only field.

deployment_tier
enum<string> | null

The selected fixed resource tier for this deployment. Existing deployments without an explicit selection return the default tier for their deployment type.

Available options:
SERVERLESS_S,
SERVERLESS_M,
SERVERLESS_L,
DEDICATED_S,
DEDICATED_M,
DEDICATED_L