From 855b8b1bd93874b47acdede274537b3e9931ad7b Mon Sep 17 00:00:00 2001 From: "robert.bond@test.gov.wales" Date: Tue, 14 Sep 2021 12:32:21 +0100 Subject: [PATCH] updated header on create case --- actions/index.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/actions/index.js b/actions/index.js index c43c6f44..627215b9 100644 --- a/actions/index.js +++ b/actions/index.js @@ -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);