Skip to main content

Unpause Deployment

Resumes a paused Deployment to active status. Scheduled triggers resume according to the configured cron expression.

Prerequisites

Endpoint and authentication configured. For details, see API overview and authentication.

Endpoint

POST /deployments/{deployment_id}/unpause

Path parameters

deployment_id string (必选)Deployment ID

Request example

curl -X POST "$AGENTSTUDIO_URL/deployments/depl_xxx/unpause" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

id stringDeployment IDtype stringFixed value deploymentname stringDeployment namedescription stringDeployment descriptionagent object—environment_id string—schedule objectScheduled trigger configurationinitial_events array<object>—resources array<object>—vault_ids array<string>—metadata object—status string—paused_reason string | null—archived_at string | null—created_at string—updated_at string—request_id stringUnique identifier of this request; include it when troubleshooting

Response

{
  "id": "depl_xxx",
  "type": "deployment",
  "name": "Daily Report Generator",
  "description": "Generates daily sales reports",
  "agent": {
    "id": "agent_xxx",
    "version": 13
  },
  "environment_id": "env_xxx",
  "schedule": {
    "cron": "0 9 * * *"
  },
  "initial_events": [],
  "resources": [],
  "vault_ids": [],
  "metadata": {},
  "status": "active",
  "paused_reason": null,
  "archived_at": null,
  "created_at": "2026-07-20T10:00:00Z",
  "updated_at": "2026-07-28T02:00:00Z",
  "request_id": "req_xxx"
}

Error codes

HTTP statusError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.
409DEPLOYMENT_STATE_CONFLICTCannot unpause an archived deployment.