Create an organization unit
Resource URL
URL: organizationUnit/create
Parameters
string username | Username |
string password | Password |
string externalId | External ID of the new unit. This must be unique for the hierarchy. |
string name | Name of organization unit |
string parentExternalId | 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 | Should the new unit be visible for students? |
boolean selectable | Should the new unit be selectable for students? |
Return value
The method returns information about the created 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/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"
}