curl --request PUT \
--url https://api.example.com/api/Configuration/KPIs/user/{userId} \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"allocatedKpis": [
{
"id": 123,
"value": 123,
"name": "<string>",
"description": "<string>",
"reoccuranceTypeId": 123,
"reoccuranceType": "<string>",
"effectiveDate": "2023-11-07T05:31:56Z"
}
],
"kpiIdsToAllocate": [
123
],
"kpiIdsToUnallocate": [
123
],
"kpiIdsToUpdate": [
123
]
}
'[
{
"id": 123,
"customerId": 123,
"name": "<string>",
"description": "<string>",
"reoccuranceTypeId": 123,
"reoccuranceType": "<string>",
"createdBy": 123,
"createdDate": "2023-11-07T05:31:56Z",
"isDeleted": true,
"deletedById": 123,
"deletedDate": "2023-11-07T05:31:56Z",
"modifiedBy": 123,
"modifiedDate": "2023-11-07T05:31:56Z",
"lastProcessedDate": "2023-11-07T05:31:56Z",
"metricDataJson": "<string>"
}
]curl --request PUT \
--url https://api.example.com/api/Configuration/KPIs/user/{userId} \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"allocatedKpis": [
{
"id": 123,
"value": 123,
"name": "<string>",
"description": "<string>",
"reoccuranceTypeId": 123,
"reoccuranceType": "<string>",
"effectiveDate": "2023-11-07T05:31:56Z"
}
],
"kpiIdsToAllocate": [
123
],
"kpiIdsToUnallocate": [
123
],
"kpiIdsToUpdate": [
123
]
}
'[
{
"id": 123,
"customerId": 123,
"name": "<string>",
"description": "<string>",
"reoccuranceTypeId": 123,
"reoccuranceType": "<string>",
"createdBy": 123,
"createdDate": "2023-11-07T05:31:56Z",
"isDeleted": true,
"deletedById": 123,
"deletedDate": "2023-11-07T05:31:56Z",
"modifiedBy": 123,
"modifiedDate": "2023-11-07T05:31:56Z",
"lastProcessedDate": "2023-11-07T05:31:56Z",
"metricDataJson": "<string>"
}
]OK
Was this page helpful?