Back Developer API
- Overview
- Users
- Users / KPIs
- Users / Group Items
- Groups
- Groups / Group Items
- KPI Categories
- KPI Categories / KPIs
- KPIs
- KPI Frequencies
- KPI Units
- KPI Icons
- KPI Entries
- Reports
- C# Example
KPI Icons
The KPI icons are used for display purposes and to help identify your KPIs. They are linked to a KPI using the kpi_icon_id.
KPI Icon Object
The object has the following properties:
Name | Type | Read Only | Mandatory | Max Len. | Notes |
---|---|---|---|---|---|
id | integer | yes | no | Internal id | |
name | string | yes | no | The name of the icon The icons are located at http://{subdomain}.simplekpi.com/kpi-icons/{name}.svg |
JSON Example
{ "id": 5, "name": "Calculator" }
XML Example
<KPIIcon xmlns="http://schemas.datacontract.org/2004/07/SimpleKPI.Application.Areas.Api.Models" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <id>5</id> <name>Calculator</name> </KPIIcon>
Get all KPI Icons
GET /api/kpiicons
Using curl
curl https://{subdomain}.simplekpi.com/api/kpiicons -v -u {email_address}:{token}
Example Response
Status: 200 OK [ { "id": 5, "name": "Calculator" }, { "id": 6, "name": "Card" } ]
Get a KPI Icon
GET /api/kpiicons/{id}
Using curl
curl https://{subdomain}.simplekpi.com/api/kpiicons/{id} -v -u {email_address}:{token}
Example Response
Status: 200 OK { "id": 5, "name": "Calculator" }