API Reference
Replace a topic's competition criteria
Rebuilds this topic's competition prompts from the new selection. Criteria that were already selected keep their prompt identifiers, so their history is preserved. Competition criteria are per topic: what decides a comparison differs per product line.
PATCH
header
X-API-Key<token>API Key for programmatic access
domainId*stringDomain identifier
topicId*stringTopic identifier
application/json- body
evaluationCriteria*array<>Evaluation criteria competition is scored on, as catalogue slugs. The domain selection seeds new topics; a topic selection rebuilds that topic's competition prompts.
Updated selection
application/json- response
evaluationCriteria?array<string>competitionPromptCount?numbercurl -X PATCH 'https://api.getmint.ai/api/domains/string/topics/string/evaluation-criteria' \ -H 'Content-Type: application/json' \ -d '{ "evaluationCriteria": [ "price", "customer-service", "product-quality" ]}'Example Response
{ "evaluationCriteria": [ "string" ], "competitionPromptCount": 4}