v2

latestOpenAPI 3.1.0Proprietary - Licensed to Authorized Customers Only2026-07-31611061.1 MB
Unit

Create a new Unit

Create a new Unit

post/unit

Request body

titlestring required

The title of the unit

descriptionstring nullable

The description of the unit

Example request

{
  "external": {
    "sourceID": "12345678"
  },
  "title": "Norra distriktet",
  "description": "Norra grundskole- och förskoleenheten"
}

Response

Response for Unit Create operation - returns the created Unit

idstring uuid required

Unique identifier for the Unit

titlestring required

The title of the unit

descriptionstring nullable

The description of the unit

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "meta": {
    "createdAt": "2024-01-15T10:30:00Z",
    "createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
    "updatedAt": "2024-01-15T14:45:00Z",
    "updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
  },
  "external": {
    "sourceID": "12345678",
    "source": "ExternalIntegrationAPI"
  },
  "title": "Norra distriktet",
  "description": "Norra grundskole- och förskoleenheten"
}