PUT api/Session

If called without a sessionRequest object this will create a new placeholder session which is not logged in. Items can be added to the basket for this session, and then the user can log in later. If called with a sessionRequest and a SessionId in the headers, it will log in an existing session.

Request Information

URI Parameters

None.

Body Parameters

SessionRequest

SessionRequest
NameDescriptionTypeAdditional information
Email

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "password": "sample string 2"
}

application/xml, text/xml

Sample:
<SessionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Monad.Service.REST.Models">
  <Email>sample string 1</Email>
  <Password>sample string 2</Password>
</SessionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Session

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.