v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Resources

Create Resources

Using this endpoint you can create Resources.

post/api/v1/add/resource

Request body

activenumber

1 for a active transport map 0 for a disabled transport map

descriptionstring

a description of the resource

domainstring

the domain for which the resource should be

kind'location' | 'group' | 'thing'

the kind of recouse

multiple_bookings'-1' | '1' | 'custom'
multiple_bookings_customnumber

always empty

multiple_bookings_select'-1' | '1' | 'custom'

Example request

{
  "active": "1",
  "description": "test",
  "domain": "mailcow.tld",
  "kind": "location",
  "multiple_bookings": "0",
  "multiple_bookings_custom": "",
  "multiple_bookings_select": "0"
}

Response

OK

type'success' | 'danger' | 'error'