Skip to content

Commit 10424c5

Browse files
fix: Multi-location inventory update location endpoint (#28)
BREAKING CHANGE:
1 parent 540371a commit 10424c5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/endpoints/mli-locations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class InventoryLocationsEndpoint {
3434
Update(locationId, body) {
3535
return this.request.send(`${this.endpoint}/${locationId}`, 'PUT', {
3636
type: 'inventory_location',
37+
id: locationId,
3738
attributes: body
3839
})
3940
}

src/types/mli-locations.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface Location extends Identifiable, LocationBase {}
3737

3838
export interface CreateLocationBody extends LocationAttributes {}
3939

40-
export interface UpdateLocationBody extends Identifiable, LocationAttributes {}
40+
export interface UpdateLocationBody extends LocationAttributes {}
4141

4242
/**
4343
* Location Endpoints

0 commit comments

Comments
 (0)