Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Edit an organization unit

Resource URL

URL: organizationUnit/edit


Parameters

string username
required

Username

string password
required

Password

string externalId
required

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

string name
optional

Name of the organization unit

boolean visible
optional

Should the new unit be visible for students?

boolean selectable
optional

Should the new unit be selectable for students?

string newExternalId
optional
New external ID of the unit.

Values not present in the request will not be changed for the organization unit.

Return value

The method returns information about the edited 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/edit

POST DATA

name=Technical&visible=true&selectable=false&username=username&password=secret

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