Skip to content

Commit

Permalink
fix: Multi-location inventory update location endpoint (#28)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
  • Loading branch information
rostyk-kanafotskyy authored Oct 2, 2024
1 parent 540371a commit 10424c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/endpoints/mli-locations.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class InventoryLocationsEndpoint {
Update(locationId, body) {
return this.request.send(`${this.endpoint}/${locationId}`, 'PUT', {
type: 'inventory_location',
id: locationId,
attributes: body
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/mli-locations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10424c5

Please sign in to comment.