Skip to Content
API ReferenceGoals

Create Key Result Admin

POST
/api/v1/goals/{goal_id}/key-results

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

goal_id*Goal Id

Request Body

application/json
  1. body
title*Title
description?string|null
metric_type*SKGoalKeyResultMetricType
Value in"number""percentage""currency""boolean"
start_value*
target_value*
current_value?|null
confidence_level*SKGoalConfidenceLevel
Value in"on_track""at_risk""off_track"
weight?|
Default"1.0"

Response Body

Successful Response

application/json
  1. response
id*Id
datetime_created_at*Datetime Created At
datetime_updated_at*Datetime Updated At
goal_id*Goal Id
title*Title
description*string|null
metric_type*SKGoalKeyResultMetricType
Value in"number""percentage""currency""boolean"
start_value*
target_value*
current_value*
progress*string|null
confidence_level*SKGoalConfidenceLevel
Value in"on_track""at_risk""off_track"
weight*Weight
Example Request
curl -X POST 'https://api.skailer.com/api/v1/goals/0/key-results' \  -H 'Content-Type: application/json' \  -d '{  "title": "string",  "metric_type": "number",  "start_value": {},  "target_value": {},  "confidence_level": "on_track"}'
Example Response
{  "id": 0,  "datetime_created_at": "string",  "datetime_updated_at": "string",  "goal_id": 0,  "title": "string",  "description": "string",  "metric_type": "number",  "start_value": {    "value_float": "string",    "value_bool": true,    "value_text": "string"  },  "target_value": {    "value_float": "string",    "value_bool": true,    "value_text": "string"  },  "current_value": {    "value_float": "string",    "value_bool": true,    "value_text": "string"  },  "progress": "string",  "confidence_level": "on_track",  "weight": "string"}