阅读和查看 Automation Anywhere 文档

Automation 360

关闭内容

内容

打开内容

Assign default device API

  • 已更新:2021/12/20
    • Automation 360 v.x
    • 探索
    • RPA Workspace

Assign default device API

Use the default device allocation API to set a specific device as the default deployment device for the specific user.

先决条件

注: 您可以在 Community Edition 中查看 Control Room APIs,但 API 功能受限。您需要获得许可证的 Automation 360 版本才能访问 API 的全部功能。
  • 使用身份验证 API 生成 JSON Web 令牌。请参阅身份验证 API
  • You must have User management rights or admin rights.

过程

  1. 将认证令牌添加到请求标头。
  2. Use the POST, PUT, GET, DELETE method and endpoint URL: <your_control_room_url>/runasusers/default.
    Request body:
    Enter the valid deviceId and userId.
    {
      "deviceId": 1046,
      "userId": 589
    }
  3. 发送请求
    When the request is successful, a default device is allocated to the specified user. Now this device will be used as default for the deployment.
    Response body:
    In this example, the deviceId with value 1046 is allocated as default device for the specified user with userId 589.
    {
      "deviceId": 1046,
      "userId": 589
    }
    REST API 用 HTTP 响应代码响应每个请求。 有关响应代码,请参阅 API 响应代码
发送反馈