---
title: "Create a new area"
method: POST
path: "/api/analytics/areas"
tags: ["analytics"]
---

# Create a new area

`POST /api/analytics/areas`

## Request

- Base URL: `https://codescene.io` (the document declares no server; this is the origin it was published from)
- URL: `https://codescene.io/api/analytics/areas`
- Auth: none declared

## Request body

- object
  - `name` string, required
  - `parentAreaId` integer

## Response `201`

- Area
  - `id` integer, required
  - `name` string, required
  - `parentAreaId` integer, nullable
  - `areas` unknown[]
    - unknown
  - `projects` unknown[]
    - unknown

## Other responses

- `400`
- `401`
- `403`
- `404`

---

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