Skip to Content
PeopleForce
K P I

Deprecated

Company API v2 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3, which serves every v2 path under /api/public/v3.

Create a key performance indicator

Deprecated

POST
/api/public/v2/performance/key_performance_indicators

Request Body

application/json
  1. body
title*string
kpi_type*string
Value in"individual""department""location""division""company"
description?string
department_id*integer
Formatint64
location_id?integer
Formatint64
currency_code?string
weight?integer
Formatint32
metric*string
Value in"percentage""number""currency"
user_id*integer
Formatint64
division_id?integer
Formatint64
status?string
Value in"none""on_track""behind""at_risk"

Response Body

The created key performance indicator.

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v2/performance/key_performance_indicators' \  -H 'Content-Type: application/json' \  -d '{  "title": "string",  "kpi_type": "individual",  "department_id": 0,  "metric": "percentage",  "user_id": 0}'
Example Response
{  "data": {    "id": 0,    "title": "string",    "description": "string",    "weight": 0,    "currency_code": "string",    "metric": "percentage",    "status": "none",    "kpi_type": "individual",    "location": {      "id": 0,      "name": "string",      "address": "string",      "time_zone": "string",      "holiday_policy_id": 0,      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "division": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "department": {      "id": 0,      "name": "string",      "parent_id": 0,      "manager_id": 0,      "department_level": {        "id": 0,        "name": "string",        "hex_color": "string"      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "fields": {        "property1": {          "name": "string",          "value": "string"        },        "property2": {          "name": "string",          "value": "string"        }      }    },    "owner": {      "id": 0,      "first_name": "string",      "last_name": "string",      "email": "string"    },    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}