---
title: "Create a spec node"
method: POST
path: "/api/v1/projects/{projectId}/spec/nodes"
tags: ["Projects"]
---

# Create a spec node

`POST /api/v1/projects/{projectId}/spec/nodes`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/projects/{projectId}/spec/nodes`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Creates a child under an existing spec node. Use this to add a delivery phase under the Milestones section, or an item under a phase. The thirteen section headings are created with the project and cannot be added here.

## Path parameters

- `projectId` string, required

## Request body

- object
  - `parentId` string, required
  - `title` string, required
  - `body` string
  - `position` integer

## Response `201`

The created node.

- object
  - `id` string, required
  - `parentId` string, nullable, required
  - `depth` number, required
  - `position` number, required
  - `title` string, required
  - `sectionKey` string, nullable, required
  - `documentId` string, nullable, required
  - `linearMilestoneId` string, nullable, required
  - `startDate` string, nullable, required
  - `targetDate` string, nullable, required
  - `dependsOnNodeId` string, nullable, required

## Other responses

- `401`: Authentication is missing or invalid.
- `403`: The caller is not permitted to perform this action.
- `404`: The resource was not found.
- `422`: Response.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
