Add child to family

POST/families/{familyID}/children

Adds a child to the family and returns the created resource. The child's birth date is used to generate age-appropriate policy rules.

Auth:Bearer

Path parameters

familyID

uuidrequired

Request body

name

stringrequired
birth_date

daterequired

Response

id

Unique identifier for this resource.

uuid
family_id

Identifier of the family this resource belongs to.

uuid
name

Human-readable display name.

string
birth_date

Child's date of birth (YYYY-MM-DD). Used to derive the age-appropriate policy.

datetime
avatar_url

URL of the profile image.

string
created_at

RFC 3339 timestamp of when the resource was created.

datetime
Request
bash
curl -sS -X POST "https://phosra-api-sandbox-production.up.railway.app/api/v1/families/f0000000-0000-4000-8000-0000000000f1/children" \
  -H "Authorization: Bearer $PHOSRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Mia",
  "birth_date": "2015-06-01"
}'
Response
json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "family_id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "string",
  "birth_date": "2025-01-15T09:30:00Z",
  "avatar_url": "string",
  "created_at": "2025-01-15T09:30:00Z"
}