---
schema_version: "1"
id: eb762ecdf0576e18f4aff77c2e07d1af7053d25028e79756b74caecdb27552f2
title: ConnectApi.ContentHubItemInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_content_hub_item.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_content_hub_item.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 247db969a1a27bcabc3da460daecad057bd1ea34ef9105357aa51f8c4e993bcf
description: Item type ID and fields of the item type.
---
# ConnectApi.ContentHubItemInput

Item type ID and fields of the item type.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d612424e27">Property</th>
              <th class="featureTableHeader vertical-align-top " id="d612424e29">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d612424e31">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d612424e33">Required or Optional</th>
              <th class="featureTableHeader vertical-align-top " id="d612424e35">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d612424e27 d612424e35" data-title="Property"><samp class="codeph apex_code">fields</samp></td>
              <td class="entry" headers="d612424e29" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_content_hub_field_value.htm#apex_connectapi_input_content_hub_field_value" title="Fields of the item type."><samp class="codeph apex_code">ConnectApi.​ContentHub​FieldValue​Input</samp></a>&gt;
              </td>
              <td class="entry" headers="d612424e31" data-title="Description">List of fields for the item.</td>
              <td class="entry" headers="d612424e33" data-title="Required or Optional">Required to create a SharePoint file in a repository because the file name is required; otherwise optional</td>
              <td class="entry" headers="d612424e27 d612424e35" data-title="Property">39.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d612424e27 d612424e35" data-title="Property"><samp class="codeph apex_code">itemTypeId</samp></td>
              <td class="entry" headers="d612424e29" data-title="Type">String</td>
              <td class="entry" headers="d612424e31" data-title="Description">ID of the item type, such as <samp class="codeph nolang">L3NpdGVzL0FDRVRfRklMRUNPTk5FQ1RfSU5U:​5f33e0f4-b33c-4127-b9e4-dd5a73dd2f1b:​0c847e7c-d4a2-4136-bfda-c468fae2d087:0x0101</samp>.<p class="p">To get the <samp class="codeph apex_code">itemTypeId</samp>, use one of the
                  <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ContentHub_static_methods.htm#apex_ConnectAPI_ContentHub_getAllowedItemTypes_1" title="Get the item types that the context user is allowed to create in the repository folder."><samp class="codeph apex_code">getAllowedItemTypes()</samp></a> methods.
                </p>
              </td>
              <td class="entry" headers="d612424e33" data-title="Required or Optional">Required to create a file in a repository</td>
              <td class="entry" headers="d612424e27 d612424e35" data-title="Property">39.0</td>
            </tr>
          </tbody>
        </table>