> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Topic Mixin

> Python SDK reference for the topic mixin, with Collate client methods to manage messaging topics and topic sample data.

[![](https://img.shields.io/badge/-source-cccccc?style=flat-square)](https://github.com/open-metadata/OpenMetadata/tree/main/ingestion/src/metadata/ingestion/ometa/mixins/topic_mixin.py#L0")

# module `topic_mixin`

Mixin class containing Topic specific methods

To be used by OpenMetadata class

***

[![](https://img.shields.io/badge/-source-cccccc?style=flat-square)](https://github.com/open-metadata/OpenMetadata/tree/main/ingestion/src/metadata/ingestion/ometa/mixins/topic_mixin.py#L24")

## class `OMetaTopicMixin`

OpenMetadata API methods related to Topics.

To be inherited by OpenMetadata

***

[![](https://img.shields.io/badge/-source-cccccc?style=flat-square)](https://github.com/open-metadata/OpenMetadata/tree/main/ingestion/src/metadata/ingestion/ometa/mixins/topic_mixin.py#L33")

### method `ingest_topic_sample_data`

```python theme={null}
ingest_topic_sample_data(
    topic: Topic,
    sample_data: TopicSampleData
) → TopicSampleData
```

PUT sample data for a topic

**Args:**

`topic`: Topic Entity to update

`sample_data`: Data to add

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.