---
title: "POST /api/v1/docs-views/{spaceId}/folders"
method: POST
path: "/api/v1/docs-views/{spaceId}/folders"
---

# POST /api/v1/docs-views/{spaceId}/folders

`POST /api/v1/docs-views/{spaceId}/folders`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/docs-views/{spaceId}/folders`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- CreateDocsViewFolderRequest
  - `title` string, required
  - `containerKind` 'group' | 'tab' | 'dropdown' | 'anchor' | 'link': How it renders on the docs site; tab only at the top level.
  - `containerConfig` DocsContainerOptions
    - `icon` string
    - `hidden` boolean
    - `href` string, uri
    - `access` 'public' | 'private'
  - `parentNavItemId` integer: Container or page to place it under; the top level by default.
  - `position` 'start' | 'end': Where among its siblings it lands; end by default.

## Response `201`

Container created; a directory too where the Docs view follows the files

- DocsViewItemRef
  - `navItemId` integer, required
  - `path` string, nullable, required: The item's file or directory in the Files view, if any.

## Other responses

- `400`: Bad request
- `403`: Permission is missing
- `404`: Space or item not found, or the Space has neither a docs site nor two-way sync

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/7b303b7ddf6a?raw)
