---
title: "Add Child Tracks"
method: POST
path: "/children/{child_id}/tracks"
tags: ["children"]
---

# Add Child Tracks

`POST /children/{child_id}/tracks`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/children/{child_id}/tracks`
- Auth: none declared

Create the parent's own tracks on a child that already exists.

A clinic-claimed child skips the child form, so this is the same seeding
`POST /children` does, for the one journey that never reaches it. RLS
(`tracks_family_insert`) makes the parent the author and a family member
the only caller. A name the parent already has a live track for is skipped,
so a retry whose answer was lost never makes a second one. Only the
parent's OWN tracks count: a clinician's "Sleep" on the same child is the
track this step exists to give the parent an alternative to, so it never
cancels their pick.

## Path parameters

- `child_id` string, uuid, required

## Request body

- AddTracksRequest: The session step's picks, for a child the parent claimed from a clinic.
  - `tracks` ChildTrackSeed[], required
    - `name` string, required
    - `item_name` string, required
    - `item_name_plural` string, required
    - `icon` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
