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": "3ca667e1-76b8-498b-84e3-ea3748c491e8",
"ACSystemId": "ed0a639e-9e78-4c3c-907a-65cfbdc5abef",
"ACSystemName": "sample string 2",
"CompanyId": "59466f47-de0e-42ea-95d7-3779b5c8d17b",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "55d9b893-eb3b-47b5-b390-b0da6e0be9e6",
"Deleted": true
},
{
"BadgeTemplateId": "3ca667e1-76b8-498b-84e3-ea3748c491e8",
"ACSystemId": "ed0a639e-9e78-4c3c-907a-65cfbdc5abef",
"ACSystemName": "sample string 2",
"CompanyId": "59466f47-de0e-42ea-95d7-3779b5c8d17b",
"CompanyName": "sample string 3",
"Name": "sample string 4",
"BadgeTemplateTypeId": "55d9b893-eb3b-47b5-b390-b0da6e0be9e6",
"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>ed0a639e-9e78-4c3c-907a-65cfbdc5abef</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>3ca667e1-76b8-498b-84e3-ea3748c491e8</BadgeTemplateId>
<BadgeTemplateTypeId>55d9b893-eb3b-47b5-b390-b0da6e0be9e6</BadgeTemplateTypeId>
<CompanyId>59466f47-de0e-42ea-95d7-3779b5c8d17b</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
<BadgeBasicViewModel>
<ACSystemId>ed0a639e-9e78-4c3c-907a-65cfbdc5abef</ACSystemId>
<ACSystemName>sample string 2</ACSystemName>
<BadgeTemplateId>3ca667e1-76b8-498b-84e3-ea3748c491e8</BadgeTemplateId>
<BadgeTemplateTypeId>55d9b893-eb3b-47b5-b390-b0da6e0be9e6</BadgeTemplateTypeId>
<CompanyId>59466f47-de0e-42ea-95d7-3779b5c8d17b</CompanyId>
<CompanyName>sample string 3</CompanyName>
<Deleted>true</Deleted>
<Name>sample string 4</Name>
</BadgeBasicViewModel>
</ArrayOfBadgeBasicViewModel>