automation-hub
2023.10
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
UiPath logo, featuring letters U and I in white
Automation Hub API 指南
Automation CloudAutomation Cloud Public SectorAutomation Suite
Last updated 2024年4月19日

更新 Automation Hub 中员工的帐户详细信息

由于公司会不断发展变化,因此与人员部门、业务单元相关的详细信息以及其他详细信息变化非常快。使用 /edituser API 调用 Automation Hub 中及时更新这些内容。

以下示例介绍了如何更新“业务单元”和“部门”。为此,我们需要在请求正文中识别以下 2 个字段,并添加与用户当前的业务单位和部门对应的新值:

  • user_business_unit=newbuvalue

  • user_department=newdptvalue

POST https://{yourDomain}/automationhub_/api/v1/openapi/edituser

请求

Content-Type: application/json
	Authorization: Bearer [Tenant ID/Token]
  x-ah-openapi-app-key: [API key if added]
  x-ah-openapi-auth: openapi-token
 data-raw '{
    "user_email": "jane.doe@email.com",
      "user_first_name": "Jane",
      "user_last_name": "Doe",
      "user_location": "Brooklyn",
      "user_department": "newdptvalue",
      "user_business_unit": "newbuvalue",
      "user_job_title": "Developer",
      "user_is_active": 0,
      "user_invite_status": 1,
      "user_roles": [
        {
          "role_id": 6,
          "category_id": 0
        },
        {
          "role_id": 4,
          "category_id": 0
        },
        {
          "role_id": 5,
          "category_id": 3
        }
      ]
    }	Content-Type: application/json
	Authorization: Bearer [Tenant ID/Token]
  x-ah-openapi-app-key: [API key if added]
  x-ah-openapi-auth: openapi-token
 data-raw '{
    "user_email": "jane.doe@email.com",
      "user_first_name": "Jane",
      "user_last_name": "Doe",
      "user_location": "Brooklyn",
      "user_department": "newdptvalue",
      "user_business_unit": "newbuvalue",
      "user_job_title": "Developer",
      "user_is_active": 0,
      "user_invite_status": 1,
      "user_roles": [
        {
          "role_id": 6,
          "category_id": 0
        },
        {
          "role_id": 4,
          "category_id": 0
        },
        {
          "role_id": 5,
          "category_id": 3
        }
      ]
    }

响应

{
    "message": "Resource Updated",
    "statusCode": 201,
    "data": {
        "message": "Sync Successful."
    }
}    {
    "message": "Resource Updated",
    "statusCode": 201,
    "data": {
        "message": "Sync Successful."
    }
}

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。