GET api/v1/Occupancies?IncludeDeleted={IncludeDeleted}
Returns a list of Occupancies that the API token has rights to view.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| IncludeDeleted | boolean |
Default value is True |
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 |
Optional: 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. |
| EmailAddressUsernameFormula |
Represents the email address format of the Occupancy. |
string |
None. |
| EmailAddressDomainFormula |
Represents the email address of the Occupancy. |
string |
None. |
| sAvailableEmailAddressFormulaTemplateId |
Represents the email address formula template id of the Occupancy. |
AvailableEmailAddressFormulaTemplateEnum |
None. |
Response Formats
application/json, text/json
[
{
"OccupantId": "85105311-0e14-4eff-b7e2-43c0b3163437",
"Name": "sample string 2",
"ACSystemId": "230185b1-ca6d-468d-980a-d791f777a02c",
"ACSystemName": "sample string 4",
"FacilityId": "f863ff93-0bcf-41aa-a31b-1c9232a310ee",
"FacilityName": "sample string 6",
"CompanyId": "f27bf7e0-c6cb-41cf-a09c-6e786a1e5340",
"CompanyName": "sample string 7",
"StreetAddress1": "sample string 8",
"StreetAddress2": "sample string 9",
"City": "sample string 10",
"RegionId": "f09fc024-d3f7-4f6e-b6e7-1a9a71c21f2b",
"RegionName": "sample string 12",
"CountryId": "32adff78-5b43-411e-97fc-877c3910c70f",
"CountryName": "sample string 14",
"PostalCode": "sample string 15",
"Website": "sample string 16",
"Phone": "sample string 17",
"DefaultBadgeTemplateId": "1851b635-e2f0-4ad2-8d86-6c2ae3f622cf",
"DefaultBadgeTemplateName": "sample string 18",
"Deleted": true,
"EmailAddressUsernameFormula": "sample string 20",
"EmailAddressDomainFormula": "sample string 21",
"sAvailableEmailAddressFormulaTemplateId": 0
},
{
"OccupantId": "85105311-0e14-4eff-b7e2-43c0b3163437",
"Name": "sample string 2",
"ACSystemId": "230185b1-ca6d-468d-980a-d791f777a02c",
"ACSystemName": "sample string 4",
"FacilityId": "f863ff93-0bcf-41aa-a31b-1c9232a310ee",
"FacilityName": "sample string 6",
"CompanyId": "f27bf7e0-c6cb-41cf-a09c-6e786a1e5340",
"CompanyName": "sample string 7",
"StreetAddress1": "sample string 8",
"StreetAddress2": "sample string 9",
"City": "sample string 10",
"RegionId": "f09fc024-d3f7-4f6e-b6e7-1a9a71c21f2b",
"RegionName": "sample string 12",
"CountryId": "32adff78-5b43-411e-97fc-877c3910c70f",
"CountryName": "sample string 14",
"PostalCode": "sample string 15",
"Website": "sample string 16",
"Phone": "sample string 17",
"DefaultBadgeTemplateId": "1851b635-e2f0-4ad2-8d86-6c2ae3f622cf",
"DefaultBadgeTemplateName": "sample string 18",
"Deleted": true,
"EmailAddressUsernameFormula": "sample string 20",
"EmailAddressDomainFormula": "sample string 21",
"sAvailableEmailAddressFormulaTemplateId": 0
}
]
application/xml, text/xml
<ArrayOfOccupancyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
<OccupancyViewModel>
<ACSystemId>230185b1-ca6d-468d-980a-d791f777a02c</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 10</City>
<CompanyId>f27bf7e0-c6cb-41cf-a09c-6e786a1e5340</CompanyId>
<CompanyName>sample string 7</CompanyName>
<CountryId>32adff78-5b43-411e-97fc-877c3910c70f</CountryId>
<CountryName>sample string 14</CountryName>
<DefaultBadgeTemplateId>1851b635-e2f0-4ad2-8d86-6c2ae3f622cf</DefaultBadgeTemplateId>
<DefaultBadgeTemplateName>sample string 18</DefaultBadgeTemplateName>
<Deleted>true</Deleted>
<EmailAddressDomainFormula>sample string 21</EmailAddressDomainFormula>
<EmailAddressUsernameFormula>sample string 20</EmailAddressUsernameFormula>
<FacilityId>f863ff93-0bcf-41aa-a31b-1c9232a310ee</FacilityId>
<FacilityName>sample string 6</FacilityName>
<Name>sample string 2</Name>
<OccupantId>85105311-0e14-4eff-b7e2-43c0b3163437</OccupantId>
<Phone>sample string 17</Phone>
<PostalCode>sample string 15</PostalCode>
<RegionId>f09fc024-d3f7-4f6e-b6e7-1a9a71c21f2b</RegionId>
<RegionName>sample string 12</RegionName>
<StreetAddress1>sample string 8</StreetAddress1>
<StreetAddress2>sample string 9</StreetAddress2>
<Website>sample string 16</Website>
<sAvailableEmailAddressFormulaTemplateId>Custom</sAvailableEmailAddressFormulaTemplateId>
</OccupancyViewModel>
<OccupancyViewModel>
<ACSystemId>230185b1-ca6d-468d-980a-d791f777a02c</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 10</City>
<CompanyId>f27bf7e0-c6cb-41cf-a09c-6e786a1e5340</CompanyId>
<CompanyName>sample string 7</CompanyName>
<CountryId>32adff78-5b43-411e-97fc-877c3910c70f</CountryId>
<CountryName>sample string 14</CountryName>
<DefaultBadgeTemplateId>1851b635-e2f0-4ad2-8d86-6c2ae3f622cf</DefaultBadgeTemplateId>
<DefaultBadgeTemplateName>sample string 18</DefaultBadgeTemplateName>
<Deleted>true</Deleted>
<EmailAddressDomainFormula>sample string 21</EmailAddressDomainFormula>
<EmailAddressUsernameFormula>sample string 20</EmailAddressUsernameFormula>
<FacilityId>f863ff93-0bcf-41aa-a31b-1c9232a310ee</FacilityId>
<FacilityName>sample string 6</FacilityName>
<Name>sample string 2</Name>
<OccupantId>85105311-0e14-4eff-b7e2-43c0b3163437</OccupantId>
<Phone>sample string 17</Phone>
<PostalCode>sample string 15</PostalCode>
<RegionId>f09fc024-d3f7-4f6e-b6e7-1a9a71c21f2b</RegionId>
<RegionName>sample string 12</RegionName>
<StreetAddress1>sample string 8</StreetAddress1>
<StreetAddress2>sample string 9</StreetAddress2>
<Website>sample string 16</Website>
<sAvailableEmailAddressFormulaTemplateId>Custom</sAvailableEmailAddressFormulaTemplateId>
</OccupancyViewModel>
</ArrayOfOccupancyViewModel>