POST api/User/Delete

Delete user based on user name.

Request Information

URI Parameters

None.

Body Parameters

Login name of the user to be deleted, and Substitute of the user to be deleted

DeleteLoginBinding
NameDescriptionTypeAdditional information
UserName

Login name of the user to be deleted.

string

None.

SubstituteName

Substitute of the user to be deleted.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "SubstituteName": "sample string 2"
}

application/xml, text/xml

Sample:
<DeleteLoginBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DevTrackApi.Bindings">
  <SubstituteName>sample string 2</SubstituteName>
  <UserName>sample string 1</UserName>
</DeleteLoginBinding>

application/x-www-form-urlencoded

Sample:
UserName=value&SubstituteName=value

Response Information

Resource Description

Delete user based on user name.

ApiReturn
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</ApiReturn>