You can edit the name and the code of a department or change its parent department with the updateDepartment method.
Permissions to run the request: Account Owner, Administrators, Department Administrators.
Department Administrators can update only the department they manage and its daughter departments.
|credentials (required)||credentials||Read the description of the Credentials object.|
|departmentId (required)||string||ID of the department you want to edit.|
|name (optional)||string||Name of the department.|
|code (optional)||string||Code of the department.|
|parentDepartmentId (optional)||string||ID of the parent department.|
|success||bool||True if the department was successfully updated.|
|Unknown Department||The department is not found.|
The user doesn't have enough permissions to update the information about the department.
|Wrong Parameters||One of the specified parameters is wrong.|