UiPath Documentation
orchestrator
2023.4
false
Orchestrator API 指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Queue retention policy requests

删除指定队列的保留策略

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

备注:

通过为具有默认迁移策略(即 120 天后删除)的队列调用 DELETE 端点,它会将其替换为“30 天后删除”的内置保留策略。

API 端点

删除 https://{yourDomain}/odata/QueueRetention({key})

请求标头

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

路径参数

参数数据类型描述
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 queue for which you want to reset the custom retention policy to default. Learn how to identify the folder ID.

    curl --location --request DELETE 'https://{yourDomain}/odata/QueueRetention(6789)' \
    --header 'Authorization: Bearer 1234' \
    --header 'Content-Type: application/json' \
    --header 'X-UIPATH-OrganizationUnitId: 202020'
    curl --location --request DELETE 'https://{yourDomain}/odata/QueueRetention(6789)' \
    --header 'Authorization: Bearer 1234' \
    --header 'Content-Type: application/json' \
    --header 'X-UIPATH-OrganizationUnitId: 202020'
    

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

在 Orchestrator 用户界面中,更改也会显示在相应队列“更新”功能操作的审核详细信息中。

图 1. 审核详情

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新