From 9a6ed0aeac9584eabe09bf5c3eadbde4a2643fa6 Mon Sep 17 00:00:00 2001 From: lfraile Date: Fri, 10 Apr 2020 13:12:57 +0200 Subject: [PATCH] Added api versining header --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 586b39d..a2736b6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,7 +22,8 @@ async function rollOffFeature(esquioUrl: url.UrlWithStringQuery, esquioApiKey: s method: 'PUT', headers: { 'Content-Type': 'application/json', - 'x-api-key': esquioApiKey + 'x-api-key': esquioApiKey, + 'x-api-version': '2.0' } } console.log(`url to call ${esquioUrl.host} ${options.path}`);