From 8b5ae3392de07f9a866cc98646e4c905ac288604 Mon Sep 17 00:00:00 2001 From: Rostyk Date: Wed, 2 Oct 2024 15:36:33 +0300 Subject: [PATCH] fix: Multi-location inventory update location endpoint --- src/endpoints/mli-locations.js | 1 + src/types/mli-locations.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/endpoints/mli-locations.js b/src/endpoints/mli-locations.js index f988508..e596b8e 100644 --- a/src/endpoints/mli-locations.js +++ b/src/endpoints/mli-locations.js @@ -34,6 +34,7 @@ class InventoryLocationsEndpoint { Update(locationId, body) { return this.request.send(`${this.endpoint}/${locationId}`, 'PUT', { type: 'inventory_location', + id: locationId, attributes: body }) } diff --git a/src/types/mli-locations.d.ts b/src/types/mli-locations.d.ts index dbe7dc5..2d7e07f 100644 --- a/src/types/mli-locations.d.ts +++ b/src/types/mli-locations.d.ts @@ -37,7 +37,7 @@ export interface Location extends Identifiable, LocationBase {} export interface CreateLocationBody extends LocationAttributes {} -export interface UpdateLocationBody extends Identifiable, LocationAttributes {} +export interface UpdateLocationBody extends LocationAttributes {} /** * Location Endpoints