POST
/
api
/
v1
/
unit_types
{
  "@context": "<string>",
  "@id": "<string>",
  "@type": "<string>",
  "id": 123,
  "name": "<string>",
  "namePlural": "<string>",
  "roles": [
    "https://example.com/"
  ],
  "tenant": "https://example.com/",
  "discriminator": "<string>",
  "isLocal": true,
  "parentUnitType": "https://example.com/",
  "unitTypes": [
    "https://example.com/"
  ],
  "hasUserType": true
}

Body

The new UnitType resource

name
string
namePlural
string | null
roles
string<iri-reference>[]
tenant
string<iri-reference>
Example:

"https://example.com/"

discriminator
string | null
isLocal
boolean | null
parentUnitType
string<iri-reference> | null
Example:

"https://example.com/"

unitTypes
string<iri-reference>[]
hasUserType
boolean | null

Response

UnitType resource created

@context
@id
string
@type
string
id
integer
name
string
namePlural
string | null
roles
string<iri-reference>[]
tenant
string<iri-reference>
Example:

"https://example.com/"

discriminator
string | null
isLocal
boolean | null
parentUnitType
string<iri-reference> | null
Example:

"https://example.com/"

unitTypes
string<iri-reference>[]
hasUserType
boolean | null