POST /deleted-nodes/{nodeId}/restore
基本信息
Note: 该端点在Alfresco 5.2和更高版本中可用。
尝试将已删除的nodes nodeId还原到其原始位置或新位置。
如果nodes已成功还原到其先前的主要父级,则将仅还原主要子级关联,包括递归地还原任何主要子级。 应该注意的是,对于已还原nodes的主要父子层次结构中的任何nodes,将不会还原任何其他次要孩子关联或对等体关联,而不论这些关联是到已还原层次结构之内还是之外。
同样,任何先前共享的链接都不会恢复,因为在删除每个nodes时会删除它。
请求方式: POST
请求API :/ deleted-nodes / {nodeId} / restore
响应等级(状态200)
成功回应
{ "entry": { "id": "string", "name": "string", "nodeType": "string", "isFolder": true, "isFile": true, "isLocked": false, "modifiedAt": "2021-01-08T08:52:11.933Z", "modifiedByUser": { "displayName": "string", "id": "string" }, "createdAt": "2021-01-08T08:52:11.933Z", "createdByUser": { "displayName": "string", "id": "string" }, "parentId": "string", "isLink": true, "isFavorite": true, "content": { "mimeType": "string", "mimeTypeName": "string", "sizeInBytes": 0, "encoding": "string" }, "aspectNames": [ "string" ], "properties": {}, "allowableOperations": [ "string" ], "path": { "elements": [ { "id": "string", "name": "string", "nodeType": "string", "aspectNames": [ "string" ] } ], "name": "string", "isComplete": true }, "permissions": { "isInheritanceEnabled": true, "inherited": [ { "authorityId": "string", "name": "string", "accessStatus": "ALLOWED" } ], "locallySet": [ { "authorityId": "string", "name": "string", "accessStatus": "ALLOWED" } ], "settable": [ "string" ] } } }
响应内容类型 applicaiton/json
Query参数
Path参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
nodeId | string | 是 | nodes的标识符。 |
Body参数(deletedNodeBodyRestore)
request body示例
{ "targetParentId": "string", "assocType": "string" }
错误信息描述
状态码 | 原因 |
400 | 无效的参数:nodeId或targetNodeId不是有效的格式 |
401 | 验证失败 |
403 | 用户没有恢复已删除nodes的权限,或者用户没有目标nodes的权限 |
404 | nodeId不存在或还原目标父nodes不存在 |
422 | 尝试还原nodes的模型完整性异常 |
default | 意外错误 |
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }