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.
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
promptId*string
Prompt to act on; it is looked up across the domain topics
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/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" }'{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "text": "best refurbished iPhone", "adsIncluded": true, "criterion": "pricing", "topicId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "topicName": "Refurbished smartphones", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}