GET api/v1/Occupancies?OccupancyId={OccupancyId}
Returns a single OccupancyViewModel if the API token has rights to view it
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
OccupancyId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
OccupancyViewModelName | 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": "d125cb59-d530-448e-9f41-c4c55d039264", "Name": "sample string 2", "ACSystemId": "79e0233c-0181-4983-85c8-081d30780b4e", "ACSystemName": "sample string 4", "FacilityId": "35090ef5-ebb0-4a90-b397-ddfca2c5bba6", "FacilityName": "sample string 6", "CompanyId": "40fade53-e5c9-4b33-ba04-4d7c0ebec4f7", "CompanyName": "sample string 7", "StreetAddress1": "sample string 8", "StreetAddress2": "sample string 9", "City": "sample string 10", "RegionId": "eba98e63-4162-441d-8cdf-11307268ade4", "RegionName": "sample string 12", "CountryId": "0c7df493-abb1-4993-bbd1-4c142c6ed335", "CountryName": "sample string 14", "PostalCode": "sample string 15", "Website": "sample string 16", "Phone": "sample string 17", "DefaultBadgeTemplateId": "0cdb1991-49dc-4fd2-9072-3849f17c5916", "DefaultBadgeTemplateName": "sample string 18", "Deleted": true, "EmailAddressUsernameFormula": "sample string 20", "EmailAddressDomainFormula": "sample string 21", "sAvailableEmailAddressFormulaTemplateId": 0 }
application/xml, text/xml
<OccupancyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <ACSystemId>79e0233c-0181-4983-85c8-081d30780b4e</ACSystemId> <ACSystemName>sample string 4</ACSystemName> <City>sample string 10</City> <CompanyId>40fade53-e5c9-4b33-ba04-4d7c0ebec4f7</CompanyId> <CompanyName>sample string 7</CompanyName> <CountryId>0c7df493-abb1-4993-bbd1-4c142c6ed335</CountryId> <CountryName>sample string 14</CountryName> <DefaultBadgeTemplateId>0cdb1991-49dc-4fd2-9072-3849f17c5916</DefaultBadgeTemplateId> <DefaultBadgeTemplateName>sample string 18</DefaultBadgeTemplateName> <Deleted>true</Deleted> <EmailAddressDomainFormula>sample string 21</EmailAddressDomainFormula> <EmailAddressUsernameFormula>sample string 20</EmailAddressUsernameFormula> <FacilityId>35090ef5-ebb0-4a90-b397-ddfca2c5bba6</FacilityId> <FacilityName>sample string 6</FacilityName> <Name>sample string 2</Name> <OccupantId>d125cb59-d530-448e-9f41-c4c55d039264</OccupantId> <Phone>sample string 17</Phone> <PostalCode>sample string 15</PostalCode> <RegionId>eba98e63-4162-441d-8cdf-11307268ade4</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>