Edit an organization unit
Resource URL
URL: organizationUnit/edit
Parameters
string username | Username |
string password | Password |
string externalId | External ID of the unit. This must be unique for the hierarchy. |
string name | Name of the organization unit |
boolean visible | Should the new unit be visible for students? |
boolean selectable | 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 |
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/edit |
POST DATA | name=Technical&visible=true&selectable=false&username=username&password=secret |
{
"name": "Technical",
"externalId": "BOP001",
"parentExternalId":"BOP000",
"visible":"true",
"selectable":"false"
}