SimpleKPI Classic

App · 25 actions

Record and read KPI data in SimpleKPI Classic, and manage KPIs, categories and who enters them.

Actions

ActionWhat it does
Add or update KPI entryRecord an actual or target for a user's KPI on a date, updating the entry if one exists.
Add or update many KPI entriesRecord up to 5,000 actuals or targets in one go, updating any that exist.
Assign KPI to userLet a user enter data against a KPI, optionally with their own target.
Create categoryAdd a KPI category.
Create KPIAdd a KPI to a category.
Delete categoryDelete a KPI category.
Delete KPIDelete a KPI.
Delete KPI entryDelete one KPI entry for good.
Get KPIGet one KPI by its ID.
Get KPI entryGet one KPI entry by its ID.
Get report dataGet the processed values behind SimpleKPI's reports, calculated KPIs included, for a date range.
List categoriesList the categories your KPIs are organised in.
List frequenciesList how often data can be entered against a KPI, such as daily or weekly.
List group itemsList the items in a group, such as each office.
List groupsList the groups, such as offices or teams, that organise users and their data.
List iconsList the icons a KPI can be given.
List KPI entriesList the values users have entered against KPIs, by date.
List KPIsList the KPIs on your account.
List KPIs in categoryList the KPIs in one category.
List unitsList the units that set how KPI values are shown.
List user's KPIsList the KPIs assigned to a user.
List usersList the people on your account.
Unassign KPI from userStop a user entering data against a KPI.
Update KPIChange a KPI's settings.
Update KPI entryChange one KPI entry.

Add or update KPI entry

Record an actual or target for a user's KPI on a date, updating the entry if one exists.

Inputs

KPIkpi_idnumberRequired
The KPI to record against. It must be active, not calculated, and assigned to the user.
Dateentry_datedateRequired
The date the value is for.
Userusernumber
The user to record it against. Give this or User email.
User emailemailtext
Or the user's sign-in email, instead of User.
Actualactualnumber
The actual value.
Targettargetnumber
The target. Ignored when the KPI has no target.
Notesnotestext
A note for the entry, up to 500 characters.
Write actualsetActualtrue/false
Leave on to write Actual; turn off to keep the stored actual.
Write targetsetTargettrue/false
Leave on to write Target; turn off to keep the stored target.
Write notessetNotestrue/false
Leave on to write Notes; turn off to keep the stored notes.
Add to actualaddToActualtrue/false
Turn on to add Actual to the stored value instead of replacing it.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "actual": 50,
    "created_at": "2012-11-30T11:20:00",
    "entry_date": "2012-06-25",
    "id": 12345,
    "kpi_id": 5678,
    "notes": "This is a note",
    "target": 110,
    "updated_at": "2013-02-15T16:01:00",
    "user_id": 1234
  }
}

Add or update many KPI entries

Record up to 5,000 actuals or targets in one go, updating any that exist.

Inputs

EntriesentrieslistRequired
The entries to write. Each needs a KPI, a date, and a user or user email.
Write actualshasActualstrue/false
Leave on to write actual values; turn off to keep the stored ones.
Write targetshasTargetstrue/false
Leave on to write targets; turn off to keep the stored ones.
Write noteshasNotestrue/false
Leave on to write notes; turn off to keep the stored ones.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "rows_added": 2
  }
}

Assign KPI to user

Let a user enter data against a KPI, optionally with their own target.

Inputs

UserusernumberRequired
The user to assign the KPI to.
KPIidnumberRequired
The KPI to assign.
Positionsort_ordernumberRequired
Where the KPI sits on the user's entry screen.
User's targetuser_targetnumber
Their own target, when the KPI has one and theirs differs from the default.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "created_at": "2012-11-15T17:03:00",
    "id": 1234,
    "sort_order": 1,
    "updated_at": "2012-11-15T17:03:00",
    "user_id": 5678,
    "user_target": 123
  }
}

Create category

Add a KPI category.

Inputs

NamenametextRequired
What the category is called, up to 50 characters.
Positionsort_ordernumberRequired
Where the category sits in the list.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "created_at": "2013-02-21T10:12:00",
    "id": 1234,
    "name": "Sales Category",
    "sort_order": 1,
    "updated_at": "2013-02-21T10:12:00"
  }
}

Create KPI

Add a KPI to a category.

Inputs

Categorycategory_idnumberRequired
The category the KPI goes in.
NamenametextRequired
What the KPI is called, up to 100 characters.
Frequencyfrequency_idtextRequired
How often data is entered against it.
Iconicon_idnumberRequired
The icon shown with the KPI.
Unitunit_idnumberRequired
How its values are shown.
Good directionvalue_directiontextRequired
Which way the KPI has to move to be doing well.One of: U (Up is good), D (Down is good), N (Neither).
Roll-upaggregate_functiontextRequired
How its values are totalled.One of: SUM (Total (sum)), AVG (Average).
Positionsort_ordernumberRequired
Where the KPI sits in the list.
Activeis_activetrue/falseRequired
Turn on so data can be entered against it; off makes it display only.
Descriptiondescriptiontext
Text shown with the KPI, up to 150 characters.
Default targettarget_defaultnumber
The default target. Leave empty for a KPI with no target.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "aggregate_function": "SUM",
    "category_id": 5478,
    "created_at": "2013-02-21T10:57:00",
    "description": "This is the description",
    "frequency_id": "W",
    "icon_id": 1,
    "id": 1234,
    "is_active": true,
    "is_calculated": false,
    "name": "Sales KPI",
    "sort_order": 1,
    "target_default": 100,
    "unit_id": 123,
    "updated_at": "2013-02-21T10:58:00",
    "value_direction": "N"
  }
}

