PUT api/v1/VisitorRequests/{id}

Updates a single VisitorRequest that is already in the system. Returns Success/Error code.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Represents the PK of an existing Visitor Request in BluSKY

globally unique identifier

Required

Body Parameters

AddUpdateVisitorRequestViewModel
NameDescriptionTypeAdditional information
VisitorRequestId

Conditional: Represents the PK of an existing Visitor Request in BluSKY if calling an Update method. Not used for Add methods

globally unique identifier

None.

GuestPersonId

Conditional: Represents the PK of an existing Visitor Request Guest in BluSKY if calling an Update method. Not used for Add methods

globally unique identifier

None.

GuestFirstName

Required: Represents the Guest's first/given name. Max Length = 60

string

Max length: 60

GuestLastName

Required: Represents the Guest's last name / surname. Max Length = 60

string

Max length: 60

GuestEmail

Optional: Represents the email address of the Guest

string

None.

GuestPhone

Optional: Represents the phone number of the Guest

string

None.

GuestCompanyName

Optional: Represents the name of the occupancy or vendor instance that the Guest belongs to

string

None.

GroupHashTag

Optional: Represents the group name that the Guest may belong to (if provided)

string

None.

VisitationPattern

Required: Represents the visitation pattern that has been requested for the Guest

string

None.

Message

Optional: Represents a supplemental message that will be viewable by Security/Reception when the Guest arrives

string

None.

VisitorTypeId

Required: Represents a supplemental message that will be viewable by Security/Reception when the Guest arrives. Retrieve possible values from /Visitor/GetAllVisitorTypes

globally unique identifier

None.

HostPersonId

Required: Represents the PK of an existing Visitor Request Host in BluSKY. Used for both Add and Update

globally unique identifier

None.

FacilityId

Required: Represents the PK of the facility that the Guest is expected at. Retrieve possible values from /Facility/GetAllFacilities

globally unique identifier

None.

ACSystemId

Required: Represents the PK of the Access Control System that the Host is located in. Retrieve possible values from /ACSystem/GetAllSystems

globally unique identifier

None.

Floors

Optional: Represents the list of floors that the Guest will be allowed to visit if Access Levels are not being used.

Collection of FloorsViewModel

None.

RequestedAccessLevelId

Optional: Represents an Access Level assignments requested by the Requestor for the Visitor. Retrieve possible values from /AccessLevel/GetAllAccessLevels

integer

None.

Deleted

Required: Represents whether the Visitor Request is deleted or not. Should be false for Add methods.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "VisitorRequestId": "dba2d1a8-0c66-43fa-a760-d4eb5417e2d3",
  "GuestPersonId": "857d52fc-0b12-4272-9dad-7520cd17ac4c",
  "GuestFirstName": "sample string 1",
  "GuestLastName": "sample string 2",
  "GuestEmail": "sample string 3",
  "GuestPhone": "sample string 4",
  "GuestCompanyName": "sample string 5",
  "GroupHashTag": "sample string 6",
  "VisitationPattern": "sample string 7",
  "Message": "sample string 8",
  "VisitorTypeId": "784338df-41f4-401e-b8a0-2874b532be0a",
  "HostPersonId": "7fd766c7-e505-4c4c-a45c-9ba822651ffb",
  "FacilityId": "f4541791-2165-419c-a812-e152d7db9d37",
  "ACSystemId": "dcc34ff7-54d1-4458-a9ef-2b8e3fd72c7d",
  "Floors": [
    {
      "FloorId": "65f7f30b-7706-4e7d-a22d-d5af7d883a8e",
      "Name": "sample string 2",
      "PhysicalSequence": 3,
      "Deleted": true
    },
    {
      "FloorId": "65f7f30b-7706-4e7d-a22d-d5af7d883a8e",
      "Name": "sample string 2",
      "PhysicalSequence": 3,
      "Deleted": true
    }
  ],
  "RequestedAccessLevelId": 1,
  "Deleted": true
}

