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.
AuthorizationBearer <token>
Session JWT signed with HS256. Verification pins the algorithm and rejects expired tokens, per RFC8725.
In: header
Path Parameters
domainId*string
Domain the prompts belong to
topicId*string
Topic whose prompts are replaced
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/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" } ] }'Empty