---
title: "Create a new category object"
method: POST
path: "/{apiKey}/api/categories"
tags: ["Categories"]
---

# Create a new category object

`POST /{apiKey}/api/categories`

## Oauth2 Roles ##  
 - Requires user to have one of the following roles: admin, editor, owner, service

## Path parameters

- `apiKey` string, required

## Request body

- GeoDataGroup[]
  - `id` string, nullable
  - `key` string, nullable
  - `name` object, nullable
  - `icon` string, nullable
  - `imageUrl` string, nullable
  - `properties` object, nullable

## Response `200`

OK

## Other responses

- `201` — Created
- `400` — BadRequest
- `401` — Unauthorized. User needs to login first.
- `409` — Conflict

---

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