所需权限:
workspace:modify路径参数
string
required
工作空间 ID
请求体
string
更新后的工作空间名称
string
更新后的工作空间描述
object
更新后的键值元数据。将完全替换现有的元数据对象。
响应
object
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X PATCH 'https://app.memorylake.cn/openapi/memorylake/api/v3/workspaces/ws_abc123def456' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"name": "My Updated Workspace",
"description": "Updated workspace description"
}'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"id": "ws_abc123def456",
"name": "My Updated Workspace",
"description": "Updated workspace description",
"metadata": {
"team": "research",
"priority": "high"
},
"custom_id": "research-ws-001",
"created_at": "2025-03-10T08:30:00Z",
"updated_at": "2025-03-20T09:15:00Z"
}
}
更新现有工作空间的名称、描述或元数据
PATCH /openapi/memorylake/api/v3/workspaces/{id}
workspace:modifycurl -X PATCH 'https://app.memorylake.cn/openapi/memorylake/api/v3/workspaces/ws_abc123def456' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"name": "My Updated Workspace",
"description": "Updated workspace description"
}'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"id": "ws_abc123def456",
"name": "My Updated Workspace",
"description": "Updated workspace description",
"metadata": {
"team": "research",
"priority": "high"
},
"custom_id": "research-ws-001",
"created_at": "2025-03-10T08:30:00Z",
"updated_at": "2025-03-20T09:15:00Z"
}
}