简体   繁体   English

BIM 360 或 ACC API POST 用户已完成但缺少信息

[英]BIM 360 or ACC APIs POST users completes but missing information

Using this reference: https://forge.autodesk.com/en/docs/acc/v1/reference/http/users-POST/使用此参考: https ://forge.autodesk.com/en/docs/acc/v1/reference/http/users-POST/

The request completes successfully, and the response is correct.请求成功完成,响应正确。 However, when going into the member directory, it only has their name, company and email address (not phone number, address, or other attributes).但是,当进入会员目录时,它只有他们的姓名、公司和电子邮件地址(不是电话号码、地址或其他属性)。

I'm using workato so copying code here is not a simple thing.我正在使用workato,所以在这里复制代码并不是一件简单的事情。 Here is a scrubbed copy of the JSON from the request/response:这是来自请求/响应的 JSON 的清理副本:

Input:输入:

{
    "Request name": "POST new user with found company id",
    "Request": {
        "method": "POST",
        "content_type": "application/json",
        "form_body": [
            {
                "param": "company_id",
                "value": "COMPANY_ID"
            },
            {
                "param": "email",
                "value": "EMAIL"
            },
            {
                "param": "first_name",
                "value": "FIRST"
            },
            {
                "param": "last_name",
                "value": "LAST"
            },
            {
                "param": "address_line_1",
                "value": "ADDRESS 1"
            },
            {
                "param": "city",
                "value": "CITY"
            },
            {
                "param": "state_or_province",
                "value": "STATE"
            },
            {
                "param": "postal_code",
                "value": "ZIP"
            },
            {
                "param": "phone",
                "value": "PHONE"
            },
            {
                "param": "country",
                "value": "COUNTRY"
            }
        ],
        "headers": [
            {
                "header": "Authorization",
                "value": "Bearer TOKEN"
            },
            {
                "header": "Content-Type",
                "value": "application/json"
            }
        ],
        "url": "https://developer.api.autodesk.com/hq/v1/accounts/HUB_ID/users",
        "body": {
            "email": "EMAIL",
            "company_id": "COMPANY_ID",
            "nickname": "",
            "first_name": "FIRST",
            "last_name": "LAST",
            "image_url": "",
            "address_line_1": "ADDRESS 1",
            "address_line_2": "",
            "city": "CITY",
            "postal_code": "ZIP",
            "state_or_province": "STATE",
            "country": "COUNTRY",
            "phone": "PHONE",
            "company": "COMPANY",
            "job_title": "Subcontractor",
            "industry": "Subcontractor",
            "about_me": "ADDED VIA API"
        }
    },
    "Response": {
        "output_type": "json",
        "expected_encoding": "UTF-8",
        "ignore_http_errors": "false",
        "response_schema": "[{\"control_type\":\"text\",\"label\":\"ID\",\"type\":\"string\",\"name\":\"id\"},{\"control_type\":\"text\",\"label\":\"Account ID\",\"type\":\"string\",\"name\":\"account_id\"},{\"control_type\":\"text\",\"label\":\"Status\",\"type\":\"string\",\"name\":\"status\"},{\"control_type\":\"text\",\"label\":\"Role\",\"type\":\"string\",\"name\":\"role\"},{\"control_type\":\"text\",\"label\":\"Company ID\",\"type\":\"string\",\"name\":\"company_id\"},{\"control_type\":\"text\",\"label\":\"Company name\",\"type\":\"string\",\"name\":\"company_name\"},{\"control_type\":\"text\",\"label\":\"Last sign in\",\"type\":\"string\",\"name\":\"last_sign_in\"},{\"control_type\":\"text\",\"label\":\"Email\",\"type\":\"string\",\"name\":\"email\"},{\"control_type\":\"text\",\"label\":\"Name\",\"type\":\"string\",\"name\":\"name\"},{\"control_type\":\"text\",\"label\":\"Nickname\",\"type\":\"string\",\"name\":\"nickname\"},{\"control_type\":\"text\",\"label\":\"First name\",\"type\":\"string\",\"name\":\"first_name\"},{\"control_type\":\"text\",\"label\":\"Last name\",\"type\":\"string\",\"name\":\"last_name\"},{\"control_type\":\"text\",\"label\":\"Uid\",\"type\":\"string\",\"name\":\"uid\"},{\"control_type\":\"text\",\"label\":\"Image URL\",\"type\":\"string\",\"name\":\"image_url\"},{\"control_type\":\"text\",\"label\":\"Address line 1\",\"type\":\"string\",\"name\":\"address_line_1\"},{\"control_type\":\"text\",\"label\":\"Address line 2\",\"type\":\"string\",\"name\":\"address_line_2\"},{\"control_type\":\"text\",\"label\":\"City\",\"type\":\"string\",\"name\":\"city\"},{\"control_type\":\"text\",\"label\":\"Postal code\",\"type\":\"string\",\"name\":\"postal_code\"},{\"control_type\":\"text\",\"label\":\"State or province\",\"type\":\"string\",\"name\":\"state_or_province\"},{\"control_type\":\"text\",\"label\":\"Country\",\"type\":\"string\",\"name\":\"country\"},{\"control_type\":\"text\",\"label\":\"Phone\",\"type\":\"string\",\"name\":\"phone\"},{\"control_type\":\"text\",\"label\":\"Company\",\"type\":\"string\",\"name\":\"company\"},{\"control_type\":\"text\",\"label\":\"Job title\",\"type\":\"string\",\"name\":\"job_title\"},{\"control_type\":\"text\",\"label\":\"Industry\",\"type\":\"string\",\"name\":\"industry\"},{\"control_type\":\"text\",\"label\":\"About me\",\"type\":\"string\",\"name\":\"about_me\"},{\"control_type\":\"text\",\"label\":\"Created at\",\"render_input\":\"date_time_conversion\",\"parse_output\":\"date_time_conversion\",\"type\":\"date_time\",\"name\":\"created_at\"},{\"control_type\":\"text\",\"label\":\"Updated at\",\"render_input\":\"date_time_conversion\",\"parse_output\":\"date_time_conversion\",\"type\":\"date_time\",\"name\":\"updated_at\"}]"
    }
}