application/xml, text/xml

Sample:
<AddUpdateVisitorRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <ACSystemId>dcc34ff7-54d1-4458-a9ef-2b8e3fd72c7d</ACSystemId>
  <Deleted>true</Deleted>
  <FacilityId>f4541791-2165-419c-a812-e152d7db9d37</FacilityId>
  <Floors>
    <FloorsViewModel>
      <Deleted>true</Deleted>
      <FloorId>65f7f30b-7706-4e7d-a22d-d5af7d883a8e</FloorId>
      <Name>sample string 2</Name>
      <PhysicalSequence>3</PhysicalSequence>
    </FloorsViewModel>
    <FloorsViewModel>
      <Deleted>true</Deleted>
      <FloorId>65f7f30b-7706-4e7d-a22d-d5af7d883a8e</FloorId>
      <Name>sample string 2</Name>
      <PhysicalSequence>3</PhysicalSequence>
    </FloorsViewModel>
  </Floors>
  <GroupHashTag>sample string 6</GroupHashTag>
  <GuestCompanyName>sample string 5</GuestCompanyName>
  <GuestEmail>sample string 3</GuestEmail>
  <GuestFirstName>sample string 1</GuestFirstName>
  <GuestLastName>sample string 2</GuestLastName>
  <GuestPersonId>857d52fc-0b12-4272-9dad-7520cd17ac4c</GuestPersonId>
  <GuestPhone>sample string 4</GuestPhone>
  <HostPersonId>7fd766c7-e505-4c4c-a45c-9ba822651ffb</HostPersonId>
  <Message>sample string 8</Message>
  <RequestedAccessLevelId>1</RequestedAccessLevelId>
  <VisitationPattern>sample string 7</VisitationPattern>
  <VisitorRequestId>dba2d1a8-0c66-43fa-a760-d4eb5417e2d3</VisitorRequestId>
  <VisitorTypeId>784338df-41f4-401e-b8a0-2874b532be0a</VisitorTypeId>
</AddUpdateVisitorRequestViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddUpdateVisitorRequestResult
NameDescriptionTypeAdditional information
GuestPersonId

Represents a person ID of a visitor

globally unique identifier

None.

VisitorRequestInstances

Contains all existing future visitor request instances for a given request

Collection of VisitorRequestInstanceViewModel

None.

Value

Represents the PK value that was created as a result of an add

globally unique identifier

None.

ResultCode

Represents the result code

integer

None.

Description

Represents a description of the result code

string

None.

Response Formats

application/json, text/json

