Say this step is not going to be done, or take that back
const url = 'http://localhost:11044/api/v1/next-steps/example/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/next-steps/example/dismissed \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "dismissed": true }'The only remembered thing here: every other answer is derived from the graph. Dismissing does NOT mark a step done — it is still evaluated, so one waved away and then done anyway still reports DONE.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Step id as the list returns it, <source>_<declared id or position>. Not checked against the declared steps: an id nothing declares is recorded and has no effect
Query Parameters
Section titled “Query Parameters”Username whose world the dismissal is recorded in, and whose list comes back; when it names an existing user it is used even if the request is authenticated as someone else. Omitted, blank or unknown, the authenticated user is used; 401 when neither resolves to a user
Request Bodyrequired
Section titled “Request Bodyrequired”dismissed: true records the step as dismissed in the acting user’s world, false takes that back; omitted, it defaults to true. The step is still evaluated, so dismissing never makes it DONE
Whether the acting user has waved a step away — the body of PUT /next-steps/{id}/dismissed.
object
True dismisses the step, false takes the dismissal back. Defaults to true. The step is still evaluated either way, so dismissing never marks it done.
Example generated
{ "dismissed": true}Responses
Section titled “Responses”OK
Every declared onboarding step, done ones included. Which to show and in what order is the client’s decision
object
The steps, in declaration order
One onboarding step and the answer to its own question
object
Why the status is UNKNOWN, in the step author’s words; null otherwise
The user said they will not do this step. Orthogonal to status: a dismissed step that gets done still reports DONE
The step’s id, as the dismiss endpoint names it
Everything else the step’s YAML declared, carried through uninterpreted: a console reads a route from it, a chat surface an input. Open by contract
object
DONE, TODO, or UNKNOWN when the step’s query could not be answered — which must not be shown as outstanding work
Example
{ "steps": [ { "status": "DONE" } ]}
