---
title: "Add a section"
method: POST
path: "/api/v1/sections"
tags: ["Sections"]
---

# Add a section

`POST /api/v1/sections`

## Request body

- CreateSection
  - `token` string, required
  - `item` object
    - `name` string, required — the name of the section
    - `container_id` integer, required — The ID of the experiment/protocol/report the section belongs to
    - `container_type` string, required — the type of the container - Projects::Experiment | Knowledgebase::Protocol | Knowledgebase::AbstractDocument
    - `position` integer — the section position

## Response `201`

section created

## Other responses

- `401` — Error: Unauthorized
- `422` — container_type cannot be blank

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