Delete category

Delete a KPI category.

Inputs

CategoryidnumberRequired
The category to delete.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {}
}

Delete KPI

Delete a KPI.

Inputs

KPIidnumberRequired
The KPI to delete.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {}
}

Delete KPI entry

Delete one KPI entry for good.

Inputs

Entry IDidnumberRequired
The entry to delete, from List KPI entries.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {}
}

Get KPI

Get one KPI by its ID.

Inputs

KPIidnumberRequired
The KPI to get.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "aggregate_function": "SUM",
    "category_id": 5478,
    "created_at": "2013-02-21T10:57:00",
    "description": "This is the description",
    "frequency_id": "W",
    "icon_id": 1,
    "id": 1234,
    "is_active": true,
    "is_calculated": false,
    "name": "Sales KPI",
    "sort_order": 1,
    "target_default": 100,
    "unit_id": 123,
    "updated_at": "2013-02-21T10:58:00",
    "value_direction": "N"
  }
}

Get KPI entry

Get one KPI entry by its ID.

Inputs

Entry IDidnumberRequired
The entry to get, from List KPI entries.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "actual": 50,
    "created_at": "2012-11-30T11:20:00",
    "entry_date": "2012-06-25",
    "id": 12345,
    "kpi_id": 5678,
    "notes": "This is a note",
    "target": 110,
    "updated_at": "2013-02-15T16:01:00",
    "user_id": 1234
  }
}

Get report data

Get the processed values behind SimpleKPI's reports, calculated KPIs included, for a date range.

Inputs

KPIskpiIdslist
The KPIs to report on.
FromdateFromdate
Start of the range. SimpleKPI uses today if left empty.
TodateTodate
End of the range. SimpleKPI uses today if left empty.
Group itemsgroupItemIdslist
Only data for these group items.
UsersuserIdslist
Only data for these users.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "actual": 144.3822,
      "direction": "U",
      "directionName": "Up",
      "entryDate": "2021-01-10",
      "hasTarget": 1,
      "isPercentage": 0,
      "itemId": 54321,
      "itemName": "Joe Bloggs",
      "kpiDescription": "Sales KPI Description",
      "kpiId": 12345,
      "kpiName": "Sales",
      "labelFormat": "#,##0",
      "notes": "This is a note",
      "period": "Daily",
      "periodId": "D",
      "target": 151
    }
  ]
}

List categories

List the categories your KPIs are organised in.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "created_at": "2013-02-21T10:12:00",
      "id": 1234,
      "name": "Sales Category",
      "sort_order": 1,
      "updated_at": "2013-02-21T10:12:00"
    }
  ]
}

List frequencies

List how often data can be entered against a KPI, such as daily or weekly.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "id": "D",
      "name": "Daily"
    }
  ]
}

List group items

List the items in a group, such as each office.

Inputs

Groupgroup_idnumberRequired
The group whose items to list.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "created_at": "2012-11-30T10:41:00",
      "group_id": 1,
      "id": 2263,
      "name": "Sales",
      "sort_order": 1,
      "updated_at": "2012-11-30T10:41:00"
    }
  ]
}

List groups

List the groups, such as offices or teams, that organise users and their data.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "created_at": "2012-11-30T10:40:00",
      "id": 1,
      "name": "Offices",
      "sort_order": 1,
      "updated_at": "2012-11-30T10:40:00"
    }
  ]
}

List icons

List the icons a KPI can be given.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "id": 5,
      "name": "Calculator"
    }
  ]
}

List KPI entries

List the values users have entered against KPIs, by date.

Inputs

KPIkpiidnumber
Only entries for this KPI.
Useruseridnumber
Only entries for this user.
FromdateFromdate
Only entries on or after this date. SimpleKPI uses today if left empty.
TodateTodate
Only entries on or before this date. SimpleKPI uses today if left empty.
Page sizerowsnumber
How many entries a page holds, up to 500.From 1 to 500.
Pagepagenumber
Which page to read, counting from 1.At least 1.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "actual": 50,
      "created_at": "2012-11-30T11:20:00",
      "entry_date": "2012-06-25",
      "id": 12345,
      "kpi_id": 5678,
      "notes": "This is a note",
      "target": 110,
      "updated_at": "2013-02-15T16:01:00",
      "user_id": 1234
    }
  ]
}

List KPIs

