UiPath Documentation
orchestrator
latest
false
  • 入门指南
  • Swagger 定义
  • Orchestrator API
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Orchestrator API 指南

上次更新日期 2026年4月16日

处理数据保留策略请求

删除指定流程的保留策略

通过使用以下对 /odata/ReleaseRetention({key}) 端点的 DELETE 请求,您可以将指定流程的现有保留策略重置为默认的内置策略。

备注:

By calling the DELETE endpoint for processes that have the default migration policy in place (that is, 120 days + deletion), it replaces it with the built-in retention policy of 30 days +deletion.

API 端点

删除 {AutomationCloudURL}/{organizationName}/{tenantName}/orchestrator_/odata/ReleaseRetention({key})

请求标头

--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json' \
--header 'X-UIPATH-OrganizationUnitId: {the_ID_of_the_folder_that_contains_the_process}' \
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json' \
--header 'X-UIPATH-OrganizationUnitId: {the_ID_of_the_folder_that_contains_the_process}' \

路径参数

参数数据类型描述
key (必填)整数 64要将特定保留策略重置为默认值的流程 ID。

响应

204 Success

将指定的流程策略重置为默认值(保留 30 天后删除)。

请求示例

假设您收集了构建 API 调用所需的所有信息。

  • {key} 为:6789。这是要将特定保留策略重置为默认值的流程 ID。
  • The X-UIPATH-OrganizationUnitId request header value is 202020. This is the ID of the folder that contains the process for which you want to reset the custom retention policy to default. Learn how to identify the folder ID.
    curl --location --request DELETE '{AutomationCloudURL}/{organizationName}/{tenantName}/orchestrator_/odata/ReleaseRetention(6789)' \
    --header 'Authorization: Bearer 1234' \
    --header 'Content-Type: application/json' \
    --header 'X-UIPATH-OrganizationUnitId: 202020'
    curl --location --request DELETE '{AutomationCloudURL}/{organizationName}/{tenantName}/orchestrator_/odata/ReleaseRetention(6789)' \
    --header 'Authorization: Bearer 1234' \
    --header 'Content-Type: application/json' \
    --header 'X-UIPATH-OrganizationUnitId: 202020'
    

成功的调用(响应代码 204)会将自定义策略重置为默认策略。

In the Orchestrator UI, the change is also visible in the Audit details of the corresponding process Update feature action.

  • 删除指定流程的保留策略
  • API 端点
  • 请求标头
  • 路径参数
  • 响应
  • 204 Success
  • 请求示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新