---
title: "Create Resources"
method: POST
path: "/api/v1/add/resource"
tags: ["Resources"]
---

# Create Resources

`POST /api/v1/add/resource`

Using this endpoint you can create Resources.

## Request body

- object
  - `active` number — 1 for a active transport map 0 for a disabled transport map
  - `description` string — a description of the resource
  - `domain` string — the domain for which the resource should be
  - `kind` 'location' | 'group' | 'thing' — the kind of recouse
  - `multiple_bookings` '-1' | '1' | 'custom'
  - `multiple_bookings_custom` number — always empty
  - `multiple_bookings_select` '-1' | '1' | 'custom'

## Response `200`

OK

- object
  - `log` unknown[] — contains request object
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) · [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailcow/mailcow-api/revisions/ae01d1d7886a/schema)
