KPIs are organized into categories to make it easier for the admins to manage and assign KPIs.
The object has the following properties:
| Name | Type | Read Only | Mandatory | Max Len. | Notes |
|---|---|---|---|---|---|
| id | integer | yes | no | Automatically generated for the KPI category | |
| name | string | no | yes | 50 | The name of the KPI category |
{
"id": 111,
"name": "Kpi Category"
}
<KPICategory xmlns="http://schemas.datacontract.org/2004/07/Waytobi.App.Api.Models"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<id>111</id>
<name>Kpi Category</name>
</KPICategory>
GET /api/kpicategories
curl https://app.waytobi.com/api/kpicategories
-v -u {token}
Status: 200 OK
[
{
"id": 111,
"name": "Kpi Category"
},
{
"id": 222,
"name": "Sales KPIs"
}
]
GET /api/kpicategories/{id}
curl https://app.waytobi.com/api/kpicategories/{id}
-v -u {token}
Status: 200 OK
{
"id": 1234,
"name": "Kpi Category"
}
POST /api/kpicategories
curl https://app.waytobi.com/api/kpicategories
-H "Content-Type: application/json"
-d '{"name": "Kpi Category"}'
-v -u {token} -X POST
Status: 201 Created
Location: https://app.waytobi.com/api/kpicategories/{id}
{
"id": 1234,
"name": "Kpi Category"
}
PUT /api/kpicategories/{id}
curl https://app.waytobi.com/api/kpicategories/{id}
-H "Content-Type: application/json"
-d '{"name": "Kpi Category"}'
-v -u {token} -X PUT
Status: 200 OK
{
"id":1,
"name":"Kpi Category",
}
DELETE /api/kpicategories/{id}
curl https://app.waytobi.com/api/kpicategories/{id}
-v -u {token}
Status: 200 OK
Looking for anything specific article which resides in general queries? Just browse the various relevant folders and categories and then you will find the desired article.
Contact Us