POST
Write focus state

Authorizations

Origin
string
header
required

Same-origin CSRF check. The Origin header must match the request host; enforced for every mutating verb (POST, PUT, PATCH, DELETE).

Body

application/json

Audience + goal booleans, flat — the goals are top-level fields, not a nested object. monitor and cleanup were formerly understand and declutter; the boot migration re-keys stored rows.

audience
enum<string>
required
Available options:
self,
loved_one,
guardian
monitor
boolean
default:false
cleanup
boolean
default:false
minimal
boolean
default:false

Mutually exclusive with monitor and cleanup.

accessibility
boolean
default:false

Modifier — combines with any primary goal.

workflow
enum<string>

Inferred from audience + goals when omitted on write, collapsing to custom where the answer is ambiguous. other_handoff is what unlocks audit-bundle export.

Available options:
self_monitor,
self_cleanup,
other_handoff,
other_monitor,
custom
childAgeBand
string | null

Guardian-only age band. Empty string or null clears it.

Response

200

Updated.