PUT api/admin/login/info

Request Information

URI Parameters

None.

Body Parameters

HomeAsapLoginInfo
NameDescriptionTypeAdditional information
EmailLogin

EmailLogin

None.

PhoneLogin

PhoneLogin

None.

Request Formats

application/json, text/json

Sample:
{
  "EmailLogin": {
    "Id": 1,
    "Email": "sample string 2",
    "AccessCode": "sample string 3",
    "Expiration": "2021-08-03T11:00:05.500162+00:00",
    "DateCreated": "2021-08-03T11:00:05.500162+00:00",
    "UserName": "sample string 2",
    "AccessToken": "e1e392e1-49f4-4a2b-8ba5-3bdce98c0bc9",
    "MembershipId": 1
  },
  "PhoneLogin": {
    "Id": 1,
    "PhoneNumber": "sample string 2",
    "AccessCode": "sample string 3",
    "Expiration": "2021-08-03T11:00:05.500162+00:00",
    "DateCreated": "2021-08-03T11:00:05.500162+00:00",
    "UserName": "sample string 2",
    "AccessToken": "4771c7e7-bf0a-4c29-8b26-ed79ab3dda1d",
    "MembershipId": 1
  }
}

text/html

Sample:
{"EmailLogin":{"Id":1,"Email":"sample string 2","AccessCode":"sample string 3","Expiration":"2021-08-03T11:00:05.500162+00:00","DateCreated":"2021-08-03T11:00:05.500162+00:00","UserName":"sample string 2","AccessToken":"e1e392e1-49f4-4a2b-8ba5-3bdce98c0bc9","MembershipId":1},"PhoneLogin":{"Id":1,"PhoneNumber":"sample string 2","AccessCode":"sample string 3","Expiration":"2021-08-03T11:00:05.500162+00:00","DateCreated":"2021-08-03T11:00:05.500162+00:00","UserName":"sample string 2","AccessToken":"4771c7e7-bf0a-4c29-8b26-ed79ab3dda1d","MembershipId":1}}

application/xml, text/xml

Sample:
<HomeAsapLoginInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <EmailLogin xmlns:d2p1="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
    <d2p1:AccessCode>sample string 3</d2p1:AccessCode>
    <d2p1:AccessToken>e1e392e1-49f4-4a2b-8ba5-3bdce98c0bc9</d2p1:AccessToken>
    <d2p1:DateCreated>2021-08-03T11:00:05.500162+00:00</d2p1:DateCreated>
    <d2p1:Email>sample string 2</d2p1:Email>
    <d2p1:Expiration>2021-08-03T11:00:05.500162+00:00</d2p1:Expiration>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:MembershipId>1</d2p1:MembershipId>
  </EmailLogin>
  <PhoneLogin xmlns:d2p1="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
    <d2p1:AccessCode>sample string 3</d2p1:AccessCode>
    <d2p1:AccessToken>4771c7e7-bf0a-4c29-8b26-ed79ab3dda1d</d2p1:AccessToken>
    <d2p1:DateCreated>2021-08-03T11:00:05.500162+00:00</d2p1:DateCreated>
    <d2p1:Expiration>2021-08-03T11:00:05.500162+00:00</d2p1:Expiration>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:MembershipId>1</d2p1:MembershipId>
    <d2p1:PhoneNumber>sample string 2</d2p1:PhoneNumber>
  </PhoneLogin>
</HomeAsapLoginInfo>

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 'HomeAsapLoginInfo'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.