---
title: "Create a new folder"
method: POST
path: "/folders/create"
tags: ["Organizing locations", "Folders"]
---

# Create a new folder

`POST /folders/create`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/folders/create`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/folders/create/post.ts> (a function with typed inputs; its response is checked against the schema)

This API **creates a new folder** to help organize locations within an account. The folder name must be unique across the account.

If a parent folder ID `(parentFolder)` or parent folder name `(parentFolderName)` is not provided, the folder will be created under the root folder.

Folders support a hierarchical structure, allowing subfolders to be organized within parent folders.

## Headers

- `Authorization` string
- `Content-Type` string

## Request body

- CreateFolderRequest
  - `input` object, required
    - `name` string, required: Unique name for the folder
    - `parentFolderName` string: Name of the parent folder (optional)
    - `parentFolder` string: UUID of the parent folder (optional)

## Response `200`

Folder created successfully

- CreateFolderResponse
  - `data` object
    - `createFolder` object
      - `clientMutationId` string, nullable
      - `errors` Error[], nullable
        - `message` string
        - `code` string
        - `contextInfo` object[]
          - `key` string
          - `value` string
      - `folder` FolderV2
        - `accountId` integer: ID of the account owning this folder
        - `archived` boolean: Whether the folder is archived
        - `createdAt` string: UTC timestamp of folder creation
        - `id` string: Unique identifier (UUID) of the folder
        - `locationCount` integer, nullable: Number of locations in this folder
        - `name` string: Name of the folder
        - `root` boolean: Whether this is the root folder
      - `success` boolean

---

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