📢 Release 1.2.0(2026-10-19)现已推出
Arcadia

依赖操作

POST
/dependency/v1/operate

对依赖执行安装、卸载或同步安装状态操作。安装与卸载按队列依次执行,返回本次提交的数量;任一依赖状态不允许安装或卸载时整体失败,不会提交任何任务。sync 用于同步全部依赖的安装状态,已有同步任务执行中时会返回失败。

授权

Token
headerapi-token<token>

32位令牌,在控制面板《个人设置 - 令牌管理》页面获取

请求主体

application/json
  1. body

依赖操作请求体

action*string

操作类型,install 安装、uninstall 卸载、sync 同步安装状态

值于"install""uninstall""sync"
ids?array<integer>

依赖 ID 列表,action 为 install / uninstall 时必填,sync 时可省略

响应主体

返回本次操作结果:安装 / 卸载时为入队数量,同步状态时为发生状态变更的记录数量

application/json
  1. response

安装 / 卸载时的响应

total*integer

本次入队操作的依赖数量

示例请求
curl -X POST 'http://localhost:5678/api/open/dependency/v1/operate' \  -H 'Content-Type: application/json' \  -d '{  "action": "install"}'
示例响应
{  "total": 0}