Sample:
{
  "GuestPersonId": "634096a3-9b20-4868-bdac-417deb1500d2",
  "VisitorRequestInstances": [
    {
      "VisitorRequestInstanceId": "a681d602-f638-4fc9-b7bd-ff5bed4c1262",
      "VisitorRequestId": "4c6bfe04-6b5e-4543-ab1a-7e821617494a",
      "DateExpected": "2025-10-18T07:26:18.1370848+00:00",
      "DateTimeArrived": "2025-10-18T07:26:18.1370848+00:00",
      "AssignedAccessLevelId": 1,
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "MiddleInitial": "sample string 6",
      "GuestCompany": "sample string 7",
      "HostPersonId": "6e8e6228-8d4f-49ba-9b56-15626bd8ec87",
      "Message": "sample string 9",
      "sVisitorTypeId": "674ea984-2db4-4044-91fd-98fa20730154",
      "GroupHashTag": "sample string 11",
      "VisitorStatus": 0,
      "Deleted": true,
      "Card": {
        "PersonCardId": "b8d22208-6e15-4ef5-9ad3-9fff3f34ebf5",
        "CardName": "sample string 2",
        "CardId": "a418d62a-aed8-4ae0-8cc1-74f29f43c0d8",
        "CardType": 4,
        "CardACSystemId": "2c542eeb-4095-44f3-8302-a39f72ab309f",
        "CardACSystemName": "sample string 6",
        "InternalCardNumber": 7,
        "ExternalCardNumber": "sample string 8",
        "CardSerialNumber": 1,
        "FacilityCode": 9,
        "IssueCode": 10,
        "PIN": "sample string 11",
        "Deleted": true,
        "HidInvitationCode": "sample string 13",
        "InvitationRedeemedDateTime": "2025-10-18T07:26:18.1370848+00:00",
        "DateInserted": "2025-10-18T07:26:18.1370848+00:00",
        "DateUpdated": "2025-10-18T07:26:18.1370848+00:00",
        "CardActivationStartDateTime": "2025-10-18T07:26:18.1370848+00:00",
        "CardDeactivationStartDateTime": "2025-10-18T07:26:18.1370848+00:00",
        "CardUserFlags": 1,
        "EncryptedMobileCredentials": [
          {
            "MobileKeySetId": "8f228eee-c9ee-411e-a773-c50b3c4a06c7",
            "KeyIndex": 2,
            "EncryptedCredential": "sample string 3"
          },
          {
            "MobileKeySetId": "8f228eee-c9ee-411e-a773-c50b3c4a06c7",
            "KeyIndex": 2,
            "EncryptedCredential": "sample string 3"
          }
        ],
        "CredentialType": 1
      }
    },
    {
      "VisitorRequestInstanceId": "a681d602-f638-4fc9-b7bd-ff5bed4c1262",
      "VisitorRequestId": "4c6bfe04-6b5e-4543-ab1a-7e821617494a",
      "DateExpected": "2025-10-18T07:26:18.1370848+00:00",
      "DateTimeArrived": "2025-10-18T07:26:18.1370848+00:00",
      "AssignedAccessLevelId": 1,
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "MiddleInitial": "sample string 6",
      "GuestCompany": "sample string 7",
      "HostPersonId": "6e8e6228-8d4f-49ba-9b56-15626bd8ec87",
      "Message": "sample string 9",
      "sVisitorTypeId": "674ea984-2db4-4044-91fd-98fa20730154",
      "GroupHashTag": "sample string 11",
      "VisitorStatus": 0,
      "Deleted": true,
      "Card": {
        "PersonCardId": "b8d22208-6e15-4ef5-9ad3-9fff3f34ebf5",
        "CardName": "sample string 2",
        "CardId": "a418d62a-aed8-4ae0-8cc1-74f29f43c0d8",
        "CardType": 4,
        "CardACSystemId": "2c542eeb-4095-44f3-8302-a39f72ab309f",
        "CardACSystemName": "sample string 6",
        "InternalCardNumber": 7,
        "ExternalCardNumber": "sample string 8",
        "CardSerialNumber": 1,
        "FacilityCode": 9,
        "IssueCode": 10,
        "PIN": "sample string 11",
        "Deleted": true,
        "HidInvitationCode": "sample string 13",
        "InvitationRedeemedDateTime": "2025-10-18T07:26:18.1370848+00:00",
        "DateInserted": "2025-10-18T07:26:18.1370848+00:00",
        "DateUpdated": "2025-10-18T07:26:18.1370848+00:00",
        "CardActivationStartDateTime": "2025-10-18T07:26:18.1370848+00:00",
        "CardDeactivationStartDateTime": "2025-10-18T07:26:18.1370848+00:00",
        "CardUserFlags": 1,
        "EncryptedMobileCredentials": [
          {
            "MobileKeySetId": "8f228eee-c9ee-411e-a773-c50b3c4a06c7",
            "KeyIndex": 2,
            "EncryptedCredential": "sample string 3"
          },
          {
            "MobileKeySetId": "8f228eee-c9ee-411e-a773-c50b3c4a06c7",
            "KeyIndex": 2,
            "EncryptedCredential": "sample string 3"
          }
        ],
        "CredentialType": 1
      }
    }
  ],
  "Value": "987b09d4-31ec-49fd-978b-73b523cda85c",
  "ResultCode": 3,
  "Description": "sample string 4"
}

