Skip to main content

Sentiment Topics

EntityDatastoreDatastore.SentimentTopic

Sentiment topics define the topics being tracked for sentiment analysis.

Use the Datastore_SentimentTopic endpoint to query sentiment topics.

Endpoints

List Sentiment Topics

GET/v1/odata/Datastore_SentimentTopic

Single Sentiment Topic

GET/v1/odata/Datastore_SentimentTopic({id})

Fields

Datastore Fields (inherited)

FieldTypeDescription
NameStringDisplay name
CodeStringUnique code identifier
LocalizedNameStringLocalized display name
IsDefaultBooleanWhether this is the default value

Relationships

RelationshipTarget EntityCardinalityDescription
AggregatedSentimentTopicMeasurementAggregatedSentimentTopicMeasurement1:NAggregatedSentimentTopicMeasurement
SentimentTopicMeasurementSentimentTopicMeasurement1:NSentimentTopicMeasurement

Expanding Relationships

GET/v1/odata/Datastore_SentimentTopic({id})?$expand=AggregatedSentimentTopicMeasurement
GET/v1/odata/Datastore_SentimentTopic({id})/AggregatedSentimentTopicMeasurement

Filtering Examples

GET/v1/odata/Datastore_SentimentTopic?$filter=Name eq '{Name}'&$top={top}
GET/v1/odata/Datastore_SentimentTopic?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Datastore_SentimentTopic?$filter=Code eq '{Code}'&$top={top}
GET/v1/odata/Datastore_SentimentTopic?$filter=IsDefault eq {IsDefault}&$top={top}