API Reference
Set which modules one prompt feeds
Writes the prompt's module list, which is what decides the scope it is measured in: Visibility, Ads, Shopping. The list can never be empty, so the last module cannot be removed; a prompt in no module would be run by nothing and score nowhere.
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
modules*array<>Modules this prompt feeds. At least one is required: a prompt in no module is run by nothing. Ads Radar membership is assigned by your CSM and kept as it stands.
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/modules' \ -H 'Content-Type: application/json' \ -d '{ "modules": [ "visibility", "shopping" ]}'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"}