SimpleKPI Classic
App · 25 actions
Record and read KPI data in SimpleKPI Classic, and manage KPIs, categories and who enters them.
Actions
| Action | What it does |
|---|---|
| Add or update KPI entry | Record an actual or target for a user's KPI on a date, updating the entry if one exists. |
| Add or update many KPI entries | Record up to 5,000 actuals or targets in one go, updating any that exist. |
| Assign KPI to user | Let a user enter data against a KPI, optionally with their own target. |
| Create category | Add a KPI category. |
| Create KPI | Add a KPI to a category. |
| Delete category | Delete a KPI category. |
| Delete KPI | Delete a KPI. |
| Delete KPI entry | Delete one KPI entry for good. |
| Get KPI | Get one KPI by its ID. |
| Get KPI entry | Get one KPI entry by its ID. |
| Get report data | Get the processed values behind SimpleKPI's reports, calculated KPIs included, for a date range. |
| List categories | List the categories your KPIs are organised in. |
| List frequencies | List how often data can be entered against a KPI, such as daily or weekly. |
| List group items | List the items in a group, such as each office. |
| List groups | List the groups, such as offices or teams, that organise users and their data. |
| List icons | List the icons a KPI can be given. |
| List KPI entries | List the values users have entered against KPIs, by date. |
| List KPIs | List the KPIs on your account. |
| List KPIs in category | List the KPIs in one category. |
| List units | List the units that set how KPI values are shown. |
| List user's KPIs | List the KPIs assigned to a user. |
| List users | List the people on your account. |
| Unassign KPI from user | Stop a user entering data against a KPI. |
| Update KPI | Change a KPI's settings. |
| Update KPI entry | Change 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
- KPI
kpi_idnumberRequired - The KPI to record against. It must be active, not calculated, and assigned to the user.
- Date
entry_datedateRequired - The date the value is for.
- User
usernumber - The user to record it against. Give this or User email.
- User email
emailtext - Or the user's sign-in email, instead of User.
- Actual
actualnumber - The actual value.
- Target
targetnumber - The target. Ignored when the KPI has no target.
- Notes
notestext - A note for the entry, up to 500 characters.
- Write actual
setActualtrue/false - Leave on to write Actual; turn off to keep the stored actual.
- Write target
setTargettrue/false - Leave on to write Target; turn off to keep the stored target.
- Write notes
setNotestrue/false - Leave on to write Notes; turn off to keep the stored notes.
- Add to actual
addToActualtrue/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
- Entries
entrieslistRequired - The entries to write. Each needs a KPI, a date, and a user or user email.
- Write actuals
hasActualstrue/false - Leave on to write actual values; turn off to keep the stored ones.
- Write targets
hasTargetstrue/false - Leave on to write targets; turn off to keep the stored ones.
- Write notes
hasNotestrue/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
- User
usernumberRequired - The user to assign the KPI to.
- KPI
idnumberRequired - The KPI to assign.
- Position
sort_ordernumberRequired - Where the KPI sits on the user's entry screen.
- User's target
user_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
- Name
nametextRequired - What the category is called, up to 50 characters.
- Position
sort_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
- Category
category_idnumberRequired - The category the KPI goes in.
- Name
nametextRequired - What the KPI is called, up to 100 characters.
- Frequency
frequency_idtextRequired - How often data is entered against it.
- Icon
icon_idnumberRequired - The icon shown with the KPI.
- Unit
unit_idnumberRequired - How its values are shown.
- Good direction
value_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-up
aggregate_functiontextRequired - How its values are totalled.One of:
SUM(Total (sum)),AVG(Average). - Position
sort_ordernumberRequired - Where the KPI sits in the list.
- Active
is_activetrue/falseRequired - Turn on so data can be entered against it; off makes it display only.
- Description
descriptiontext - Text shown with the KPI, up to 150 characters.
- Default target
target_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
- Category
idnumberRequired - The category to delete.
Outputs
dataobject- The response from SimpleKPI Classic.
Example output
{
"data": {}
}Delete KPI
Delete a KPI.
Inputs
- KPI
idnumberRequired - 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 ID
idnumberRequired - 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
- KPI
idnumberRequired - 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 ID
idnumberRequired - 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
- KPIs
kpiIdslist - The KPIs to report on.
- From
dateFromdate - Start of the range. SimpleKPI uses today if left empty.
- To
dateTodate - End of the range. SimpleKPI uses today if left empty.
- Group items
groupItemIdslist - Only data for these group items.
- Users
userIdslist - 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
- Group
group_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
- KPI
kpiidnumber - Only entries for this KPI.
- User
useridnumber - Only entries for this user.
- From
dateFromdate - Only entries on or after this date. SimpleKPI uses today if left empty.
- To
dateTodate - Only entries on or before this date. SimpleKPI uses today if left empty.
- Page size
rowsnumber - How many entries a page holds, up to 500.From 1 to 500.
- Page
pagenumber - 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
- Category
category_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
- User
usernumberRequired - 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
- User
usernumberRequired - The user to take the KPI from.
- KPI
idnumberRequired - 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
- KPI
idnumberRequired - The KPI to change.
- Category
category_idnumberRequired - The category the KPI goes in.
- Name
nametextRequired - What the KPI is called, up to 100 characters.
- Frequency
frequency_idtextRequired - How often data is entered against it.
- Icon
icon_idnumberRequired - The icon shown with the KPI.
- Unit
unit_idnumberRequired - How its values are shown.
- Good direction
value_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-up
aggregate_functiontextRequired - How its values are totalled.One of:
SUM(Total (sum)),AVG(Average). - Position
sort_ordernumberRequired - Where the KPI sits in the list.
- Active
is_activetrue/falseRequired - Turn on so data can be entered against it; off makes it display only.
- Description
descriptiontext - Text shown with the KPI, up to 150 characters.
- Default target
target_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 ID
idnumberRequired - The entry to change, from List KPI entries.
- User
usernumberRequired - The user the entry belongs to.
- KPI
kpi_idnumberRequired - The KPI the entry belongs to.
- Date
entry_datedateRequired - The date the value is for.
- Actual
actualnumber - The actual value.
- Target
targetnumber - The target. Ignored when the KPI has no target.
- Notes
notestext - 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
}
}