GetAllOccupancies
Overview
Returns a list of Occupancies that the API token has rights to view.
Request Information
Method
GET - api/Occupancy/GetAllOccupancies
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of OccupancyViewModel
| Name | Description | Type | Additional information |
|---|---|---|---|
| OccupantId | Represents the PK of the Occupancy | globally unique identifier | None. |
| Name | Represents the name of the Occupancy | string | None. |
| ACSystemId | Represents the PK of the Access Control System for the Occupancy | globally unique identifier | None. |
| ACSystemName | Represents the name of the Access Control System for the Occupancy | string | None. |
| FacilityId | Represents the PK of the Facility the Occupancy is in within BluSKY | globally unique identifier | None. |
| FacilityName | Represents the name of the Facility the Occupancy is in within BluSKY | string | None. |
| CompanyId | Represents the PK of the global company that the Occupancy is an instance of. | globally unique identifier | None. |
| CompanyName | Represents the name of the global company that the Occupancy is an instance of. | string | None. |
| StreetAddress1 | Represents the primary street address of the Occupancy | string | None. |
| StreetAddress2 | Represents the secondary street address of the Occupancy | string | None. |
| City | Represents the city of the Occupancy | string | None. |
| RegionId | Represents the PK of the region (State, Province, County, etc) of the Occupancy | globally unique identifier | None. |
| RegionName | Represents the name of the region (State, Province, County, etc) of the Occupancy | string | None. |
| CountryId | Represents the PK of the country of the Occupancy | globally unique identifier | None. |
| CountryName | Represents the name of the country of the Occupancy | string | None. |
| PostalCode | Represents the Postal Code/Zip Code of the Occupancy | string | None. |
| Website | Represents the URL of the website associated with the Occupancy | string | None. |
| Phone | Represents the primary phone number of the Occupancy | string | None. |
| DefaultBadgeTemplateId | Represents the PK of the default Badge Template for the Occupancy | globally unique identifier | None. |
| DefaultBadgeTemplateName | Represents the name of the default Badge Template for the Occupancy | string | None. |
| Deleted | Represents the deleted status of the Occupancy | boolean | None. |
Response Formats
JSON
\\\\[ { "OccupantId": "88766946-78b5-43e3-a73b-aec0444a9983", "Name": "sample string 2", "ACSystemId": "0f5562ae-7609-46ec-9cc3-ffdcdd76589e", "ACSystemName": "sample string 4", "FacilityId": "f54ec3d8-5acc-49d8-930e-8011444abcfb", "FacilityName": "sample string 6", "CompanyId": "6b1365c1-84bf-4faa-91d4-d523b03986b6", "CompanyName": "sample string 8", "StreetAddress1": "sample string 9", "StreetAddress2": "sample string 10", "City": "sample string 11", "RegionId": "90018dce-655b-4ad8-a216-4d0f48455cf7", "RegionName": "sample string 13", "CountryId": "985f9d65-e6ac-47ae-aa36-61b25e8fbe5b", "CountryName": "sample string 15", "PostalCode": "sample string 16", "Website": "sample string 17", "Phone": "sample string 18", "DefaultBadgeTemplateId": "e20e1baa-5b78-4c32-9061-90764353e243", "DefaultBadgeTemplateName": "sample string 19", "Deleted": true }, { "OccupantId": "88766946-78b5-43e3-a73b-aec0444a9983", "Name": "sample string 2", "ACSystemId": "0f5562ae-7609-46ec-9cc3-ffdcdd76589e", "ACSystemName": "sample string 4", "FacilityId": "f54ec3d8-5acc-49d8-930e-8011444abcfb", "FacilityName": "sample string 6", "CompanyId": "6b1365c1-84bf-4faa-91d4-d523b03986b6", "CompanyName": "sample string 8", "StreetAddress1": "sample string 9", "StreetAddress2": "sample string 10", "City": "sample string 11", "RegionId": "90018dce-655b-4ad8-a216-4d0f48455cf7", "RegionName": "sample string 13", "CountryId": "985f9d65-e6ac-47ae-aa36-61b25e8fbe5b", "CountryName": "sample string 15", "PostalCode": "sample string 16", "Website": "sample string 17", "Phone": "sample string 18", "DefaultBadgeTemplateId": "e20e1baa-5b78-4c32-9061-90764353e243", "DefaultBadgeTemplateName": "sample string 19", "Deleted": true } ]
XML
<ArrayOfOccupancyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<OccupancyViewModel>
<ACSystemId>0f5562ae-7609-46ec-9cc3-ffdcdd76589e</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 11</City>
<CompanyId>6b1365c1-84bf-4faa-91d4-d523b03986b6</CompanyId>
<CompanyName>sample string 8</CompanyName>
<CountryId>985f9d65-e6ac-47ae-aa36-61b25e8fbe5b</CountryId>
<CountryName>sample string 15</CountryName>
<DefaultBadgeTemplateId>e20e1baa-5b78-4c32-9061-90764353e243</DefaultBadgeTemplateId>
<DefaultBadgeTemplateName>sample string 19</DefaultBadgeTemplateName>
<Deleted>true</Deleted>
<FacilityId>f54ec3d8-5acc-49d8-930e-8011444abcfb</FacilityId>
<FacilityName>sample string 6</FacilityName>
`<Name>`sample string 2</Name>
<OccupantId>88766946-78b5-43e3-a73b-aec0444a9983</OccupantId>
<Phone>sample string 18</Phone>
<PostalCode>sample string 16</PostalCode>
<RegionId>90018dce-655b-4ad8-a216-4d0f48455cf7</RegionId>
<RegionName>sample string 13</RegionName>
<StreetAddress1>sample string 9</StreetAddress1>
<StreetAddress2>sample string 10</StreetAddress2>
<Website>sample string 17</Website>
</OccupancyViewModel>
<OccupancyViewModel>
<ACSystemId>0f5562ae-7609-46ec-9cc3-ffdcdd76589e</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 11</City>
<CompanyId>6b1365c1-84bf-4faa-91d4-d523b03986b6</CompanyId>
<CompanyName>sample string 8</CompanyName>
<CountryId>985f9d65-e6ac-47ae-aa36-61b25e8fbe5b</CountryId>
<CountryName>sample string 15</CountryName>
<DefaultBadgeTemplateId>e20e1baa-5b78-4c32-9061-90764353e243</DefaultBadgeTemplateId>
<DefaultBadgeTemplateName>sample string 19</DefaultBadgeTemplateName>
<Deleted>true</Deleted>
<FacilityId>f54ec3d8-5acc-49d8-930e-8011444abcfb</FacilityId>
<FacilityName>sample string 6</FacilityName>
`<Name>`sample string 2</Name>
<OccupantId>88766946-78b5-43e3-a73b-aec0444a9983</OccupantId>
<Phone>sample string 18</Phone>
<PostalCode>sample string 16</PostalCode>
<RegionId>90018dce-655b-4ad8-a216-4d0f48455cf7</RegionId>
<RegionName>sample string 13</RegionName>
<StreetAddress1>sample string 9</StreetAddress1>
<StreetAddress2>sample string 10</StreetAddress2>
<Website>sample string 17</Website>
</OccupancyViewModel>
</ArrayOfOccupancyViewModel>