Account Owner, Account Administrators, or custom roles.
Parameter | Type | Description |
---|---|---|
token (required) | string | Access token. You can obtain a token by making a request. |
name (required) | string | The name of the new department. |
parentDepartmentId (required) | string | The ID of the parent department. |
code (optional) | string | The department code. |
Parameter | Type | Description |
---|---|---|
departmentId | string | The ID of the created department. |
Error | Description |
---|---|
Permission denied | The user has no permissions to add departments. |
Wrong parameters | The system failed to process the request because it did not contain all necessary parameters. |
<?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <AddDepartmentRequest> <credentials> <token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</token> </credentials> <name>string</name> <parentDepartmentId>string</parentDepartmentId> <code>string</code> </AddDepartmentRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <AddDepartmentResult> <departmentId>string</departmentId> </AddDepartmentResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |