Skip to main content

GetAllBadges

Overview

Returns a list of Badge Templates that the API token has rights to view.

Request Information


Method

GET - api/Badge/GetAllBadges

URI Parameters

None.

Body Parameters

None.

Response Information


Resource Description

Collection of BadgeBasicViewModel

NameDescriptionTypeAdditional information
BadgeTemplateIdRepresents the PK of the Badge templateglobally unique identifierNone.
ACSystemIdRepresents the PK of the Access Control System for the badge templateglobally unique identifierNone.
ACSystemNameRepresents the name of the Access Control System for the badge templatestringNone.
CompanyIdRepresents the nullalbe PK of the company (if applicable) that owns the badge template. Null means this is a system-wide template.globally unique identifierNone.
CompanyNameRepresents the name of the company (if applicable) that owns the badge template.stringNone.
NameRepresents the name of the Badge templatestringNone.
BadgeTemplateTypeIdRepresents type of badge template - visitor, employee, visiting employee, vendorglobally unique identifierNone.
DeletedRepresents the deleted status of the badge templatebooleanNone.

Response Formats

JSON

\\\\[ { "BadgeTemplateId": "5e35cf92-a407-42d9-b3e4-a64e23817528", "ACSystemId": "99a29196-2cde-4c45-8037-724973d76b95", "ACSystemName": "sample string 3", "CompanyId": "71807db0-b399-4763-8d5d-72cbb51d9046", "CompanyName": "sample string 4", "Name": "sample string 5", "BadgeTemplateTypeId": "b90889b3-083b-4fff-a13c-5222811da2a5", "Deleted": true }, { "BadgeTemplateId": "5e35cf92-a407-42d9-b3e4-a64e23817528", "ACSystemId": "99a29196-2cde-4c45-8037-724973d76b95", "ACSystemName": "sample string 3", "CompanyId": "71807db0-b399-4763-8d5d-72cbb51d9046", "CompanyName": "sample string 4", "Name": "sample string 5", "BadgeTemplateTypeId": "b90889b3-083b-4fff-a13c-5222811da2a5", "Deleted": true } ]

XML

<ArrayOfBadgeBasicViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<BadgeBasicViewModel>
<ACSystemId>99a29196-2cde-4c45-8037-724973d76b95</ACSystemId>
<ACSystemName>sample string 3</ACSystemName>
<BadgeTemplateId>5e35cf92-a407-42d9-b3e4-a64e23817528</BadgeTemplateId>
<BadgeTemplateTypeId>b90889b3-083b-4fff-a13c-5222811da2a5</BadgeTemplateTypeId>
<CompanyId>71807db0-b399-4763-8d5d-72cbb51d9046</CompanyId>
<CompanyName>sample string 4</CompanyName>
<Deleted>true</Deleted>
`<Name>`sample string 5</Name>
</BadgeBasicViewModel>
<BadgeBasicViewModel>
<ACSystemId>99a29196-2cde-4c45-8037-724973d76b95</ACSystemId>
<ACSystemName>sample string 3</ACSystemName>
<BadgeTemplateId>5e35cf92-a407-42d9-b3e4-a64e23817528</BadgeTemplateId>
<BadgeTemplateTypeId>b90889b3-083b-4fff-a13c-5222811da2a5</BadgeTemplateTypeId>
<CompanyId>71807db0-b399-4763-8d5d-72cbb51d9046</CompanyId>
<CompanyName>sample string 4</CompanyName>
<Deleted>true</Deleted>
`<Name>`sample string 5</Name>
</BadgeBasicViewModel>
</ArrayOfBadgeBasicViewModel>