---
schema_version: "1"
id: db800e28329e299fedd7747a906a4c4498e61d4c6643bfc45a1235af589585b6
title: ConnectApi.TopicInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_Topic.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_Topic.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 265daea72d69713f58ebae264277c54e7da87a37c5885bc9c9487c1ae6737e64
description: Update a topic’s name or description or merge topics.
---
# ConnectApi.TopicInput

Update a topic’s name or description or merge topics.

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d533255e47">Property</th>

              <th class="featureTableHeader vertical-align-top " id="d533255e50">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d533255e53">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d533255e56">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d533255e47" data-title="Property"><samp class="codeph apex_code">description</samp></td>

              <td class="entry" headers="d533255e50" data-title="Type">String</td>

              <td class="entry" headers="d533255e53" data-title="Description">Description of the topic</td>

              <td class="entry" headers="d533255e56" data-title="Available Version">29.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d533255e47" data-title="Property"><samp class="codeph apex_code">idsToMerge</samp></td>

              <td class="entry" headers="d533255e50" 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="d533255e53" data-title="Description">
                <span class="ph" id="idsToMergeDesc"><a name="idsToMergeDesc"><!-- --></a>List of up to five secondary topic IDs to merge with
                  the primary topic</span>
                <p class="p">If any of the secondary topics are navigational or featured topics, they lose their topic type, topic images, and children topics. Their feed items are reassigned to the primary topic. If you merge a topic with a content topic, the content associations are preserved. If you merge a topic with an inactive endorsee, the endorsement isn’t mapped to the primary topic.</p>
              </td>

              <td class="entry" headers="d533255e56" data-title="Available Version">33.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d533255e47" data-title="Property"><samp class="codeph apex_code">name</samp></td>

              <td class="entry" headers="d533255e50" data-title="Type">String</td>

              <td class="entry" headers="d533255e53" data-title="Description">Name of the topic<p class="p">Use this property to change only the capitalization and
                  spacing of the topic name.</p>
              </td>

              <td class="entry" headers="d533255e56" data-title="Available Version">29.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [updateTopic(communityId, topicId, topic)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_Topics_static_methods.htm#apex_ConnectAPI_Topics_updateTopic "Update the description or name of a topic or merge up to five secondary topics with a primary topic.")