edubase_patch_organization_department
Update an organization's department details, including name, parent, and leaders. Changed permission levels are applied to every member of the department.
Instructions
Update department of an organization. Changed permissions are applied to every member of the department.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | external unique department identifier, empty string removes it | |
| title | No | new name of the department, must be unique within the organization | |
| parent | No | name (or external identifier) of the parent department, empty string moves the department to the root level, the department itself or a department below it cannot be the parent | |
| leaders | No | comma-separated list of user identification strings of the leaders (must be members of the organization, maximum 5), replaces the current leaders, empty string removes every leader | |
| department | Yes | name of the department (or its external identifier if no department has this name) | |
| organization | Yes | organization identification string | |
| permission_content | No | permission level to contents in organization given to the members (none / view / report / control / modify / grant / admin) | |
| permission_members | No | permission level to members in organization given to the members (none / department / organization) | |
| permission_organization | No | permission level to organization given to the members (member / teacher / reporter / supervisor / admin) |