Update Deployment
Path parameters
Path parameter deployment_id
Headers
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"
},
"budget": {
"max_list_cost": {
"currency": "USD",
"amount": "2500"
}
}
}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
}Changes
Changed in 3 of the 68 revisions of this API.17227
- ▲
the request property
budgetbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
descriptionbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
initial_events/items/oneOf[BetaManagedAgentsUserDefineOutcomeEventParams]/max_iterationsbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
initial_events/items/oneOf[BetaManagedAgentsUserMessageEventParams]/content/items/oneOf[BetaManagedAgentsDocumentBlock]/contextbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
initial_events/items/oneOf[BetaManagedAgentsUserMessageEventParams]/content/items/oneOf[BetaManagedAgentsDocumentBlock]/titlebecame not nullablerequest-property-became-not-nullable
- ▲
the request property
metadatabecame not nullablerequest-property-became-not-nullable
- ▲
the request property
resourcesbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
schedulebecame not nullablerequest-property-became-not-nullable
- ▲
the request property
vault_idsbecame not nullablerequest-property-became-not-nullable
- ▲
response property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
initial_events/items/oneOf[BetaManagedAgentsDeploymentUserDefineOutcomeEvent]/max_iterationslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
initial_events/items/oneOf[BetaManagedAgentsDeploymentUserMessageEvent]/content/items/oneOf[BetaManagedAgentsDocumentBlock]/contextlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
initial_events/items/oneOf[BetaManagedAgentsDeploymentUserMessageEvent]/content/items/oneOf[BetaManagedAgentsDocumentBlock]/titlelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
resources/items/oneOf[BetaManagedAgentsFileResourceConfig]/mount_pathlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
resources/items/oneOf[BetaManagedAgentsGitHubRepositoryResourceConfig]/mount_pathlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
resources/items/oneOf[BetaManagedAgentsMemoryStoreResourceConfig]/instructionslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ●
removed
BetaManagedAgentsBudgetfrom thebudgetrequest propertyallOflistrequest-property-all-of-removed
- ●
removed
BetaManagedAgentsScheduleParamsfrom theschedulerequest propertyallOflistrequest-property-all-of-removed
- ○
added
BetaManagedAgentsBudgetsubschema #2to thebudgetrequest propertyanyOflistrequest-property-any-of-added
- ○
added
BetaManagedAgentsScheduleParamssubschema #2to theschedulerequest propertyanyOflistrequest-property-any-of-added
- ○
request property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
initial_events/items/oneOf[BetaManagedAgentsUserDefineOutcomeEventParams]/max_iterationslist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
initial_events/items/oneOf[BetaManagedAgentsUserMessageEventParams]/content/items/oneOf[BetaManagedAgentsDocumentBlock]/contextlist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
initial_events/items/oneOf[BetaManagedAgentsUserMessageEventParams]/content/items/oneOf[BetaManagedAgentsDocumentBlock]/titlelist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
metadatalist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
resourceslist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
vault_idslist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
removed
BetaManagedAgentsBudgetfrom thebudgetresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsDeploymentPausedReasonfrom thepaused_reasonresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsMountModefrom theresources/items/oneOf[BetaManagedAgentsMemoryStoreResourceConfig]/accessresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsRepositoryCheckoutfrom theresources/items/oneOf[BetaManagedAgentsGitHubRepositoryResourceConfig]/checkoutresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsSchedulefrom thescheduleresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaTimestampfrom thearchived_atresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
added
BetaManagedAgentsBudgetsubschema #2to thebudgetresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsDeploymentPausedReasonsubschema #2to thepaused_reasonresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsMountModesubschema #2to theresources/items/oneOf[BetaManagedAgentsMemoryStoreResourceConfig]/accessresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsRepositoryCheckoutsubschema #2to theresources/items/oneOf[BetaManagedAgentsGitHubRepositoryResourceConfig]/checkoutresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsSchedulesubschema #2to thescheduleresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaTimestampsubschema #2to thearchived_atresponse propertyanyOflist for the response status200response-property-any-of-added
- ▲
- ▲
added
BetaManagedAgentsRedactedBlockto theinitial_events/items/oneOf[BetaManagedAgentsDeploymentUserMessageEvent]/content/items/response propertyoneOflist for the response status200response-property-one-of-added
- ○
added the new optional request property
budgetnew-optional-request-property
- ○
added
redacteddiscriminator mapping keys to theinitial_events/items/oneOf[BetaManagedAgentsUserMessageEventParams]/content/items/request propertyrequest-property-discriminator-mapping-added
- ○
added
BetaManagedAgentsRedactedBlockto theinitial_events/items/oneOf[BetaManagedAgentsUserMessageEventParams]/content/items/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
budgetto the response with the200statusresponse-optional-property-added
- ○
added
redacteddiscriminator mapping keys to theinitial_events/items/oneOf[BetaManagedAgentsDeploymentUserMessageEvent]/content/items/response property for the response status200response-property-discriminator-mapping-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○