StarterTemplate ASP.NET Host

<back to all web services

RequestUserById

User service

The following routes are available for this service:
GET/service/api/v1/depts/{DeptId}/users/{Id}Return user by id
Parameters:
NameParameterData TypeRequiredDescription
DeptIdpathintYesThe ID of the department that includes the user profile
IdpathintYesThe ID of the user profile you need to get

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/reply/RequestUserById HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestUserById 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>
</RequestUserById>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseSingleUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Users">
  <CellPhone>String</CellPhone>
  <Comments>String</Comments>
  <CompanyName>String</CompanyName>
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <DateFirstLogon>0001-01-01T00:00:00</DateFirstLogon>
  <DateLastLogon>0001-01-01T00:00:00</DateLastLogon>
  <DateUpdated>0001-01-01T00:00:00</DateUpdated>
  <Email>String</Email>
  <Fax>String</Fax>
  <FirstName>String</FirstName>
  <Grouping>String</Grouping>
  <HomePhone>String</HomePhone>
  <Id>0</Id>
  <ImportId>0</ImportId>
  <IsActive>false</IsActive>
  <IsLoggedOn>false</IsLoggedOn>
  <IsSecurityAdmin>false</IsSecurityAdmin>
  <LastName>String</LastName>
  <MiddleName>String</MiddleName>
  <NbrTimesLogon>0</NbrTimesLogon>
  <OtherPhone>String</OtherPhone>
  <Pager>String</Pager>
  <PrimaryDeptId>0</PrimaryDeptId>
  <RemoteUserId>String</RemoteUserId>
  <SubGrouping>String</SubGrouping>
  <TimeZoneCode>String</TimeZoneCode>
  <Title>String</Title>
  <UpdateUserId>0</UpdateUserId>
  <UpdateUserName>String</UpdateUserName>
  <WebSite>String</WebSite>
  <WorkPhone>String</WorkPhone>
</ResponseSingleUser>