Save KeyResult - Control KPI
POST
https://api.profit.co/app/dao/v6/keyresult?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>
Body
PARAM
Key |
Datatype |
Required |
Description |
a
|
string |
|
action type
|
apiKey
|
string |
|
Required: API key of your Profit.co Account
|
accessKey
|
string |
|
Required: Access key of your Profit.co Account
|
HEADERS
Key |
Datatype |
Required |
Description |
RESPONSES
status
curl -X POST 'https://api.profit.co/app/dao/v6/keyresult?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"name"=>"modifiedFields", "value"=>"[\"keyResultTypeName\"]", "datatype"=>"string"}=' -F '{"name"=>"keyResultData", "value"=>" {\"keyResultTypeId\":3,\"periodId\":9,\"periodName\":\"Q3-2021\",\"keyResultName\":\"Maintain at most 90 Day(s) IT Project Hours\",\"objectiveId\":2118685,\"isAssignAsObj\":\"Y\",\"periodType\":\"QUARTER\",\"targetStartDate\":\"07/01/2021\",\"targetEndDate\":\"09/30/2021\",\"selectedPeriodMonth\":\"Q3-2021\",\"isDisabledIntegration\":false,\"frequencies\":[{\"isEnabled\":true,\"repeatEvery\":\"Week\",\"repeatOn\":\"Every Friday\",\"id\":6,\"name\":\"Every Friday\"}],\"includeLoginEnabledUsers\":true,\"isAssignAsObjToggle\":true,\"totalWt\":\"0.00\",\"limitType\":\"ATMOST\",\"limitTypeValue\":\"At Most\",\"metricObjectOptions\":{\"decimal\":\".\",\"precision\":0,\"thousands\":\",\"},\"metricObject\":{\"metricId\":242,\"metricCode\":\"IT_PROJECT_HOURS\",\"metricName\":\"IT Project Hours\",\"measurementTypeId\":4,\"measurementTypeName\":\"Time\",\"metricCategoryId\":8,\"metricCategoryName\":\"Operations\",\"defaultMeasureId\":3,\"defaultMeasureName\":\"Days\",\"isEnabled\":\"Y\",\"keyResults\":[{\"keyResultTypeId\":3,\"keyResultTypeName\":\"Control KPI\"}],\"metricCategories\":[{\"metricCategoryId\":8,\"metricCategoryName\":\"Operations\"}],\"version\":0,\"sourceRefId\":\"2003343\",\"restrictAutoUpdateAttribute\":true,\"categoriesName\":\"Operations\",\"harvestingStatus\":\"\"},\"value\":45,\"keyResultStartValue\":45,\"keyResultEndValue\":135,\"keyResultLowerLimit\":null,\"keyResultUpperLimit\":\"90\",\"selectedValue\":\"\",\"certainValue\":null,\"au\":null,\"selectedMetricName\":\"IT Project Hours\",\"metricName\":\"IT Project Hours\",\"metricId\":242,\"measurementTypeName\":\"Time\",\"measurementTypeId\":4,\"defaultMeasureName\":\"Days\",\"defaultMeasureId\":3,\"keyResultStatusName\":\"Not Started\",\"keyResultStatusId\":5,\"keyResultTypeName\":\"Control KPI\"}\n", "datatype"=>"string"}=' -F '{"name"=>"objectiveId", "value"=>"<OBJECTIVE_ID>", "datatype"=>"string"}=' -F '{"name"=>"addContributor", "value"=>"\"N\"", "datatype"=>"string"}=' -F '{"name"=>"removedAssigneeIds", "value"=>"[]", "datatype"=>"string"}=' -F '{"name"=>"addedKeyResults", "value"=>"[]", "datatype"=>"string"}=' -F '{"name"=>"removedKeyResults", "value"=>"[]", "datatype"=>"string"}=' -F '{"name"=>"taggedObjectRefIds", "value"=>"[]", "datatype"=>"string"}='