閱讀及檢閱 Automation Anywhere 文件

Automation 360

關閉內容

內容

開啟內容

Assign default device API

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

Assign default device API

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

先決條件

註: 您可以在中查看, Control Room APIs Community Edition但 API 功能受限。您需要授權 Automation 360 版本才能存取 API 的完整功能。
  • 使用 驗證 API 來產生 JSON Web Token 。
  • 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 回應碼
傳送意見反饋