Update Deployment

Updated at:

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

POST/deployments/{deployment_id}

Path parameters

deployment_idstringRequired

Deployment ID

Request body

namestringOptional

Deployment name, up to 256 characters

descriptionstringOptional

Description of the deployment purpose

agentobjectOptional

Associated Agent

environment_idstring | nullOptional

Associated Environment ID

scheduleobject | nullOptional

Schedule trigger configuration; pass null to clear the schedule

initial_eventsarray<object>Optional

List of initial events sent to the Agent on trigger, 1-50 items

resourcesarray<object>Optional

List of mounted file resources

vault_idsarray<string>Optional

List of associated Vault IDs

metadataobjectOptional

Custom 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

idstring

Resource ID

typestring

Resource type

namestring

Deployment name, up to 256 characters

descriptionstring

Description

agentobject

Associated Agent

environment_idstring

Associated Environment ID

scheduleobject | null

Schedule 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

metadataobject

Business metadata

statusstring

Resource status

paused_reasonobject | null

Pause reason; returned only when the deployment is paused

archived_atstring | null

Archive time; null if not archived

created_atstring

Creation time, ISO 8601

updated_atstring

Last update time, ISO 8601

request_idstring

Unique 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 statusError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.
409DEPLOYMENT_STATE_CONFLICTCannot update an archived deployment.