Skip to main content

GetAllVisitorRequestsByHostId

Overview

Returns a list of VisitorViewModels going to see a particular Host that the API token has rights to view.

Request Information


Method

GET - api/Visitor/GetAllVisitorRequestsByHostId/{HostId}

URI Parameters

NameDescriptionTypeAdditional information
HostIdglobally unique identifierRequired

Body Parameters

None.

Response Information


Resource Description

Collection of VisitorViewModel

NameDescriptionTypeAdditional information
VisitorRequestIdRepresents the PK of an existing Visitor Request in BluSKYglobally unique identifierNone.
GuestPersonIdRepresents the PK of an existing Visitor Request Guest in BluSKYglobally unique identifierNone.
GuestFirstNameRepresents the Guest's first/given name.stringNone.
GuestLastNameRepresents the Guest's last name / surname.stringNone.
GuestEmailRepresents the email address of the GueststringNone.
GuestPhoneRepresents the phone number of the GueststringNone.
GuestCompanyNameRepresents the name of the occupancy or vendor instance that the Guest belongs tostringNone.
GroupHashTagRepresents the group name that the Guest may belong to (if provided)stringNone.
VisitationPatternRepresents the visitation pattern that has been requested for the GueststringNone.
MessageRepresents a supplemental message that will be viewable by Security/Reception when the Guest arrivesstringNone.
VisitorTypeIdRepresents a supplemental message that will be viewable by Security/Reception when the Guest arrivesglobally unique identifierNone.
HostPersonIdRepresents the PK of an existing Visitor Request Host in BluSKYglobally unique identifierNone.
HostFirstNameRepresents the Host's first/given name.stringNone.
HostLastNameRepresents the Host's last name / surname.stringNone.
HostEmailRepresents the email address of the HoststringNone.
HostPhoneRepresents the phone number of the HoststringNone.
HostCompanyNameRepresents the name of the occupancy or vendor instance that the Host belongs tostringNone.
FacilityIdRepresents the PK of the facility that the Guest is expected atglobally unique identifierNone.
FacilityNameRepresents the name of the facility that the Guest is expected atstringNone.
ACSystemIdRepresents the PK of the Access Control System that the Host is located inglobally unique identifierNone.
ACSystemNameRepresents the name of the Access Control System that the Host is located instringNone.
RequestedAccessLevelRepresents an Access Level assignments requested by the Requestor for the VisitorAccessLevelViewModelNone.
DeletedRepresents whether the Visitor Request is deleted or not.booleanNone.

Response Formats

JSON

\\\\[ { "VisitorRequestId": "e367175c-0f41-4ba6-91d4-b128fdda5ec6", "GuestPersonId": "46c68c43-d8a5-4a33-9a35-d931ffe07a7d", "GuestFirstName": "sample string 3", "GuestLastName": "sample string 4", "GuestEmail": "sample string 5", "GuestPhone": "sample string 6", "GuestCompanyName": "sample string 7", "GroupHashTag": "sample string 8", "VisitationPattern": "sample string 9", "Message": "sample string 10", "VisitorTypeId": "dd0280b6-84d6-4e9a-a20f-1b33ad4b9c69", "HostPersonId": "9ff16dbf-8995-48db-8b90-458c87ca8494", "HostFirstName": "sample string 13", "HostLastName": "sample string 14", "HostEmail": "sample string 15", "HostPhone": "sample string 16", "HostCompanyName": "sample string 17", "FacilityId": "60cef364-f2ac-4945-949e-fcbbfe9b64b5", "FacilityName": "sample string 18", "ACSystemId": "8d78f84e-cd53-439d-8542-8a829ab95855", "ACSystemName": "sample string 19", "RequestedAccessLevel": { "AccessLevelId": 1, "Name": "sample string 2" }, "Deleted": true }, { "VisitorRequestId": "e367175c-0f41-4ba6-91d4-b128fdda5ec6", "GuestPersonId": "46c68c43-d8a5-4a33-9a35-d931ffe07a7d", "GuestFirstName": "sample string 3", "GuestLastName": "sample string 4", "GuestEmail": "sample string 5", "GuestPhone": "sample string 6", "GuestCompanyName": "sample string 7", "GroupHashTag": "sample string 8", "VisitationPattern": "sample string 9", "Message": "sample string 10", "VisitorTypeId": "dd0280b6-84d6-4e9a-a20f-1b33ad4b9c69", "HostPersonId": "9ff16dbf-8995-48db-8b90-458c87ca8494", "HostFirstName": "sample string 13", "HostLastName": "sample string 14", "HostEmail": "sample string 15", "HostPhone": "sample string 16", "HostCompanyName": "sample string 17", "FacilityId": "60cef364-f2ac-4945-949e-fcbbfe9b64b5", "FacilityName": "sample string 18", "ACSystemId": "8d78f84e-cd53-439d-8542-8a829ab95855", "ACSystemName": "sample string 19", "RequestedAccessLevel": { "AccessLevelId": 1, "Name": "sample string 2" }, "Deleted": true } ]

