Skip to main content
POST
Update Deployment
Every request requires ?beta=true, anthropic-version: 2023-06-01, and anthropic-beta: managed-agents-2026-04-01.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
required
anthropic-beta
string
required

Path Parameters

deployment_id
string
required

Path parameter deployment_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Body

application/json

Request parameters for updating a deployment. Omit a field to preserve its current value.

name
string

Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.

Maximum string length: 256
description
string | null

Description. Omit to preserve; send empty string or null to clear.

Maximum string length: 2048
agent

Agent to deploy. Accepts the agent ID string, which re-pins to the latest version, or an agent object with both id and version specified. Omit to preserve. Cannot be cleared.

environment_id
string

ID of the environment where sessions run. Omit to preserve. Cannot be cleared.

Maximum string length: 128
vault_ids
string[] | null

Vault IDs. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 50.

initial_events
object[]

Initial events. Full replacement. Omit to preserve. Cannot be cleared. At least 1, maximum 50.

Parameters for sending a user message to the session.

Example:
resources
object[] | null

Session resources. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 500.

Mount a GitHub repository into the session's container.

Example:
metadata
object | null

Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.

schedule
object | null

Cron schedule. Full replacement. Omit to preserve; send null to clear (revert to manual-only).

Example:
budget
object | null

Spend ceiling for future sessions. Full replacement. Omit to preserve; send null to clear (sessions created afterwards are uncapped). The deployment agent's model must have a public list price, or the request is rejected; a multiagent roster is re-validated in full when each fire copies the cap, which fails closed the same way.

Response

Successful response (OK)

A deployment is a configured instance of an agent — it binds the agent to everything needed to run it autonomously: an environment, credentials, initial events, and an optional schedule.

type
enum<string>
required
Available options:
deployment
Example:

"deployment"

id
string
required

Unique identifier for this deployment.

Example:

"depl_011CZkZcDH3vPqd7xnEfwTai"

name
string
required

Human-readable name.

Example:

"Daily order report"

description
string | null
required

Description of what the deployment does.

Example:

"Compiles yesterday's orders into a report every weekday morning."

agent
object
required

Reference to the agent this deployment runs, resolved to a concrete version.

Example:
environment_id
string
required

ID of the environment where sessions run.

Example:

"env_011CZkZ9X2dpNyB7HsEFoRfW"

vault_ids
string[]
required

Vault IDs supplying stored credentials for sessions created from this deployment.

Example:
initial_events
object[]
required

Events sent to each session immediately after creation.

A user message sent to the session.

Example:
resources
object[]
required

Resources attached to sessions created from this deployment. Echoes the input minus write-only credentials.

A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.

Example:
metadata
object
required

Arbitrary key-value metadata. Maximum 16 pairs.

Example:
schedule
object | null
required

Recurring cron schedule. Presence enables scheduled execution; null means manual-only. Includes computed timestamps (next fire times, last run) on the cron variant.

Example:
status
enum<string>
required

Computed status of the deployment: active or paused. Archived deployments report active with archived_at set.

Available options:
active,
paused
Example:

"active"

paused_reason
object
required

Why the deployment is paused. Non-null exactly when status is paused; null otherwise.

Example:

null

created_at
string<date-time>
required

Time the deployment was created.

Example:

"2026-03-15T10:00:00Z"

updated_at
string<date-time>
required

Time the deployment was last updated.

Example:

"2026-03-15T10:00:00Z"

archived_at
string<date-time> | null
required

Time the deployment was archived. Null if not archived.

Example:

null

budget
object | null

Spend ceiling stamped onto each session created from this deployment. Absent when no budget is set.