It is not possible to modify the system views available (view templates ending in "SystemView"). If you want to "modify" one, just extract the metadata of the system view and use this to create a custom view template.
curl --location --request POST 'https://openapi.ariba.com/api/analytics-reporting-view/v1/prod/viewTemplates/ScorecardFactCustom?realm=myrealm-T' \
--header 'Content-Type: application/json' \
--header 'apikey: [MY_API_KEY]' \
--header 'Authorization: Bearer eb04b750-1234-5678-9012-0dca7bdaba2a' \
--data-raw '{
"documentType": "ScorecardFact",
"status": "published",
"selectAttributes": [
"LoadCreateTime",
"LoadUpdateTime",
"Scorecard",
"SourceSystem",
"Status",
"PeriodFrom",
"PeriodTo",
"Project",
"Supplier",
"Owner",
"Value",
"Weight",
"Target",
"Grade",
"SystemGrade",
"TimeCreated",
"TimeUpdated"
],
"filterExpressions": []
}'
curl --location --request POST 'https://openapi.ariba.com/api/analytics-reporting-view/v1/prod/viewTemplates/ScorecardFactCustom/patch?realm=myrealm-T' \
--header 'Content-Type: application/json' \
--header 'apikey: [MY_API_KEY]' \
--header 'Authorization: Bearer eb04b750-1234-5678-9012-0dca7bdaba2a' \
--data-raw '{
"status": "published",
"selectAttributes": [
"LoadCreateTime",
"LoadUpdateTime",
"Scorecard",
"SourceSystem",
"Status",
"PeriodFrom",
"PeriodTo",
"Project",
"Supplier",
"Owner",
"Commodity.Commodity",
"Department.Department",
"GradeCount",
"Value",
"Weight",
"Target",
"Grade",
"SystemGrade",
"RespondentUser",
"RespondentDepartment",
"RespGradeCount",
"RespondentGrade",
"TimeCreated",
"TimeUpdated"
],
"filterExpressions": [
{
"name": "WeightValue",
"field": "Weight",
"op": "=",
"defaultValue": 100.0
},
{
"name": "updatedDateTo",
"field": "TimeUpdated",
"op": "<=",
"defaultValue": null
},
{
"name": "updatedDateFrom",
"field": "TimeUpdated",
"op": ">",
"defaultValue": null
}
]
}'
curl --location --request GET 'https://openapi.ariba.com/api/analytics-reporting-view/v1/prod/viewTemplates/ScorecardFactCustom?realm=myrealm-T' \
--header 'apikey: [MY_API_KEY]' \
--header 'Authorization: Bearer eb04b750-1234-5678-9012-0dca7bdaba2a'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
2 | |
1 | |
1 | |
1 |