【发布时间】:2019-07-21 09:58:53
【问题描述】:
我已经按照本教程成功创建了一个新的Account User:https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example,并在 Postman 上使用PATCH 方法将其状态设置为active。
我想设置他们的role 和access_level,但我无法设置。我已经按照下面的链接尝试执行此功能,但它要求用户已经是BIM 360 Project Admin 才能工作。
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-user_id-PATCH/
我还尝试按照下面的下一个链接将用户添加到项目中,但我遇到了我不确定如何修复的错误。
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/
URI: https://developer.api.autodesk.com/hq/v2/accounts/:account_id/projects/:project_id/users/import
方法: PATCH
授权: ****************************************** *****
内容类型: application/json
x-user-id: {{user_id}}
主体:
{
"email": "john.smith@mail.com",
"services": {
"document_management": {
"access_level": "account_admin"
}
},
"company_id": ************************************,
"industry_roles": [
************************************
]
}
(industry_role 的 id 是 IT)。
错误:
{
"code": 1004,
"message": "this user doesn't exist."
}
我不确定我是如何收到此错误的,因为用于 x-user-id 的用户 ID 与请求正文中给出的 email 关联的 user_id 相同。有没有办法解决这个问题或我可以使用的其他方法?
【问题讨论】:
标签: postman patch autodesk-forge autodesk-bim360