Stop offering the examples to this person, or offer them again
const url = 'http://localhost:11044/api/v1/kg/studio/examples/dismissed';const options = { method: 'PUT', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"dismissed":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:11044/api/v1/kg/studio/examples/dismissed \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "dismissed": true }'Recorded once for the person, in their world, so another browser or another day does not bring the examples back. dismissed: false forgets the dismissal, and a reached query count with it; a saved view still hides them. Answers the examples and the new verdict.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”dismissed: true to stop offering the examples unasked; false to offer them again
Whether to stop offering the examples
object
True to stop offering the examples unasked; false to offer them again
Example generated
{ "dismissed": true}Responses
Section titled “Responses”The examples and the verdict after the change
Query Studio’s starter queries, and whether to offer them to the signed-in person
object
Every example this world offers, in the order its files declare them: default-world’s, the world’s own, then each installed realm’s
One starter query
object
The query, to put in the editor and run exactly as written
One line: what running it demonstrates
Unique within this world: the file it came from, then the id the file gave it
ai when the query asks a model to read, judge or label as it runs, so running it costs model calls; plain for Cypher over what the world holds
The realm that shipped it; absent for default-world’s and the world’s own
The card’s heading
Why they are not offered: DISMISSED, SAVED_VIEW (the person has saved a view of their own) or EXPERIENCED (they have written threshold queries of their own in Query Studio); absent while they are offered
Whether to show the examples over an empty editor without being asked
Distinct queries of their own the person has written in Query Studio, as far as the query log still holds; 0 when the verdict did not need counting
How many distinct queries of their own retire the examples
Example
{ "examples": [ { "kind": "ai" } ], "hiddenBecause": "DISMISSED"}Not authenticated