XML

<ArrayOfVisitorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<VisitorViewModel>
<ACSystemId>8d78f84e-cd53-439d-8542-8a829ab95855</ACSystemId>
<ACSystemName>sample string 19</ACSystemName>
<Deleted>true</Deleted>
<FacilityId>60cef364-f2ac-4945-949e-fcbbfe9b64b5</FacilityId>
<FacilityName>sample string 18</FacilityName>
<GroupHashTag>sample string 8</GroupHashTag>
<GuestCompanyName>sample string 7</GuestCompanyName>
<GuestEmail>sample string 5</GuestEmail>
<GuestFirstName>sample string 3</GuestFirstName>
<GuestLastName>sample string 4</GuestLastName>
<GuestPersonId>46c68c43-d8a5-4a33-9a35-d931ffe07a7d</GuestPersonId>
<GuestPhone>sample string 6</GuestPhone>
<HostCompanyName>sample string 17</HostCompanyName>
<HostEmail>sample string 15</HostEmail>
<HostFirstName>sample string 13</HostFirstName>
<HostLastName>sample string 14</HostLastName>
<HostPersonId>9ff16dbf-8995-48db-8b90-458c87ca8494</HostPersonId>
<HostPhone>sample string 16</HostPhone>
<Message>sample string 10</Message>
<RequestedAccessLevel>
<AccessLevelId>1</AccessLevelId>
`<Name>`sample string 2</Name>
</RequestedAccessLevel>
<VisitationPattern>sample string 9</VisitationPattern>
<VisitorRequestId>e367175c-0f41-4ba6-91d4-b128fdda5ec6</VisitorRequestId>
<VisitorTypeId>dd0280b6-84d6-4e9a-a20f-1b33ad4b9c69</VisitorTypeId>
</VisitorViewModel>
<VisitorViewModel>
<ACSystemId>8d78f84e-cd53-439d-8542-8a829ab95855</ACSystemId>
<ACSystemName>sample string 19</ACSystemName>
<Deleted>true</Deleted>
<FacilityId>60cef364-f2ac-4945-949e-fcbbfe9b64b5</FacilityId>
<FacilityName>sample string 18</FacilityName>
<GroupHashTag>sample string 8</GroupHashTag>
<GuestCompanyName>sample string 7</GuestCompanyName>
<GuestEmail>sample string 5</GuestEmail>
<GuestFirstName>sample string 3</GuestFirstName>
<GuestLastName>sample string 4</GuestLastName>
<GuestPersonId>46c68c43-d8a5-4a33-9a35-d931ffe07a7d</GuestPersonId>
<GuestPhone>sample string 6</GuestPhone>
<HostCompanyName>sample string 17</HostCompanyName>
<HostEmail>sample string 15</HostEmail>
<HostFirstName>sample string 13</HostFirstName>
<HostLastName>sample string 14</HostLastName>
<HostPersonId>9ff16dbf-8995-48db-8b90-458c87ca8494</HostPersonId>
<HostPhone>sample string 16</HostPhone>
<Message>sample string 10</Message>
<RequestedAccessLevel>
<AccessLevelId>1</AccessLevelId>
`<Name>`sample string 2</Name>
</RequestedAccessLevel>
<VisitationPattern>sample string 9</VisitationPattern>
<VisitorRequestId>e367175c-0f41-4ba6-91d4-b128fdda5ec6</VisitorRequestId>
<VisitorTypeId>dd0280b6-84d6-4e9a-a20f-1b33ad4b9c69</VisitorTypeId>
</VisitorViewModel>
</ArrayOfVisitorViewModel>