Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Move an organization unit

Resource URL

URL: organizationUnit/move


Parameters

string username
required

Username

string password
required

Password

string externalId
required

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

boolean parentExternalId
optional

External ID of the new parent for the organization unit. If empty the organization unit will be moved to root of the hierarchy


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/move

POST DATA

externalId=BOP001&parentExternalId=BOP002&username=username&password=secret

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