Idempotency-Key 重试只会向同一调用方重放首次结果,其他人会被拒绝。同一团队已有转让正在进行时返回 409,请重试。
所需权限: 仅团队所有者
请求头
string
可选。同一调用方使用相同值重试会重放首次结果。
请求体
string
必填
将成为团队所有者的有效真人成员的
principal_id响应
object
错误
出错时返回success: false、message 和 error_code。全部错误码见错误码。
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://app.memorylake.ai/openapi/memorylake/admin/v1/team/transfer-ownership' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0' \
-H 'Content-Type: application/json' \
-d '{
"new_owner_principal_id": "670048c3ad268485e39c944bbf532eb8"
}'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"new_owner_principal_id": "a98ea7f681cc99557e9ff07a98bdfd93",
"previous_owner_principal_id": "4b00105cd113649644fb6ca4b1b43592",
"tenant_id": "0b27c6f12b96b127b1157e40a00b0b79"
}
}
将此组织团队的所有权转让给另一名活跃的真人成员(不能是 API Key,也不能是虚拟成员)
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/team/transfer-ownership' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0' \
-H 'Content-Type: application/json' \
-d '{
"new_owner_principal_id": "670048c3ad268485e39c944bbf532eb8"
}'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"new_owner_principal_id": "a98ea7f681cc99557e9ff07a98bdfd93",
"previous_owner_principal_id": "4b00105cd113649644fb6ca4b1b43592",
"tenant_id": "0b27c6f12b96b127b1157e40a00b0b79"
}
}
POST /openapi/memorylake/admin/v1/team/transfer-ownership
Idempotency-Key 重试只会向同一调用方重放首次结果,其他人会被拒绝。同一团队已有转让正在进行时返回 409,请重试。
principal_idcurl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/team/transfer-ownership' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0' \
-H 'Content-Type: application/json' \
-d '{
"new_owner_principal_id": "670048c3ad268485e39c944bbf532eb8"
}'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"new_owner_principal_id": "a98ea7f681cc99557e9ff07a98bdfd93",
"previous_owner_principal_id": "4b00105cd113649644fb6ca4b1b43592",
"tenant_id": "0b27c6f12b96b127b1157e40a00b0b79"
}
}
success: false、message 和 error_code。全部错误码见错误码。
| 状态码 | 含义 |
|---|---|
400 | 参数或请求体无效 |
401 | API Key 缺失、无效、已停用或已过期 |
403 | 该 Key 无权执行此操作 |
409 | 请求与当前状态冲突,例如重复或已达上限 |
422 | 请求体或参数未通过校验 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |
503 | 暂时不可用,请稍后重试 |