application/xml, text/xml

Sample:
<AddUpdateVisitorRequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <Description>sample string 4</Description>
  <HttpStatusCode>Continue</HttpStatusCode>
  <ResultCode>3</ResultCode>
  <Value>987b09d4-31ec-49fd-978b-73b523cda85c</Value>
  <GuestPersonId>634096a3-9b20-4868-bdac-417deb1500d2</GuestPersonId>
  <VisitorRequestInstances>
    <VisitorRequestInstanceViewModel>
      <AssignedAccessLevelId>1</AssignedAccessLevelId>
      <Card>
        <CardACSystemId>2c542eeb-4095-44f3-8302-a39f72ab309f</CardACSystemId>
        <CardACSystemName>sample string 6</CardACSystemName>
        <CardActivationStartDateTime>2025-10-18T07:26:18.1370848+00:00</CardActivationStartDateTime>
        <CardDeactivationStartDateTime>2025-10-18T07:26:18.1370848+00:00</CardDeactivationStartDateTime>
        <CardId>a418d62a-aed8-4ae0-8cc1-74f29f43c0d8</CardId>
        <CardName>sample string 2</CardName>
        <CardSerialNumber>1</CardSerialNumber>
        <CardType>4</CardType>
        <CardUserFlags>ActiveCardholderRecord</CardUserFlags>
        <CredentialType>Proximity</CredentialType>
        <DateInserted>2025-10-18T07:26:18.1370848+00:00</DateInserted>
        <DateUpdated>2025-10-18T07:26:18.1370848+00:00</DateUpdated>
        <EncryptedMobileCredentials>
          <EncryptedCredentialData>
            <EncryptedCredential>sample string 3</EncryptedCredential>
            <KeyIndex>2</KeyIndex>
            <MobileKeySetId>8f228eee-c9ee-411e-a773-c50b3c4a06c7</MobileKeySetId>
          </EncryptedCredentialData>
          <EncryptedCredentialData>
            <EncryptedCredential>sample string 3</EncryptedCredential>
            <KeyIndex>2</KeyIndex>
            <MobileKeySetId>8f228eee-c9ee-411e-a773-c50b3c4a06c7</MobileKeySetId>
          </EncryptedCredentialData>
        </EncryptedMobileCredentials>
        <ExternalCardNumber>sample string 8</ExternalCardNumber>
        <FacilityCode>9</FacilityCode>
        <HidInvitationCode>sample string 13</HidInvitationCode>
        <InternalCardNumber>7</InternalCardNumber>
        <InvitationRedeemedDateTime>2025-10-18T07:26:18.1370848+00:00</InvitationRedeemedDateTime>
        <IssueCode>10</IssueCode>
        <PIN>sample string 11</PIN>
        <PersonCardId>b8d22208-6e15-4ef5-9ad3-9fff3f34ebf5</PersonCardId>
      </Card>
      <DateExpected>2025-10-18T07:26:18.1370848+00:00</DateExpected>
      <DateTimeArrived>2025-10-18T07:26:18.1370848+00:00</DateTimeArrived>
      <Deleted>true</Deleted>
      <FirstName>sample string 4</FirstName>
      <GroupHashTag>sample string 11</GroupHashTag>
      <GuestCompany>sample string 7</GuestCompany>
      <HostPersonId>6e8e6228-8d4f-49ba-9b56-15626bd8ec87</HostPersonId>
      <LastName>sample string 5</LastName>
      <Message>sample string 9</Message>
      <MiddleInitial>sample string 6</MiddleInitial>
      <VisitorRequestId>4c6bfe04-6b5e-4543-ab1a-7e821617494a</VisitorRequestId>
      <VisitorRequestInstanceId>a681d602-f638-4fc9-b7bd-ff5bed4c1262</VisitorRequestInstanceId>
      <VisitorStatus>NotCheckedIn</VisitorStatus>
      <sVisitorTypeId>674ea984-2db4-4044-91fd-98fa20730154</sVisitorTypeId>
    </VisitorRequestInstanceViewModel>
    <VisitorRequestInstanceViewModel>
      <AssignedAccessLevelId>1</AssignedAccessLevelId>
      <Card>
        <CardACSystemId>2c542eeb-4095-44f3-8302-a39f72ab309f</CardACSystemId>
        <CardACSystemName>sample string 6</CardACSystemName>
        <CardActivationStartDateTime>2025-10-18T07:26:18.1370848+00:00</CardActivationStartDateTime>
        <CardDeactivationStartDateTime>2025-10-18T07:26:18.1370848+00:00</CardDeactivationStartDateTime>
        <CardId>a418d62a-aed8-4ae0-8cc1-74f29f43c0d8</CardId>
        <CardName>sample string 2</CardName>
        <CardSerialNumber>1</CardSerialNumber>
        <CardType>4</CardType>
        <CardUserFlags>ActiveCardholderRecord</CardUserFlags>
        <CredentialType>Proximity</CredentialType>
        <DateInserted>2025-10-18T07:26:18.1370848+00:00</DateInserted>
        <DateUpdated>2025-10-18T07:26:18.1370848+00:00</DateUpdated>
        <EncryptedMobileCredentials>
          <EncryptedCredentialData>
            <EncryptedCredential>sample string 3</EncryptedCredential>
            <KeyIndex>2</KeyIndex>
            <MobileKeySetId>8f228eee-c9ee-411e-a773-c50b3c4a06c7</MobileKeySetId>
          </EncryptedCredentialData>
          <EncryptedCredentialData>
            <EncryptedCredential>sample string 3</EncryptedCredential>
            <KeyIndex>2</KeyIndex>
            <MobileKeySetId>8f228eee-c9ee-411e-a773-c50b3c4a06c7</MobileKeySetId>
          </EncryptedCredentialData>
        </EncryptedMobileCredentials>
        <ExternalCardNumber>sample string 8</ExternalCardNumber>
        <FacilityCode>9</FacilityCode>
        <HidInvitationCode>sample string 13</HidInvitationCode>
        <InternalCardNumber>7</InternalCardNumber>
        <InvitationRedeemedDateTime>2025-10-18T07:26:18.1370848+00:00</InvitationRedeemedDateTime>
        <IssueCode>10</IssueCode>
        <PIN>sample string 11</PIN>
        <PersonCardId>b8d22208-6e15-4ef5-9ad3-9fff3f34ebf5</PersonCardId>
      </Card>
      <DateExpected>2025-10-18T07:26:18.1370848+00:00</DateExpected>
      <DateTimeArrived>2025-10-18T07:26:18.1370848+00:00</DateTimeArrived>
      <Deleted>true</Deleted>
      <FirstName>sample string 4</FirstName>
      <GroupHashTag>sample string 11</GroupHashTag>
      <GuestCompany>sample string 7</GuestCompany>
      <HostPersonId>6e8e6228-8d4f-49ba-9b56-15626bd8ec87</HostPersonId>
      <LastName>sample string 5</LastName>
      <Message>sample string 9</Message>
      <MiddleInitial>sample string 6</MiddleInitial>
      <VisitorRequestId>4c6bfe04-6b5e-4543-ab1a-7e821617494a</VisitorRequestId>
      <VisitorRequestInstanceId>a681d602-f638-4fc9-b7bd-ff5bed4c1262</VisitorRequestInstanceId>
      <VisitorStatus>NotCheckedIn</VisitorStatus>
      <sVisitorTypeId>674ea984-2db4-4044-91fd-98fa20730154</sVisitorTypeId>
    </VisitorRequestInstanceViewModel>
  </VisitorRequestInstances>
</AddUpdateVisitorRequestResult>