missions

Save (or move) a chart on a mission's dashboard

Save (or update) a chart on a mission's page - design the view the human should see: told to train a model, save the loss chart in the same breath as open_mission. Spec is small versioned JSON: {v: 1, title, viz: line|area|stat|bars, unit?, window?, queries: [{signal: "metrics", query: <PromQL>, legend?}]} (1-4 queries, 32 KiB cap). One chart per mission is the default (default: true moves it; the first saved chart starts as it). Charts group into dashboards: pass dashboard: <name> to place a chart ("main" if omitted) - naming a new dashboard creates it, and the page's Charts tab shows one dashboard at a time with a picker. Charts and dashboards are views, not records - freely updated and deleted.

post/preview/missions/{name}/charts

Request

  • Base URL: https://autoresearch.sfcompute.com
  • URL: https://autoresearch.sfcompute.com/preview/missions/{name}/charts
  • Auth: HTTP bearer

Path parameters

namestring required

Mission name (from open_mission / list_missions).

Query parameters

workspacestring

Act in this workspace (its slug). Omitted: the token's bound workspace, then the organization's default. Never ambient - there is no switch-workspace mutation on this door.

Request body

dashboardstring nullable

Dashboard to place the chart on (lowercase letters, digits, '-'; default "main"). Dashboards are named groups of charts - the mission page's Charts tab shows one at a time. Naming a new dashboard creates it; re-saving a chart moves it; a dashboard whose last chart is deleted disappears.

defaultboolean nullable

Make this the mission's default chart (the one its page opens on). The first chart saved is the default automatically.

namestring required

Chart name: lowercase letters, digits, '-' (unique per mission).

specobject required

The chart document, v1: {v: 1, title, viz: line|area|stat|bars, unit?, window?, queries: [{signal: "metrics", query, legend?}]}, 1-4 queries, <=32 KiB. Pass the JSON object itself; a JSON-encoded string of the object is also accepted.

Response

The capability's JSON result.

objectstring

The resource type, when the result is one resource.

Changes

No recorded changes to this operation across all 1 revision of this API.