---
title: "Create a folder. Move QRs with PATCH /api/v1/qrs/{id} {folderId}."
method: POST
path: "/api/v1/folders"
tags: ["Folders"]
---

# Create a folder. Move QRs with PATCH /api/v1/qrs/{id} {folderId}.

`POST /api/v1/folders`

## Request

- Base URL: `https://qrlia.dev.castlesoft.eu`
- URL: `https://qrlia.dev.castlesoft.eu/api/v1/folders`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `qrc_session`

## Request body

- object
  - `name` string, required
  - `companyId` string, uuid: Company the folder belongs to. Defaults to your active/pinned company.

## Response `201`

Created

- Folder
  - `id` string, uuid, required
  - `name` string, required
  - `companyId` string, uuid, required
  - `qrCount` integer, required
  - `createdAt` string, date-time, required

## Other responses

- `400`: Validation failed
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `500`: Internal

---

[API](https://skmtc.dev/qrlia/apis/qrlia-api.md) · [All operations](https://skmtc.dev/qrlia/apis/qrlia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qrlia/apis/qrlia-api/revisions/01c5dd6002ab?raw)
