summaryrefslogtreecommitdiffstats
path: root/ui-react/src/api/PolicyService.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/api/PolicyService.js')
-rw-r--r--ui-react/src/api/PolicyService.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui-react/src/api/PolicyService.js b/ui-react/src/api/PolicyService.js
index a77a8bdb0..a9f44b2a4 100644
--- a/ui-react/src/api/PolicyService.js
+++ b/ui-react/src/api/PolicyService.js
@@ -43,8 +43,9 @@ export default class PolicyService {
return "";
})
}
- static createNewPolicy(policyModelType, policyModelVersion, policyJson) {
- return fetch(window.location.pathname + 'restservices/clds/v2/policies/' + policyModelType + '/' + policyModelVersion, {
+ static createNewPolicy(policyModelType, policyModelVersion, policyName, policyVersion, policyJson) {
+ return fetch(window.location.pathname + 'restservices/clds/v2/policies/' + policyModelType + '/'
+ + policyModelVersion + '/' + policyName + '/' + policyVersion, {
method: 'POST',
credentials: 'same-origin',
headers: {