https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example
按照上面的链接,我正在尝试使用 Postman 在 BIM 360 中创建一个新用户,但我无法设置他们的名称。我尝试在我自己的帐户中创建一个类似的用户,如下所示。
URI: https ://developer.api.autodesk.com/hq/v1/accounts/:account_id/users
方法:POST
授权:承载**************************
内容类型:application/json
身体:
{
"email": "john.smith@mail.com",
"company_id": ************************************,
"nickname": "Johnny",
"first_name": "John",
"last_name": "Smith",
"address_line_1": "The Fifth Avenue",
"address_line_2": "#301",
"city": "shanghai",
"postal_code": "20000",
"state_or_province": "Shanghai",
"country": "China",
"phone": "1234567",
"company": "Autodesk",
"job_title": "software developer",
"industry": "IT",
"about_me": "Nothing here"
}
但是,发送此请求时的结果会创建一个名称New Member
如下所示的新用户。
{
"account_id": ************************************,
"role": "account_user",
"status": "not_invited",
"company_id": ************************************,
"company_name": "Autodesk",
"last_sign_in": null,
"default_role": null,
"default_role_id": null,
"access_level": "account_user",
"id": ************************************,
"email": "john.smith@mail.com",
"name": "New Member",
"nickname": "Johnny",
"first_name": "New",
"last_name": "Member",
"uid": null,
"image_url": "http://static-dc.autodesk.net/etc/designs/v201412151200/autodesk/adsk-design/images/autodesk_header_logo_140x23.png",
"address_line_1": "The Fifth Avenue",
"address_line_2": "#301",
"city": "New York",
"postal_code": "10011",
"state_or_province": "New York",
"country": "United States",
"phone": "(634)329-2353",
"company": "Autodesk",
"job_title": "Software Developer",
"industry": "IT",
"about_me": "Nothing here",
"created_at": "2016-07-27T19:09:31.998Z",
"updated_at": "2019-02-19T08:59:57.852Z"
}
这是一个错误吗?当我检查 BIM 360 时,使用名称新成员创建用户,我无法使用我自己的自定义名称创建任何成员。有什么解决办法吗?