POST Account/relation_token

Request Information

URI Parameters

None.

Body Parameters

Scanned
NameDescriptionTypeAdditional information
Token

string

None.

UserId

integer

None.

ConnectType

string

Required

Location

string

None.

ScannedDate

date

None.

UniqueId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "UserId": 2,
  "ConnectType": "sample string 3",
  "Location": "sample string 4",
  "ScannedDate": "2018-12-11T01:55:22.1995659-05:00",
  "UniqueId": 6
}

application/xml, text/xml

Sample:
<Scanned xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api.Models">
  <ConnectType>sample string 3</ConnectType>
  <Location>sample string 4</Location>
  <ScannedDate>2018-12-11T01:55:22.1995659-05:00</ScannedDate>
  <Token>sample string 1</Token>
  <UniqueId>6</UniqueId>
  <UserId>2</UserId>
</Scanned>

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

Response Information

Resource Description

ResponseMessage
NameDescriptionTypeAdditional information
status

integer

None.

code

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "code": 2,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonHelper.ResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api">
  <code>2</code>
  <message>sample string 3</message>
  <status>1</status>
</CommonHelper.ResponseMessage>