Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Create an organization unit

Resource URL

URL: organizationUnit/create


Parameters

string username
required

Username

string password
required

Password

string externalId
required

External ID of the new unit. This must be unique for the hierarchy.

string name
required

Name of organization unit

string parentExternalId
optional

External ID of parent unit of the new unit. If empty, the new unit will be created as a root organization unit in the hierarchy

boolean visible
optional

Should the new unit be visible for students?
Default value: true

boolean selectable
optional

Should the new unit be selectable for students?
Default value: true


Return value

The method returns information about the created organization unit

name

Name of the unit

externalIdExternal ID of the unit
parentExternalIdExternal ID of the parent of the unit
visibleTRUE if the unit is visible for students
selectableTRUE if the unit is selectable for students


Example request

URL

https://www.trainingportal.no/mintra/rest/organizationUnit/create

POST DATA

name=Technical&externalId=BOP001&parentExternalId=BOP000&visible=true&username=username&password=secret

{
"name": "Technical",
"externalId": "BOP001",
"parentExternalId":"BOP000",
"visible":"true",
"selectable":"true"
}