List the KPIs on your account.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "aggregate_function": "SUM",
      "category_id": 5478,
      "created_at": "2013-02-21T10:57:00",
      "description": "This is the description",
      "frequency_id": "W",
      "icon_id": 1,
      "id": 1234,
      "is_active": true,
      "is_calculated": false,
      "name": "Sales KPI",
      "sort_order": 1,
      "target_default": 100,
      "unit_id": 123,
      "updated_at": "2013-02-21T10:58:00",
      "value_direction": "N"
    }
  ]
}

List KPIs in category

List the KPIs in one category.

Inputs

Categorycategory_idnumberRequired
The category to list.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "aggregate_function": "SUM",
      "category_id": 5478,
      "created_at": "2013-02-21T10:57:00",
      "description": "This is the description",
      "frequency_id": "W",
      "icon_id": 1,
      "id": 1234,
      "is_active": true,
      "is_calculated": false,
      "name": "Sales KPI",
      "sort_order": 1,
      "target_default": 100,
      "unit_id": 123,
      "updated_at": "2013-02-21T10:58:00",
      "value_direction": "N"
    }
  ]
}

List units

List the units that set how KPI values are shown.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "created_at": "2012-09-10T14:29:00",
      "display_format": "0.00%",
      "entry_format": "0.00",
      "id": 12,
      "is_percentage": true,
      "name": "12.34%",
      "updated_at": "2012-09-10T14:29:00"
    }
  ]
}

List user's KPIs

List the KPIs assigned to a user.

Inputs

UserusernumberRequired
The user whose KPIs to list.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "created_at": "2012-11-15T17:03:00",
      "id": 1234,
      "sort_order": 1,
      "updated_at": "2012-11-15T17:03:00",
      "user_id": 5678,
      "user_target": 123
    }
  ]
}

List users

List the people on your account.

Inputs

None.

Outputs

datalist
The response from SimpleKPI Classic.
Example output
{
  "data": [
    {
      "can_admin_settings": false,
      "can_manage_users": true,
      "created_at": "2012-09-10T14:35:00",
      "email": "jim@simplekpi.com",
      "first_name": "Jim",
      "id": 1234,
      "last_login_at": "2012-11-10T14:35:00",
      "last_name": "Jones",
      "last_password_changed_at": "2012-12-10T14:35:00",
      "updated_at": "2012-11-30T11:01:00",
      "user_status_id": "A",
      "user_type": "Manager"
    }
  ]
}

Unassign KPI from user

Stop a user entering data against a KPI.

Inputs

UserusernumberRequired
The user to take the KPI from.
KPIidnumberRequired
The KPI to unassign.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {}
}

Update KPI

Change a KPI's settings. Calculated KPIs can only be changed in SimpleKPI.

Inputs

KPIidnumberRequired
The KPI to change.
Categorycategory_idnumberRequired
The category the KPI goes in.
NamenametextRequired
What the KPI is called, up to 100 characters.
Frequencyfrequency_idtextRequired
How often data is entered against it.
Iconicon_idnumberRequired
The icon shown with the KPI.
Unitunit_idnumberRequired
How its values are shown.
Good directionvalue_directiontextRequired
Which way the KPI has to move to be doing well.One of: U (Up is good), D (Down is good), N (Neither).
Roll-upaggregate_functiontextRequired
How its values are totalled.One of: SUM (Total (sum)), AVG (Average).
Positionsort_ordernumberRequired
Where the KPI sits in the list.
Activeis_activetrue/falseRequired
Turn on so data can be entered against it; off makes it display only.
Descriptiondescriptiontext
Text shown with the KPI, up to 150 characters.
Default targettarget_defaultnumber
The default target. Leave empty for a KPI with no target.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "aggregate_function": "SUM",
    "category_id": 5478,
    "created_at": "2013-02-21T10:57:00",
    "description": "This is the description",
    "frequency_id": "W",
    "icon_id": 1,
    "id": 1234,
    "is_active": true,
    "is_calculated": false,
    "name": "Sales KPI",
    "sort_order": 1,
    "target_default": 100,
    "unit_id": 123,
    "updated_at": "2013-02-21T10:58:00",
    "value_direction": "N"
  }
}

Update KPI entry

Change one KPI entry.

Inputs

Entry IDidnumberRequired
The entry to change, from List KPI entries.
UserusernumberRequired
The user the entry belongs to.
KPIkpi_idnumberRequired
The KPI the entry belongs to.
Dateentry_datedateRequired
The date the value is for.
Actualactualnumber
The actual value.
Targettargetnumber
The target. Ignored when the KPI has no target.
Notesnotestext
A note for the entry, up to 500 characters.

Outputs

dataobject
The response from SimpleKPI Classic.
Example output
{
  "data": {
    "actual": 50,
    "created_at": "2012-11-30T11:20:00",
    "entry_date": "2012-06-25",
    "id": 12345,
    "kpi_id": 5678,
    "notes": "This is a note",
    "target": 110,
    "updated_at": "2013-02-15T16:01:00",
    "user_id": 1234
  }
}

On this page