Output:输出:

{
    "headers": {
        "cache_control": "max-age=0, private, must-revalidate, no-store, no-cache",
        "content_encoding": "gzip",
        "content_type": "application/json; charset=utf-8",
        "date": "Thu, 05 May 2022 15:17:43 GMT",
        "etag": "W/\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"",
        "pragma": "no-cache",
        "referrer_policy": "strict-origin-when-cross-origin",
        "strict_transport_security": "max-age=31536000; includeSubDomains",
        "vary": "Accept-Encoding",
        "x_content_type_options": "nosniff",
        "x_download_options": "noopen",
        "x_frame_options": "SAMEORIGIN",
        "x_permitted_cross_domain_policies": "none",
        "x_request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "x_xss_protection": "1; mode=block",
        "content_length": "474",
        "connection": "keep-alive"
    },
    "response": {
        "account_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "role": "account_user",
        "status": "not_invited",
        "company_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "company_name": "COMPANY",
        "last_sign_in": null,
        "default_role": null,
        "default_role_id": null,
        "access_level": "account_user",
        "id": "ID",
        "email": "EMAIL",
        "name": "NAME",
        "nickname": "NICKNAME",
        "first_name": "FIRST",
        "last_name": "LAST",
        "uid": "UID",
        "image_url": "IMAGE",
        "address_line_1": "",
        "address_line_2": "",
        "city": "",
        "postal_code": "",
        "state_or_province": "",
        "country": "United States",
        "phone": null,
        "company": "",
        "job_title": "",
        "industry": "",
        "about_me": "",
        "created_at": "2019-08-26T14:58:42.849000+00:00",
        "updated_at": "2022-04-01T16:46:35.292000+00:00"
    },
    "Status code": 201,
    "Error": "",
    "Body": "{\"account_id\":\"(truncated for security)..."}"
}

https://i.stack.imgur.com/Y1qXL.png https://i.stack.imgur.com/Y1qXL.png

I can reproduce the issue my side, some fields in the request body did not take effect, sorry for that.我可以重现我这边的问题,请求正文中的某些字段没有生效,很抱歉。 I am checking with internal team and will log a JIRA ticket for this.我正在与内部团队核对,并将为此记录 JIRA 票证。 But we are working on the next version of Admin API currently, it will be coming soon.但我们目前正在开发下一个版本的 Admin API,它将很快推出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM