<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic POST /api/checklists - Detailed Guidance in BIM 360 API Forum</title>
    <link>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8590018#M930</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to upload a new checklist via the API for 360 Field. I have a template checklist setup in a project, see below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
        "template_id": "2347c055-66a7-4119-b831-d3f222a92e95",
        "name": "API Checklist Type 2",
        "description": null,
        "tags": null,
        "auto_create_issue": false,
        "company_id": null,
        "priority": null,
        "updated_at": "2019-02-12 12:46:29 +0000",
        "checklist_type": "QA/QC",
        "header": "",
        "footer": "",
        "issue_type_id": "d713cd28-8b3f-4468-811e-4c6494f14273",
        "custom_field_values": [],
        "template_items": [
            {
                "template_item_id": "990d1376-4892-45a3-ae14-bd0c8bdffa67",
                "number": "",
                "position": 1,
                "item_text": "Automatically Populated?",
                "more_info": "",
                "is_section": false,
                "template_id": "2347c055-66a7-4119-b831-d3f222a92e95",
                "company_id": null,
                "response_type_id": "24e6efab-0f52-446f-9cc5-db49caaa1ce3",
                "default_answer": "",
                "spec_ref": "",
                "attachments": [],
                "document_references": [],
                "document_folder_references": [],
                "uri_references": [],
                "root_cause_id": null,
                "issue_description": "",
                "response_type": {
                    "response_type_id": "24e6efab-0f52-446f-9cc5-db49caaa1ce3",
                    "display_type": "drop-down",
                    "name": "True, False, N/A",
                    "required": false,
                    "position": 782,
                    "possible_values": [
                        "True",
                        "False",
                        "N/A"
                    ]
                }
            }
        ]
    }&lt;/PRE&gt;
&lt;P&gt;I'm using the POST /api/checklists endpoint to try and upload a new checklist. I'm sending the following data as a string in a &lt;STRONG&gt;checklists&lt;/STRONG&gt; parameter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[ 
   {
      "tags":"",
      "template_id":"2347c055-66a7-4119-b831-d3f222a92e95",
      "status":"Open",
      "identifier":null,
      "name":"API Checklist - Febru",
      "checklist_type":"QA/QC",
      "description":"",
      "area_id":null,
      "source_id":null,
      "source_type":null,
      "company_id":null,
      "checklist_items":[ 
         { 
            "template_item_id":"990d1376-4892-45a3-ae14-bd0c8bdffa67",
            "comment":"",
            "position":1,
            "spec_ref":"",
            "response":"True",
            "location_detail":null,
            "company_id":null,
            "area_id":null
         }
      ]
   }
]&lt;/PRE&gt;
&lt;P&gt;When I run this I get a code 500 server error and nothing other meaningful error message. If I check the Field 360 website I note that a checklist has been created; of sorts - it only includes the header data, no other fields are included:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2019-02-12 at 13.38.53.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/602074iD13202FBF001B697/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-02-12 at 13.38.53.png" alt="Screenshot 2019-02-12 at 13.38.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What needs to be sent to ensure that fields are populated when creating a checklist using the API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I reduce the fields to a bare minimum, I still get the same result, a 500 error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ANY help would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 13:48:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-12T13:48:52Z</dc:date>
    <item>
      <title>POST /api/checklists - Detailed Guidance</title>
      <link>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8590018#M930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to upload a new checklist via the API for 360 Field. I have a template checklist setup in a project, see below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
        "template_id": "2347c055-66a7-4119-b831-d3f222a92e95",
        "name": "API Checklist Type 2",
        "description": null,
        "tags": null,
        "auto_create_issue": false,
        "company_id": null,
        "priority": null,
        "updated_at": "2019-02-12 12:46:29 +0000",
        "checklist_type": "QA/QC",
        "header": "",
        "footer": "",
        "issue_type_id": "d713cd28-8b3f-4468-811e-4c6494f14273",
        "custom_field_values": [],
        "template_items": [
            {
                "template_item_id": "990d1376-4892-45a3-ae14-bd0c8bdffa67",
                "number": "",
                "position": 1,
                "item_text": "Automatically Populated?",
                "more_info": "",
                "is_section": false,
                "template_id": "2347c055-66a7-4119-b831-d3f222a92e95",
                "company_id": null,
                "response_type_id": "24e6efab-0f52-446f-9cc5-db49caaa1ce3",
                "default_answer": "",
                "spec_ref": "",
                "attachments": [],
                "document_references": [],
                "document_folder_references": [],
                "uri_references": [],
                "root_cause_id": null,
                "issue_description": "",
                "response_type": {
                    "response_type_id": "24e6efab-0f52-446f-9cc5-db49caaa1ce3",
                    "display_type": "drop-down",
                    "name": "True, False, N/A",
                    "required": false,
                    "position": 782,
                    "possible_values": [
                        "True",
                        "False",
                        "N/A"
                    ]
                }
            }
        ]
    }&lt;/PRE&gt;
&lt;P&gt;I'm using the POST /api/checklists endpoint to try and upload a new checklist. I'm sending the following data as a string in a &lt;STRONG&gt;checklists&lt;/STRONG&gt; parameter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[ 
   {
      "tags":"",
      "template_id":"2347c055-66a7-4119-b831-d3f222a92e95",
      "status":"Open",
      "identifier":null,
      "name":"API Checklist - Febru",
      "checklist_type":"QA/QC",
      "description":"",
      "area_id":null,
      "source_id":null,
      "source_type":null,
      "company_id":null,
      "checklist_items":[ 
         { 
            "template_item_id":"990d1376-4892-45a3-ae14-bd0c8bdffa67",
            "comment":"",
            "position":1,
            "spec_ref":"",
            "response":"True",
            "location_detail":null,
            "company_id":null,
            "area_id":null
         }
      ]
   }
]&lt;/PRE&gt;
&lt;P&gt;When I run this I get a code 500 server error and nothing other meaningful error message. If I check the Field 360 website I note that a checklist has been created; of sorts - it only includes the header data, no other fields are included:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2019-02-12 at 13.38.53.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/602074iD13202FBF001B697/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-02-12 at 13.38.53.png" alt="Screenshot 2019-02-12 at 13.38.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What needs to be sent to ensure that fields are populated when creating a checklist using the API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I reduce the fields to a bare minimum, I still get the same result, a 500 error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ANY help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:48:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8590018#M930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-12T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: POST /api/checklists - Detailed Guidance</title>
      <link>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8601874#M931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm checking with our engineering team, and will get you back A.S.A.P.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 03:07:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8601874#M931</guid>
      <dc:creator>eason.kangEDLV4</dc:creator>
      <dc:date>2019-02-18T03:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: POST /api/checklists - Detailed Guidance</title>
      <link>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8634256#M932</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologizing for the delay, it takes me some time to discuss this with our engineering team. To create a checklist via API, you have to pass all fields below and the&amp;nbsp;&lt;STRONG&gt;response_type_id&lt;/STRONG&gt; as well as the &lt;STRONG&gt;id&lt;/STRONG&gt; attribute.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST \
  https://bim360field.autodesk.com/api/checklists \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
  "project_id": "{PROJ_ID}",
  "ticket": "{YOUR_FIELD_TICKET}",
  "application_version": "4.0",
  "checklists": "[{\"id\":\"{RANDOM_GUID}\",\"template_id\":\"2347c055-66a7-4119-b831-d3f222a92e95\",\"identifier\":\"\",\"name\":\"API Checklist - Febru\",\"responsible_company_id\":\"\",\"status\":\"Open\",\"checklist_type\":\"QA/QC\",\"priority\":\"Medium\",\"tags\":\"\",\"project_id\":\"{PROJ_ID}\",\"created_by\":\"{USER_EMAIL}\",\"created_at\":\"\",\"updated_at\":\"\",\"description\":\"\",\"deleted_at\":\"\",\"area_id\":\"\",\"source_id\":\"\",\"source_type\":\"\",\"uploaded_at\":\"\",\"checklist_items\":[{\"is_section\":false,\"location_detail\":null,\"company_id\":null,\"response\":\"True\",\"spec_ref\":\"\",\"updated_at\":\"\",\"response_type_id\":\"24e6efab-0f52-446f-9cc5-db49caaa1ce3\",\"more_info\":\"\",\"area_id\":null,\"checklist_id\":\"{THE_SAME_RANDOM_GUID_ABOVE}\",\"comment\":null,\"touched\":true,\"position\":1,\"uploaded_at\":null,\"template_item_id\":\"990d1376-4892-45a3-ae14-bd0c8bdffa67\"}]}]"
}'&lt;/PRE&gt;
&lt;P&gt;Note.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You have to generate a unique GUID (i.e. RANDOM_GUID) for each uploading checklist record&lt;/LI&gt;
&lt;LI&gt;The checklists attribute is&amp;nbsp;a quoted JSON as shown above.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:45:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bim-360-api-forum/post-api-checklists-detailed-guidance/m-p/8634256#M932</guid>
      <dc:creator>eason.kangEDLV4</dc:creator>
      <dc:date>2019-03-04T11:45:17Z</dc:date>
    </item>
  </channel>
</rss>

