curl --location -g --request POST 'https://{{tenantname}}.onchannelcrm.app/api/KpiRules' \
--header 'CCRMAuthorize: <api-key>' \
--header 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
--data-raw '{
"id": "",
"template": "",
"text": "",
"goal": 0,
"profile": 0,
"visibleIndex": 0,
"name": "",
"active": true,
"companyRelation": "",
"activityCategory": "",
"numDays": 0,
"activityCategoryNavigation": {
"id": "",
"name": "",
"color": "",
"onDashBoard": true,
"activities": {},
"kpiRules": {},
"favoriteReports": {}
},
"companyRelationNavigation": {
"id": "",
"name": "",
"isCustomer": true,
"isCompetitor": true,
"isChannel": true,
"isVendor": true,
"companyRelationPrimNavigations": {},
"companyRelationSecNavigations": {},
"econSettingDefaultRelationNavigations": {},
"econSettingNoAccesRelationNavigations": {},
"kpiRules": {},
"favoriteReports": {}
},
"profileNavigation": {
"id": 0,
"roleName": "",
"employees": {},
"kpiRules": {}
},
"templateNavigation": {
"id": "",
"description": "",
"textTemplate": "",
"name": "",
"hasGoal": true,
"hasActivityCategory": true,
"hasCompanyRelation": true,
"hasNumDays": true,
"category": "",
"kpiRules": {}
},
"kpiResults": {}
}'