updated header on create case

This commit is contained in:
robert.bond@test.gov.wales
2021-09-14 12:32:21 +01:00
parent b7815c112e
commit 855b8b1bd9
+16 -2
View File
@@ -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);