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": "c1a83d30-7885-4ab6-9729-7ad96bdf0789",
"ACSystemId": "c2f7503d-6311-4bea-8fee-9dea4ea741fe",
"ACSystemName": "sample string 2",
"CompanyId": "7186dd37-a726-4ba2-a11d-94593a2b3296",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "6075ef98-f43a-4f22-9aac-90c75dda34fa",
"Deleted": true
},
{
"BadgeTemplateId": "c1a83d30-7885-4ab6-9729-7ad96bdf0789",
"ACSystemId": "c2f7503d-6311-4bea-8fee-9dea4ea741fe",
"ACSystemName": "sample string 2",
"CompanyId": "7186dd37-a726-4ba2-a11d-94593a2b3296",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "6075ef98-f43a-4f22-9aac-90c75dda34fa",
"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>c2f7503d-6311-4bea-8fee-9dea4ea741fe</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>c1a83d30-7885-4ab6-9729-7ad96bdf0789</BadgeTemplateId>
<BadgeTemplateTypeId>6075ef98-f43a-4f22-9aac-90c75dda34fa</BadgeTemplateTypeId>
<CompanyId>7186dd37-a726-4ba2-a11d-94593a2b3296</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
<BadgeBasicViewModel>
<ACSystemId>c2f7503d-6311-4bea-8fee-9dea4ea741fe</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>c1a83d30-7885-4ab6-9729-7ad96bdf0789</BadgeTemplateId>
<BadgeTemplateTypeId>6075ef98-f43a-4f22-9aac-90c75dda34fa</BadgeTemplateTypeId>
<CompanyId>7186dd37-a726-4ba2-a11d-94593a2b3296</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
</ArrayOfBadgeBasicViewModel>