Update Deployment
post/v1/deployments/{deployment_id}?beta=true
Path parameters
deployment_idstring required
Path parameter deployment_id
Headers
anthropic-versionstring
anthropic-betastring
Request body
Example request
{
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "Where is my order #1234?"
}
]
}
],
"resources": [
{
"type": "github_repository",
"url": "https://github.com/example-org/example-repo",
"authorization_token": "ghp_exampletoken"
}
],
"schedule": {
"type": "cron",
"expression": "0 9 * * 1-5",
"timezone": "America/Los_Angeles"
}
}Response
Successful response (OK)
Example response
{
"type": "deployment",
"id": "depl_011CZkZcDH3vPqd7xnEfwTai",
"name": "Daily order report",
"description": "Compiles yesterday's orders into a report every weekday morning.",
"agent": {
"type": "agent",
"id": "agent_011CZkYpogX7uDKUyvBTophP",
"version": 1
},
"environment_id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"vault_ids": [
"vlt_011CZkZDLs7fYzm1hXNPeRjv"
],
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "Compile yesterday's orders into report.md."
}
]
}
],
"resources": [],
"metadata": {},
"schedule": {
"type": "cron",
"expression": "0 9 * * 1-5",
"timezone": "America/Los_Angeles",
"last_run_at": "2026-03-16T16:00:09Z",
"upcoming_runs_at": [
"2026-03-17T16:00:00Z",
"2026-03-18T16:00:00Z"
]
},
"status": "active",
"paused_reason": null,
"created_at": "2026-03-15T10:00:00Z",
"updated_at": "2026-03-15T10:00:00Z",
"archived_at": null
}