API Reference
Edit one prompt of the domain
Rewrites the text of a single prompt, found by id across the topics of the domain. Every other prompt keeps its text, its id and its ads flag.
PATCH
header
AuthorizationBearer <JWT>Session JWT signed with HS256. Verification pins the algorithm and rejects expired tokens, per RFC8725.
domainId*stringDomain the prompts belong to
promptId*stringPrompt to act on; it is looked up across the domain topics
application/json- body
text*stringNew prompt text
Prompt updated
application/json- response
id*stringtext*stringmodules*array<>Modules the prompt feeds; ads is present only when your CSM assigned it to Ads Radar
criterion?stringtopicId*stringtopicName*stringcreatedAt?stringFormat
date-timeupdatedAt?stringFormat
date-timecurl -X PATCH 'https://api.getmint.ai/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/topic-prompts/3fa85f64-5717-4562-b3fc-2c963f66afa6' \ -H 'Content-Type: application/json' \ -d '{ "text": "best refurbished iPhone 15"}'Example Response
{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "text": "best refurbished iPhone", "modules": [ "visibility", "shopping" ], "criterion": "pricing", "topicId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "topicName": "Refurbished smartphones", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}