Create a Measurement Project
Create a Measurement Project
Measurement projects are tenant-scoped. Create them with an admin token and external slugs; numeric database IDs are never part of the public contract.
Initialize the authenticated client using Measurements with the SDK. Choose a unique slug, unit and completion direction. Replace the sample deadline with the date relevant to your project.
await client.admin.measurement.projects.create({
projectSlug: "checkout-runway",
name: "Checkout Runway",
kind: "deadline_forecast",
series: [{
seriesSlug: "completed-work",
name: "Completed work",
unit: "points",
completionDirection: "increase",
source: "manual",
}],
target: {
targetSlug: "launch",
name: "Launch",
targetValue: 100,
targetDate: "2026-08-31T00:00:00Z",
state: "active",
},
});
Use the Admin API routes to add extra series, targets, decisions, or calibration exercises after the initial project exists.
Expected result: a persisted project with its initial series and target. Keep its identifiers and import observations. If the slug exists, inspect the existing project before changing it. The main Measure page reads recorded results; project configuration uses the SDK/API.