Create a Key Performance Indicator (KPI) for the initiative identified by the external key SHO-MJXR.
Notes:
artifact
and artifactExternalKey
only if you want to create KPI under a product backlog workitem.{
"artifact": "epic",
"artifactExternalKey": "EP-41",
"initiativeId": "SHO-MJXR",
"title": "Increase customer retention",
"benchmark": "40",
"benchmarkUnit": "%",
"dueDate": "2024-07-12T18:30:00.000Z",
"benchmarkType": "MORE",
"visualization": true,
"value": "11",
"dashboardVisualization": true
}
curl --location --request POST 'https://api.shorterloop.com/api/initiatives/SHO-MJXR/kpi' \
--header 'Authorization;' \
--header 'initiativeId;' \
--header 'Content-Type: application/json' \
--data-raw '{
"artifact": "epic",
"artifactExternalKey": "EP-41",
"initiativeId": "SHO-MJXR",
"title": "Increase customer retention",
"benchmark": "40",
"benchmarkUnit": "%",
"dueDate": "2024-07-12T18:30:00.000Z",
"benchmarkType": "MORE",
"visualization": true,
"value": "11",
"dashboardVisualization": true
}'
{
"artifact": "epic",
"artifactExternalKey": "EP-41",
"initiativeId": "SHO-MJXR",
"title": "Increase customer retention",
"benchmark": "40",
"benchmarkUnit": "%",
"dueDate": "2024-07-12T18:30:00.000Z",
"benchmarkType": "MORE",
"visualization": true,
"value": "11",
"dashboardVisualization": true
}