POST /api/v1/programs/{programId}/paths
Creates version 1 of a new path family. Copying the primary path reuses milestone ids.
Allowed for OWNER, ADMIN, or a MEMBER with an organization-scoped program_director assignment. Archived Programs refuse writes.
x-api-key and Idempotency-Key are required.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | 3 to 100 characters |
duplicatePrimary | boolean | yes | Copy the current primary composition when true |
curl -X POST "$COHORTE_API_BASE_URL/api/v1/programs/$PROGRAM_ID/paths" -H "x-api-key: $COHORTE_API_KEY" -H "Idempotency-Key: path-accelerated" -H "Content-Type: application/json" -d '{"name":"Accelerated","duplicatePrimary":true}'201 when created, 200 on replay, 400, 401, 403, 404, or 500 otherwise.
{"success":true,"data":{"id":"…","version":1,"name":"Accelerated","isPrimary":false,"steps":[]}}Creating a path does not make it primary and never changes an enrollment.
/en/docs/api/paths/list-program-paths/en/docs/api/paths/update-a-path