Page tree
Skip to end of metadata
Go to start of metadata

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 OwnerAdministratorsDepartment Administrators.

Department Administrators can update only the department they manage and its daughter departments.


credentials (required)credentialsRead the description of the Credentials object.
departmentId (required)stringID of the department you want to edit.
name (optional)stringName of the department.
code (optional)stringCode of the department.
parentDepartmentId (optional)stringID of the parent department.

Return Values

successboolTrue if the department was successfully updated.

Possible Errors

Unknown DepartmentThe department is not found.
Permission denied

The user doesn't have enough permissions to update the information about the department.

Wrong ParametersOne of the specified parameters is wrong.

Пример запроса

POST /api/v2/soap/2.0 HTTP/1.1
SOAPAction: "updateDepartment"

<?xml version="1.0" encoding="utf-8"?>
  <SOAP-ENV:Envelope xmlns:SOAP-ENV=""
        <name>Quality Assurance</name>

Пример ответа

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=""
  • No labels