API Reference
Replace a domain's evaluation criteria
Saves the criteria new topics start with. Sentiment prompts and existing topics are left untouched; change a topic's criteria to rebuild its competition prompts.
PATCH
header
X-API-Key<token>API Key for programmatic access
domainId*stringDomain 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>sentimentPromptCount?numbercurl -X PATCH 'https://api.getmint.ai/api/domains/string/evaluation-criteria' \ -H 'Content-Type: application/json' \ -d '{ "evaluationCriteria": [ "price", "customer-service", "product-quality" ]}'Example Response
{ "evaluationCriteria": [ "price", "customer-service", "product-quality" ], "sentimentPromptCount": 3}