POST api/Logout

Logs out an authenticated user.

Request Information

URI Parameters

None.

Body Parameters

LogoutRequest
NameDescriptionTypeAdditional information
SessionKey

string

Required

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1"
}

application/xml, text/xml

Sample:
<LogoutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account">
  <SessionKey>sample string 1</SessionKey>
</LogoutRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LogoutRequest'.

Response Information

Resource Description

LogoutResult object

ApiSuccessOfLogoutResult
NameDescriptionTypeAdditional information
Success

boolean
Data

LogoutResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "LoggedOut": true
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfLogoutResultgLC8bFpX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account">
    <d2p1:LoggedOut>true</d2p1:LoggedOut>
  </Data>
</ApiSuccessOfLogoutResultgLC8bFpX>