POST api/UserManagement/CreateSession

Create user session for valid OAuth access token

Request Information

URI Parameters

None.

Body Parameters

OAuth access token details

AccessTokenDto
NameDescriptionTypeAdditional information
UserName

string

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

AccessToken

string

None.

ClientId

string

None.

ClientSecret

string

None.

SessionType

SessionType

None.

AppCode

string

None.

UserHostAddress

string

None.

UPPRId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "FirstName": "sample string 2",
  "MiddleName": "sample string 3",
  "LastName": "sample string 4",
  "AccessToken": "sample string 5",
  "ClientId": "sample string 6",
  "ClientSecret": "sample string 7",
  "SessionType": 0,
  "AppCode": "sample string 8",
  "UserHostAddress": "sample string 9",
  "UPPRId": "sample string 10"
}

application/xml, text/xml

Sample:
<AccessTokenDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
  <AccessToken>sample string 5</AccessToken>
  <AppCode>sample string 8</AppCode>
  <ClientId>sample string 6</ClientId>
  <ClientSecret>sample string 7</ClientSecret>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 4</LastName>
  <MiddleName>sample string 3</MiddleName>
  <SessionType>None</SessionType>
  <UPPRId>sample string 10</UPPRId>
  <UserHostAddress>sample string 9</UserHostAddress>
  <UserName>sample string 1</UserName>
</AccessTokenDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AuthTicket object

ResponseOfAuthTicket
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

AuthTicket

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": null
}

application/xml, text/xml

Sample:
<ResponseOfAuthTicketkvwhp91_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User" i:nil="true" />
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfAuthTicketkvwhp91_P>