iSpring LMS API Documentation REST API Managing Departments Current: Getting Department Info Getting Department Info AVAILABLE WITH ENTERPRISE SUBSCRIPTIONRequest: GET /department/{departmentId}Permissions to Run the RequestAccount Owner, Account Administrators, Department Administrators, or custom roles. Department Administrators and users with a custom role can get information only on the department they manage and its enclosed departments.Request HeadersParameterDescriptionAuthorization (required)Access token. You can obtain a token by making a request+Response ParametersParameterDescriptiondepartmentIdThe department IDnameThe name of departmentcodeThe department codesubordination (optional)An array with data on the type of department supervisor subordinationcoSubordination (optional)An array with data on the type of functional manager subordinationsubordinationType (required)The type of supervisor and functional manager subordinationinherit — Inherit from parent departmentmanual — Assign manuallyno_supervisor — No supervisorsupervisorId (optional)The supervisor and functional manager IDSpecify the supervisor ID, if subordinationType = manual-If subordinationType = inherit, no_supervisor, there is no need to specify the supervisor ID Existing customers may continue using ispringlearn.com, and new customers should use ispring.com. Possible Response CodesCodeTextDescription200OKThe request was successfully processed. The response body contains xml info on the department400Bad RequestA request error401UnauthorizedAn authorization error403Permission DeniedThe user doesn't have enough permissions to get information on the departmentSample Request GET /department/d479bc48-5b70-11e9-b123-22e9fbac4a59 https/1.1 Host: api-learn.ispringlearn.com Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE XML Sample Response https/1.1 200 OK <?xml version="1.0"?> <response> <department> <departmentId>d479bc48-5b70-11e9-b123-22e9fbac4a59</departmentId> <name>Sales Department</name> <parentDepartmentId>b00ba37c-5b6f-11e9-bb45-0a580af40556</parentDepartmentId> <code>5</code> </department> </response> XML ×