Run Deployment
Updated at:
Manually triggers a single Deployment execution. The response returns a Deployment Run object that tracks the execution lifecycle.
Prerequisites
Endpoint and authentication have been configured. For details, see API overview and authentication.
Endpoint
POST
/deployments/{deployment_id}/runPath parameters
deployment_idstringRequiredDeployment ID
Request example
curl -X POST "$AGENTSTUDIO_URL/deployments/depl_xxx/run" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response fields
idstringDeployment Run ID
typestringFixed value deployment_run
deployment_idstringDeployment ID
agentobjectAssociated Agent
session_idstring | nullnull until the asynchronous session creation completes
trigger_sourcestringTrigger source, such as manual or schedule
statusstringResource status
errorobject | nullError information; returned only when the run fails
started_atstringISO 8601 timestamp
finished_atstring | nullRun end time; null if not finished
request_idstringUnique identifier of this request; include it when troubleshooting
Response example
{
"id": "drun_xxx",
"type": "deployment_run",
"deployment_id": "depl_xxx",
"agent": {
"id": "agent_xxx",
"version": 13
},
"session_id": null,
"trigger_source": "manual",
"status": "running",
"error": null,
"started_at": "2026-07-28T02:00:00Z",
"finished_at": null,
"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_TRIGGER_CONFLICT | Concurrent trigger conflict. |
Is this page helpful?