Skip to main content
PATCH
Patch Deployment Resource Tiers

Path Parameters

deployment_id
string<uuid>
required

Body

application/json

Request body for updating a deployment's compute and database tiers independently.

At least one of compute_tier or database_tier must be provided. A field left null keeps the deployment's current tier for that resource.

compute_tier
enum<string> | null

Fixed resource tier to apply to the deployment's compute. Serverless deployments support SERVERLESS_S, SERVERLESS_M, and SERVERLESS_L; dedicated deployments support DEDICATED_S, DEDICATED_M, and DEDICATED_L. Leave null to keep the current compute tier.

Available options:
SERVERLESS_S,
SERVERLESS_M,
SERVERLESS_L,
DEDICATED_S,
DEDICATED_M,
DEDICATED_L
database_tier
enum<string> | null

Fixed resource tier to apply to the deployment's database. Only supported for dedicated deployments (DEDICATED_S, DEDICATED_M, DEDICATED_L). Leave null to keep the current database tier.

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.

display_name
string | null

Human-readable display name for 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. When compute and database tiers differ, this reflects the compute tier.

Available options:
SERVERLESS_S,
SERVERLESS_M,
SERVERLESS_L,
DEDICATED_S,
DEDICATED_M,
DEDICATED_L
compute_tier
enum<string> | null

The selected fixed resource tier for this deployment's compute. Falls back to deployment_tier for deployments predating independent compute/database scaling.

Available options:
SERVERLESS_S,
SERVERLESS_M,
SERVERLESS_L,
DEDICATED_S,
DEDICATED_M,
DEDICATED_L
database_tier
enum<string> | null

The selected fixed resource tier for this deployment's database. Falls back to deployment_tier for deployments predating independent compute/database scaling.

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