API Reference
Replace one topic's prompt list
Writes the full list for a topic in one atomic update: a prompt already stored keeps its creation date, its ads flag and its criterion, a prompt with no id is created, and one left out of the list is deleted. Used by the generate and import flows, which hand back a whole list rather than a single prompt.
PUT
header
AuthorizationBearer <JWT>Session JWT signed with HS256. Verification pins the algorithm and rejects expired tokens, per RFC8725.
domainId*stringDomain the prompts belong to
topicId*stringTopic whose prompts are replaced
application/json- body
prompts*array<>The topic's full prompt list after the write; omitted prompts are deleted
type?stringWhich analysis the prompts belong to; defaults to visibility
Value in
"visibility""competition"The topic's prompts after the write
curl -X PUT 'https://api.getmint.ai/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/topic-prompts/topics/3fa85f64-5717-4562-b3fc-2c963f66afa6' \ -H 'Content-Type: application/json' \ -d '{ "prompts": [ { "text": "best refurbished iPhone 15" } ]}'Example Response
Empty