Skip to main content
Deployment

更新 Deployment

更新部署配置,传入字段替换,缺省字段保持不变

POST
/api/v1/agentstudio/deployments/{deployment_id}
cURL
curl --request POST \
  --url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/deployments/{deployment_id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "每日订单汇总-v2",
  "schedule": null
}
'
{
  "id": "depl_xxx",
  "type": "deployment",
  "name": "每日订单汇总-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": "汇总昨日订单数据"
        }
      ]
    }
  ],
  "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"
}

Authorizations

string
header
required

DashScope API Key

Path Parameters

string
required

Deployment ID

Body

application/json
string

Deployment 名称,最长 256 字符

string

部署用途描述

object

关联的 Agent

string | null

关联的 Environment ID

object | null

定时触发配置;传 null 则清除定时触发

object[]

触发时发送给 Agent 的初始事件列表,1-50 项

object[]

挂载文件资源列表

string[]

关联的 Vault ID 列表

object

业务自定义键值对

Response

200-application/json
string
string
string
string
object
string
object | null
object[]
object[]
string[]
object
enum<string>
active,paused
object | null
string | null
string
string
string
RAG API
Connector API
Memory API
框架集成
  • 框架