Move an organization unit
Resource URL
URL: organizationUnit/move
Parameters
string username | Username |
string password | Password |
string externalId | External ID of the unit. This must be unique for the hierarchy. |
boolean parentExternalId | 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 |
externalId | External ID of the unit |
parentExternalId | External ID of the parent of the unit |
visible | TRUE if the unit is visible for students |
selectable | TRUE 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"
}