Synced from Hive. This page is pulled from hivecommons/hive@v5 during the docs build. Edit the canonical source in the Hive repository.

Dashboard REST API reference — Nous / strategy lab

Part of the Dashboard REST API reference; see that page for how auth levels and pkg/<file>:<line> source citations are read and checked. Edit this file for routes in this area and run src/scripts/check-api-reference-citations.sh --fix to resync citations.

MethodPathAuthPurposeSource
GET/api/nous/statusDashboard auth/sessionNous Status — includes experimentLoop (dir, lastWriteAt, running, idleAfterSeconds): whether the external experiment loop, the only producer of proposals, has written under /var/run/nous/governor within 24 evaluation cycles; ready cards then carry experimentLoopIdle (#12541)pkg/dashboard/api.go:477
GET/api/nous/ledgerDashboard auth/sessionNous Ledgerpkg/dashboard/api.go:478
GET/api/nous/principlesDashboard auth/sessionNous Principlespkg/dashboard/api.go:479
POST/api/nous/approveOwner onlyNous Approvepkg/dashboard/api.go:480
POST/api/nous/abortOwner onlyNous Abortpkg/dashboard/api.go:481
PUT/api/nous/modeOwner onlyNous Modepkg/dashboard/api.go:482
PUT/api/nous/scopeOwner onlyNous Scopepkg/dashboard/api.go:483
GET/api/nous/phaseDashboard auth/sessionNous Phasepkg/dashboard/api.go:484
PUT/api/nous/gate-decisionOwner onlyNous Gate Decisionpkg/dashboard/api.go:485
GET/api/nous/gate-pendingDashboard auth/sessionNous Gate Pendingpkg/dashboard/api.go:486
POST/api/nous/gate-respondOwner onlyNous Gate Respondpkg/dashboard/api.go:487
GET/api/nous/gate-responseDashboard auth/sessionNous Gate Responsepkg/dashboard/api.go:488
GET/api/nous/configDashboard auth/sessionNous Config Getpkg/dashboard/api.go:489
PUT/api/nous/config/goalsOwner onlyNous Config Goals — legacy; the dashboard no longer exposes the research question in the ⚙ dialog, use PATCH /api/nous/campaigns/{id}pkg/dashboard/api.go:490
PUT/api/nous/config/reposOwner onlyNous Config Repos — the allow-list of repos experiments may target (empty = any)pkg/dashboard/api.go:491
PUT/api/nous/config/outputOwner onlyNous Config Outputpkg/dashboard/api.go:492
PUT/api/nous/config/fast-failOwner onlyNous Config Fast Failpkg/dashboard/api.go:493
PUT/api/nous/config/scheduleOwner onlyNous Config Schedulepkg/dashboard/api.go:494
PUT/api/nous/config/controllablesOwner onlyNous Config Controllablespkg/dashboard/api.go:495
PUT/api/nous/config/principlesOwner onlyNous Config Principlespkg/dashboard/api.go:496
DELETE/api/nous/principles/{id}Owner onlyNous Delete Principlepkg/dashboard/api.go:497
POST/api/nous/campaign/startOwner onlyNous Campaign Start — archives the active campaign and starts a new experiment whose baseline restarts at 0 (#12501)pkg/dashboard/api.go:498
GET/api/nous/campaignsAnyNous Campaigns List — every experiment with its per-campaign baseline, scope, results and stage (#12532)pkg/dashboard/api.go:499
POST/api/nous/campaignsOwner onlyNous Campaigns Create — starts an experiment alongside the running ones; 409 scope_conflict when a running experiment shares a repo target or both are hive-wide (#12532)pkg/dashboard/api.go:500
PATCH/api/nous/campaigns/{id}Owner onlyNous Campaign Patch — pause / resume / archive, or edit question, hypothesis and scope. Hypothesis/tag edits save in place (status: "updated"); a changed question or repo set needs restart: true (else 409 restart_required) and archives the campaign as version N while creating version N+1 with restartedFrom (status: "restarted", campaign, archived); resume, scope widening and restarts re-run the conflict guard (#12532)pkg/dashboard/api.go:501