---
schema_version: "1"
id: cfb433a44a9a9e2031a7b56fa2a386e7bc0c5715806e79d711790650edf7c3d4
title: ConnectApi.MCSFolderShareCollectionUpdateInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_m_c_s_folder_share_collection_update.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_m_c_s_folder_share_collection_update.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: dc256ecf2efd5d80c2afe7e555cf3f09eed126b99bdb10cc9d2caa546e08fce8
description: Update the targets that a managed content space folder is shared with.
---
# ConnectApi.MCSFolderShareCollectionUpdateInput

Update the targets that a managed content space folder is shared with.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d662600e26">Property</th>
              <th class="featureTableHeader vertical-align-top " id="d662600e28">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d662600e30">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d662600e32">Required or Optional</th>
              <th class="featureTableHeader vertical-align-top " id="d662600e34">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d662600e26 d662600e34" data-title="Property"><samp class="codeph apex_code">shareWith</samp></td>
              <td class="entry" headers="d662600e28" 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_m_c_s_folder_share.htm" title="Target to share a managed content space folder with."><samp class="codeph apex_code">ConnectApi.​MCSFolder​ShareInput</samp></a>&gt;
              </td>
              <td class="entry" headers="d662600e30" data-title="Description">List of target IDs to share the managed content space folder with.<p class="p">Supported target IDs are
                  the root folder IDs of workspaces. To get the root folder ID for a space, use the
                  <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentSpace_1" title="Get a managed content space."><samp class="codeph apex_code">getManagedContentSpace(contentSpaceId)</samp></a> method.
                </p>
              </td>
              <td class="entry" headers="d662600e32" data-title="Required or Optional">Required if <samp class="codeph nolang">unshareWith</samp> isn’t specified</td>
              <td class="entry" headers="d662600e26 d662600e34" data-title="Property">63.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d662600e26 d662600e34" data-title="Property"><samp class="codeph apex_code">unshareWith</samp></td>
              <td class="entry" headers="d662600e28" 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;String&gt;
              </td>
              <td class="entry" headers="d662600e30" data-title="Description">Comma-separated list of target IDs to unshare the managed content space folder with.</td>
              <td class="entry" headers="d662600e32" data-title="Required or Optional">Required if <samp class="codeph nolang">shareWith</samp> isn’t specified</td>
              <td class="entry" headers="d662600e26 d662600e34" data-title="Property">63.0</td>
            </tr>
          </tbody>
        </table>

#### See Also

- [getMCSFolderShares(folderId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getMCSFolderShares_1 "Get targets that a managed content space folder is shared with.")