GET api/v1/Badges?OccupancyId={OccupancyId}
Returns a list of Badge Templates used by a given Occupancy that the API token has rights to view
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| OccupancyId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of BadgeBasicViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BadgeTemplateId |
Represents the PK of the Badge template |
globally unique identifier |
None. |
| ACSystemId |
Represents the PK of the Access Control System for the badge template |
globally unique identifier |
None. |
| ACSystemName |
Represents the name of the Access Control System for the badge template |
string |
None. |
| CompanyId |
Represents the nullalbe PK of the company (if applicable) that owns the badge template. Null means this is a system-wide template. |
globally unique identifier |
None. |
| CompanyName |
Represents the name of the company (if applicable) that owns the badge template. |
string |
None. |
| Name |
Represents the name of the Badge template |
string |
None. |
| BadgeTemplateTypeId |
Represents type of badge template - visitor, employee, visiting employee, vendor |
globally unique identifier |
None. |
| Deleted |
Represents the deleted status of the badge template |
boolean |
None. |
Response Formats
application/json, text/json
[
{
"BadgeTemplateId": "beccaae8-25df-4c00-8ec9-730d4db687ac",
"ACSystemId": "b53cac2d-e8e7-407d-827f-1c8031d81e4b",
"ACSystemName": "sample string 2",
"CompanyId": "58ae7035-3861-48ba-87d5-2b3af97c1dcb",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "04cff404-9e9f-46f7-bc30-80dcce4007c3",
"Deleted": true
},
{
"BadgeTemplateId": "beccaae8-25df-4c00-8ec9-730d4db687ac",
"ACSystemId": "b53cac2d-e8e7-407d-827f-1c8031d81e4b",
"ACSystemName": "sample string 2",
"CompanyId": "58ae7035-3861-48ba-87d5-2b3af97c1dcb",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "04cff404-9e9f-46f7-bc30-80dcce4007c3",
"Deleted": true
}
]
application/xml, text/xml
<ArrayOfBadgeBasicViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
<BadgeBasicViewModel>
<ACSystemId>b53cac2d-e8e7-407d-827f-1c8031d81e4b</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>beccaae8-25df-4c00-8ec9-730d4db687ac</BadgeTemplateId>
<BadgeTemplateTypeId>04cff404-9e9f-46f7-bc30-80dcce4007c3</BadgeTemplateTypeId>
<CompanyId>58ae7035-3861-48ba-87d5-2b3af97c1dcb</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
<BadgeBasicViewModel>
<ACSystemId>b53cac2d-e8e7-407d-827f-1c8031d81e4b</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>beccaae8-25df-4c00-8ec9-730d4db687ac</BadgeTemplateId>
<BadgeTemplateTypeId>04cff404-9e9f-46f7-bc30-80dcce4007c3</BadgeTemplateTypeId>
<CompanyId>58ae7035-3861-48ba-87d5-2b3af97c1dcb</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
</ArrayOfBadgeBasicViewModel>