POST api/Visitor/SubmitVisitRequest?access_token={access_token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
access_token

string

Required

Body Parameters

CreateInput
NameDescriptionTypeAdditional information
Id

integer

None.

VisitorName

string

None.

VisitorPhone

string

None.

VisitorEmail

string

None.

VisitorIdCard

string

None.

VisitorCompany

string

None.

VisitedName

string

None.

VisitedPhone

string

None.

VisitType

integer

None.

PlaneVisitBeginDate

date

None.

PlaneVisitEndDate

date

None.

VisitSubject

string

None.

AppId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "VisitorName": "sample string 2",
  "VisitorPhone": "sample string 3",
  "VisitorEmail": "sample string 4",
  "VisitorIdCard": "sample string 5",
  "VisitorCompany": "sample string 6",
  "VisitedName": "sample string 7",
  "VisitedPhone": "sample string 8",
  "VisitType": 9,
  "PlaneVisitBeginDate": "2022-11-28 03:48:25",
  "PlaneVisitEndDate": "2022-11-28 03:48:25",
  "VisitSubject": "sample string 12",
  "AppId": "sample string 13"
}

application/xml, text/xml

Sample:
<CreateInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Strong.WebAPI.Model.VisitorManage">
  <AppId>sample string 13</AppId>
  <Id>1</Id>
  <PlaneVisitBeginDate>2022-11-28T03:48:25.7506033+08:00</PlaneVisitBeginDate>
  <PlaneVisitEndDate>2022-11-28T03:48:25.7506033+08:00</PlaneVisitEndDate>
  <VisitSubject>sample string 12</VisitSubject>
  <VisitType>9</VisitType>
  <VisitedName>sample string 7</VisitedName>
  <VisitedPhone>sample string 8</VisitedPhone>
  <VisitorCompany>sample string 6</VisitorCompany>
  <VisitorEmail>sample string 4</VisitorEmail>
  <VisitorIdCard>sample string 5</VisitorIdCard>
  <VisitorName>sample string 2</VisitorName>
  <VisitorPhone>sample string 3</VisitorPhone>
</CreateInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseResult
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<ResponseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrongWebAPI.Areas.VisitorManage">
  <data />
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
</ResponseResult>