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

# Topic Mixin

[<img src="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

***

[<img src="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

***

[<img src="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

***
