From b8a4c68fb42435f0e8c9af22a68cd00dfc0989b1 Mon Sep 17 00:00:00 2001 From: Josh Wulf Date: Fri, 14 Jun 2024 09:08:02 +1200 Subject: [PATCH] fix(optimize): fix labelVariables method it used GET, and it needs to use POST. This is now fixed. --- src/optimize/lib/OptimizeApiClient.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/optimize/lib/OptimizeApiClient.ts b/src/optimize/lib/OptimizeApiClient.ts index c1cb01fc..55581087 100644 --- a/src/optimize/lib/OptimizeApiClient.ts +++ b/src/optimize/lib/OptimizeApiClient.ts @@ -479,9 +479,11 @@ export class OptimizeApiClient { async labelVariables(variableLabels: VariableLabels) { const headers = await this.getHeaders() const rest = await this.rest - return rest('public/variables/labels', { - headers, - body: JSON.stringify(variableLabels), - }).json() + return rest + .post('public/variables/labels', { + headers, + body: JSON.stringify(variableLabels), + }) + .json() } }