Update Deployment
Updates the configuration of a specified Deployment. All fields are optional; only the provided fields are updated.
Prerequisites
Endpoint and authentication have been configured. For details, see API overview and authentication.
Endpoint
/deployments/{deployment_id}Path parameters
deployment_idstringRequiredDeployment ID
Request body
namestringOptionalDeployment name, up to 256 characters
descriptionstringOptionalDescription of the deployment purpose
agentobjectOptionalAssociated Agent
environment_idstring | nullOptionalAssociated Environment ID
scheduleobject | nullOptionalSchedule trigger configuration; pass null to clear the schedule
initial_eventsarray<object>OptionalList of initial events sent to the Agent on trigger, 1-50 items
resourcesarray<object>OptionalList of mounted file resources
vault_idsarray<string>OptionalList of associated Vault IDs
metadataobjectOptionalCustom business key-value pairs
Request example
curl -X POST "$AGENTSTUDIO_URL/deployments/depl_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Daily order summary v2",
"schedule": null
}'
Response fields
idstringResource ID
typestringResource type
namestringDeployment name, up to 256 characters
descriptionstringDescription
agentobjectAssociated Agent
environment_idstringAssociated Environment ID
scheduleobject | nullSchedule configuration; omit for manual trigger
initial_eventsarray<object>Initial events sent to the Agent when triggered, 1-50 items
resourcesarray<object>Mounted file resources
vault_idsarray<string>Associated Vault IDs
metadataobjectBusiness metadata
statusstringResource status
paused_reasonobject | nullPause reason; returned only when the deployment is paused
archived_atstring | nullArchive time; null if not archived
created_atstringCreation time, ISO 8601
updated_atstringLast update time, ISO 8601
request_idstringUnique identifier of this request; include it when troubleshooting
Response example
{
"id": "depl_xxx",
"type": "deployment",
"name": "Daily order summary v2",
"status": "active",
"agent": {
"id": "agent_xxx",
"version": 12
},
"environment_id": "env_xxx",
"schedule": null,
"initial_events": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "text",
"text": "Summarize order data from yesterday"
}
]
}
],
"resources": [],
"vault_ids": [],
"metadata": {},
"paused_reason": null,
"archived_at": null,
"created_at": "2026-07-28T01:00:00Z",
"updated_at": "2026-07-28T01:00:00Z",
"request_id": "req_xxx"
}
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |
| 409 | DEPLOYMENT_STATE_CONFLICT | Cannot update an archived deployment. |