---
schema_version: "1"
id: d2379ff7398160887bac26db1ce7b9a4e3b713a2c8605ed32e47ec85f4e849fd
title: ConnectApi.TopicsCapabilityInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_topics_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_topics_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 14fb45b1ce6670c847288666c6ba28585b88f3a699a6b50b9a2cc0928c7b912c
description: Assign topics to a feed element.
---
# ConnectApi.TopicsCapabilityInput

Assign topics to a feed element.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| contextTopic​Name | String | Name of the parent topic in the site to which the feed element belongs. | Optional | 38.0 |
| topics | [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> | List of topics to assign to the feed element. | Required | 38.0 |

#### See Also

- [ConnectApi.FeedElementCapabilitiesInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_feed_element_capabilities.htm "A container for all capabilities that can be included when creating a feed element.")