updated header on create case
This commit is contained in:
+16
-2
@@ -335,7 +335,14 @@ export const createCase = (appealTypeId) => {
|
||||
var config = {
|
||||
method: "post",
|
||||
url: WEBAPI_URL + "incidents",
|
||||
azureHeaders,
|
||||
headers: {
|
||||
"OData-MaxVersion": "4.0",
|
||||
"OData-Version": "4.0",
|
||||
"Accept": "application/json",
|
||||
"Prefer": 'odata.include-annotations="*",return=representation',
|
||||
"Content-Type": "application/json",
|
||||
"ServiceBusAuthorization": SASToken,
|
||||
},
|
||||
data: data,
|
||||
};
|
||||
console.log(config);
|
||||
@@ -355,7 +362,14 @@ export const updateCase = (incidentId, updateBody, updateFormCollection) => {
|
||||
var config = {
|
||||
method: "patch",
|
||||
url: WEBAPI_URL + updateFormCollection + "(" + incidentId + ")",
|
||||
azureHeaders,
|
||||
headers: {
|
||||
"OData-MaxVersion": "4.0",
|
||||
"OData-Version": "4.0",
|
||||
"Accept": "application/json",
|
||||
"Prefer": 'odata.include-annotations="*",return=representation',
|
||||
"Content-Type": "application/json",
|
||||
"ServiceBusAuthorization": SASToken,
|
||||
},
|
||||
data: data,
|
||||
};
|
||||
// console.log(config);
|
||||
|
||||
Reference in New Issue
Block a user