automation-hub
2023.10
true
更新 Automation Hub 中员工的帐户详细信息
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
Automation Hub API 指南
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."
}
}