Skip to main content

GetOccupancyById

Overview

Returns a single OccupancyViewModel if the API token has rights to view it

Request Information


Method

GET - api/Occupancy/GetOccupancyById/{OccupancyId}

URI Parameters

NameDescriptionTypeAdditional information
OccupancyIdglobally unique identifierRequired

Body Parameters

None.

Response Information


Resource Description

OccupancyViewModel

NameDescriptionTypeAdditional information
OccupantIdRepresents the PK of the Occupancyglobally unique identifierNone.
NameRepresents the name of the OccupancystringNone.
ACSystemIdRepresents the PK of the Access Control System for the Occupancyglobally unique identifierNone.
ACSystemNameRepresents the name of the Access Control System for the OccupancystringNone.
FacilityIdRepresents the PK of the Facility the Occupancy is in within BluSKYglobally unique identifierNone.
FacilityNameRepresents the name of the Facility the Occupancy is in within BluSKYstringNone.
CompanyIdRepresents the PK of the global company that the Occupancy is an instance of.globally unique identifierNone.
CompanyNameRepresents the name of the global company that the Occupancy is an instance of.stringNone.
StreetAddress1Represents the primary street address of the OccupancystringNone.
StreetAddress2Represents the secondary street address of the OccupancystringNone.
CityRepresents the city of the OccupancystringNone.
RegionIdRepresents the PK of the region (State, Province, County, etc) of the Occupancyglobally unique identifierNone.
RegionNameRepresents the name of the region (State, Province, County, etc) of the OccupancystringNone.
CountryIdRepresents the PK of the country of the Occupancyglobally unique identifierNone.
CountryNameRepresents the name of the country of the OccupancystringNone.
PostalCodeRepresents the Postal Code/Zip Code of the OccupancystringNone.
WebsiteRepresents the URL of the website associated with the OccupancystringNone.
PhoneRepresents the primary phone number of the OccupancystringNone.
DefaultBadgeTemplateIdRepresents the PK of the default Badge Template for the Occupancyglobally unique identifierNone.
DefaultBadgeTemplateNameRepresents the name of the default Badge Template for the OccupancystringNone.
DeletedRepresents the deleted status of the OccupancybooleanNone.

Response Formats

JSON

{
"OccupantId": "a8faa21d-34c2-48fd-8ccb-1af667f01eb2",
"Name": "sample string 2",
"ACSystemId": "db6086a2-c6ca-411f-a2b4-393523c584c9",
"ACSystemName": "sample string 4",
"FacilityId": "eed29aac-8eaa-493e-a074-c89889ae6832",
"FacilityName": "sample string 6",
"CompanyId": "df7dbd21-4ad0-4c28-b2ba-bbc871ee5c03",
"CompanyName": "sample string 8",
"StreetAddress1": "sample string 9",
"StreetAddress2": "sample string 10",
"City": "sample string 11",
"RegionId": "eb1ba8e6-7228-4571-978e-edd056088080",
"RegionName": "sample string 13",
"CountryId": "2828fbab-8af5-4d5b-8f40-9f56584227c2",
"CountryName": "sample string 15",
"PostalCode": "sample string 16",
"Website": "sample string 17",
"Phone": "sample string 18",
"DefaultBadgeTemplateId": "94108f54-d521-47f1-84c4-37fc26b5f8c5",
"DefaultBadgeTemplateName": "sample string 19",
"Deleted": true
}

XML

<OccupancyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<ACSystemId>db6086a2-c6ca-411f-a2b4-393523c584c9</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 11</City>
<CompanyId>df7dbd21-4ad0-4c28-b2ba-bbc871ee5c03</CompanyId>
<CompanyName>sample string 8</CompanyName>
<CountryId>2828fbab-8af5-4d5b-8f40-9f56584227c2</CountryId>
<CountryName>sample string 15</CountryName>
<DefaultBadgeTemplateId>94108f54-d521-47f1-84c4-37fc26b5f8c5</DefaultBadgeTemplateId>
<DefaultBadgeTemplateName>sample string 19</DefaultBadgeTemplateName>
<Deleted>true</Deleted>
<FacilityId>eed29aac-8eaa-493e-a074-c89889ae6832</FacilityId>
<FacilityName>sample string 6</FacilityName>
`<Name>`sample string 2</Name>
<OccupantId>a8faa21d-34c2-48fd-8ccb-1af667f01eb2</OccupantId>
<Phone>sample string 18</Phone>
<PostalCode>sample string 16</PostalCode>
<RegionId>eb1ba8e6-7228-4571-978e-edd056088080</RegionId>
<RegionName>sample string 13</RegionName>
<StreetAddress1>sample string 9</StreetAddress1>
<StreetAddress2>sample string 10</StreetAddress2>
<Website>sample string 17</Website>
</OccupancyViewModel>