Delete Tenant

Modified on Wed, 18 Jun at 5:53 PM

Description: 

This API is used to delete a tenant


API Endpoint: 

/ws/TenantManagementService

 

Method: 

POST

 

Header: 

 

Field

Value

SOAPAction

/ws/TenantManagementService.wsdl

 

Request:


XML Element

Type

Value

<wsse:Username>

String

Smarten username

<wsse:Password>

String

Smarten user password

<tenandId>

String

Smarten tenantid, which you want to delete 


Request Example: 


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ten="http://www.elegantjbi.com/ws/tenantmanagement">

   <soapenv:Header>

      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

         <wsse:UsernameToken wsu:Id="UsernameToken-BB7867CFB225EFE7DB16916727623092">

            <wsse:Username>username</wsse:Username>

            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <ten:deleteTenantRequest>

         <!--1 or more repetitions:-->

         <tenantId>tenantId</tenantId>

      </ten:deleteTenantRequest>

   </soapenv:Body>

</soapenv:Envelope>

 

Response:  

 

Return a response with SOAP XML as object. 

 

XML Element 

Type

Value

<ns2:statusCode>

String

Return the API status response

 

Response Example: 

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

    <SOAP-ENV:Header>

        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">

            <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1750054569219-704418677">

                <wsse:Username>user</wsse:Username>

                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">jxc0y5UtPpYM7MMPYuUWBxEpcoc=</wsse:Password>

                <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">+zcXIi/YAHZdy4z/5cu5dYYt</wsse:Nonce>

                <wsu:Created>2025-06-18T07:31:53.191Z</wsu:Created>

            </wsse:UsernameToken>

        </wsse:Security>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <ns3:deleteTenantResponse xmlns:ns3="http://www.elegantjbi.com/ws/tenantmanagement">

            <status>

                <statusCode>Success</statusCode>

            </status>

        </ns3:deleteTenantResponse>

    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

Postman Example: 

 

You can import the example below into Postman. 

 

curl --location 'http://<SMARTENURL>/smarten/ws/TenantManagementService' \

--header 'Content-Type: text/xml; charset=utf-8' \

--data-raw '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ten="http://www.elegantjbi.com/ws/tenantmanagement">

   <soapenv:Header>

      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

         <wsse:UsernameToken wsu:Id="UsernameToken-BB7867CFB225EFE7DB16916727623092">

            <wsse:Username>username</wsse:Username>

            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <ten:deleteTenantRequest>

         <!--1 or more repetitions:-->

         <tenantId>tenantid</tenantId>

      </ten:deleteTenantRequest>

   </soapenv:Body>

</soapenv:Envelope>'


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article