---
schema_version: "1"
id: 56ae29af5a1a06b1cf614326e8a9aa4433223d19308f2c33ceeff474f256fef9
title: ConnectApi.TopicNamesInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_topic_name_collection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_topic_name_collection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c651f28fd419a97dbd3db56a700f6cf14e4a15001fa1aa05b90cc8a98f9552e1
description: A list of topic names to replace currently assigned topics. Also a list of suggested topics to assign.
---
# ConnectApi.TopicNamesInput

A list of topic names to replace currently assigned topics. Also a list of suggested topics to assign.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| topicNames | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String> | A list of up to 10 topic names for a feed item or 100 topic names for a record. | Required | 35.0 |
| topicSuggestions | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String> | A list of suggested topics to assign to a record or feed item to improve future topic suggestions. | Optional | 37.0 |

#### See Also

- [reassignTopicsByName(communityId, recordId, topicNames)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_Topics_static_methods.htm#apex_ConnectAPI_Topics_reassignTopicsByName "Reassign all the topics on a record or feed item, that is, remove all the assigned topics on a record or feed item and add topics. Optionally, provide a list of suggested topics to assign to a record or feed item to improve future topic suggestions.")
- [ConnectApi.ArticleTopicAssignmentJobInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_article_topic_assignment_job.htm "An article and topic assignment job.")