GET api/v1/Badges
Returns a list of Badge Templates that the API token has rights to view
Request Information
URI Parameters
None.
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
Sample:
[
{
"BadgeTemplateId": "87dec4bd-66da-4269-ac25-55360b52c720",
"ACSystemId": "58d849a0-20d6-43b6-851b-b0c52cc59b30",
"ACSystemName": "sample string 2",
"CompanyId": "3c9e7790-6880-4e95-b820-613cc495bfbf",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "ad61f98c-4650-42fa-90da-cfc172cdf1f1",
"Deleted": true
},
{
"BadgeTemplateId": "87dec4bd-66da-4269-ac25-55360b52c720",
"ACSystemId": "58d849a0-20d6-43b6-851b-b0c52cc59b30",
"ACSystemName": "sample string 2",
"CompanyId": "3c9e7790-6880-4e95-b820-613cc495bfbf",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "ad61f98c-4650-42fa-90da-cfc172cdf1f1",
"Deleted": true
}
]
application/xml, text/xml
Sample:
<ArrayOfBadgeBasicViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
<BadgeBasicViewModel>
<ACSystemId>58d849a0-20d6-43b6-851b-b0c52cc59b30</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>87dec4bd-66da-4269-ac25-55360b52c720</BadgeTemplateId>
<BadgeTemplateTypeId>ad61f98c-4650-42fa-90da-cfc172cdf1f1</BadgeTemplateTypeId>
<CompanyId>3c9e7790-6880-4e95-b820-613cc495bfbf</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
<BadgeBasicViewModel>
<ACSystemId>58d849a0-20d6-43b6-851b-b0c52cc59b30</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>87dec4bd-66da-4269-ac25-55360b52c720</BadgeTemplateId>
<BadgeTemplateTypeId>ad61f98c-4650-42fa-90da-cfc172cdf1f1</BadgeTemplateTypeId>
<CompanyId>3c9e7790-6880-4e95-b820-613cc495bfbf</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
</ArrayOfBadgeBasicViewModel>