StarterTemplate ASP.NET Host

<back to all web services

RequestUserDelete

User service

The following routes are available for this service:
DELETE/service/api/v1/depts/{DeptId}/users/{Id}Deletes userThis operation just makes the current user inactive. To delete the user, select Setup\Security\Permanently Delete User. You must have the Delete privilege for Users to be able to delete users.
Parameters:
NameParameterData TypeRequiredDescription
DeptIdpathintYesThe ID of the department that includes the user profile
IdpathintYesThe ID of the user profile you need to delete

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/oneway/RequestUserDelete HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestUserDelete xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Users">
  <DeptId>0</DeptId>
  <Id>0</Id>
</RequestUserDelete>