Skip to main content
Version: 2.2.1

editOrganizationalUnit

This method allows editing an organizational unit. To edit these data, it is necessary to follow the standard documented below.

Java class
Requestweb/wwwroot/ws/java/admin/ChangeUserStatusRequestType.java
Returnweb/wwwroot/ws/java/administration/ChangeUserStatusResponseType.java

Request:

ID #RequiredDescription
IdXOrganizational unit ID #
NameXOrganizational unit name
IdUpperUpper organizational unit ID #
Note: When it is sent without value, it deletes the Upper organizational unit (if any) and moves it to the root

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:editOrganizationalUnit>
<!--You may enter the following 3 items in any order-->
<urn:Id>?</urn:Id>
<urn:Name>?</urn:Name>
<urn:IdUpper>?</urn:IdUpper>
</urn:editOrganizationalUnit>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Record edited successfully
FAILURE: Message regarding the error that occurred
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred
CodeDescription
43The ID # has no value
44Name has no value
52Organizational unit has no value
53Inexistent upper level organizational unit
54[IdUpper] unit is a sublevel of [Id].
57The organizational unit cannot be the lower level of a department