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": "2022-12-02T02:55:25.8321276+00:00",
    "DateCreated": "2022-12-02T02:55:25.8321276+00:00",
    "UserName": "sample string 2",
    "AccessToken": "d19213c8-df86-43d1-bb63-db4b3849e3f8",
    "MembershipId": 1
  },
  "PhoneLogin": {
    "Id": 1,
    "PhoneNumber": "sample string 2",
    "AccessCode": "sample string 3",
    "Expiration": "2022-12-02T02:55:25.8321276+00:00",
    "DateCreated": "2022-12-02T02:55:25.8321276+00:00",
    "UserName": "sample string 2",
    "AccessToken": "855be9c1-85e7-420e-ad30-7405480fa7ca",
    "MembershipId": 1
  }
}

text/html

Sample:
{"EmailLogin":{"Id":1,"Email":"sample string 2","AccessCode":"sample string 3","Expiration":"2022-12-02T02:55:25.8321276+00:00","DateCreated":"2022-12-02T02:55:25.8321276+00:00","UserName":"sample string 2","AccessToken":"d19213c8-df86-43d1-bb63-db4b3849e3f8","MembershipId":1},"PhoneLogin":{"Id":1,"PhoneNumber":"sample string 2","AccessCode":"sample string 3","Expiration":"2022-12-02T02:55:25.8321276+00:00","DateCreated":"2022-12-02T02:55:25.8321276+00:00","UserName":"sample string 2","AccessToken":"855be9c1-85e7-420e-ad30-7405480fa7ca","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>d19213c8-df86-43d1-bb63-db4b3849e3f8</d2p1:AccessToken>
    <d2p1:DateCreated>2022-12-02T02:55:25.8321276+00:00</d2p1:DateCreated>
    <d2p1:Email>sample string 2</d2p1:Email>
    <d2p1:Expiration>2022-12-02T02:55:25.8321276+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>855be9c1-85e7-420e-ad30-7405480fa7ca</d2p1:AccessToken>
    <d2p1:DateCreated>2022-12-02T02:55:25.8321276+00:00</d2p1:DateCreated>
    <d2p1:Expiration>2022-12-02T02:55:25.8321276+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.