接口
认证
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:contributor。
路径参数
string
required
工作空间 id。
string
required
页面 id。
请求体
integer
要回滚到的目标版本号。
响应
boolean
是否为 true(已回滚)。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/wiki/wiki_01a2b3c4d5e6/rollback \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"rev":1}'
{
"rolled_back": true
}
通过 POST /v1/workspaces/:workspace_id/wiki/:page_id/rollback 把 Wiki 页面回滚到指定历史版本。最小角色 contributor。
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/wiki/wiki_01a2b3c4d5e6/rollback \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"rev":1}'
{
"rolled_back": true
}
POST /v1/workspaces/:workspace_id/wiki/:page_id/rollback
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:contributor。
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/wiki/wiki_01a2b3c4d5e6/rollback \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"rev":1}'
{
"rolled_back": true
}
Was this page helpful?