Skip to content
Pyck docs

updateInventoryRepository

Since pyck v0.27.0

Updates a repository. Changing its parent with parentID or clearParent is refused while the repository or one of its descendants holds, expects or reserves stock, and while the repository has a repository movement that is neither executed nor deleted: move such a repository with a repository movement. A parentID that is the repository itself or one of its descendants is refused too. Sending the current parent again is no change and is accepted.

Served by: inventory

Name Type Default Description
id ID!
input UpdateRepositoryInput!

InventoryRepositoryOutput

Updates an existing inventory repository’s name.

mutation UpdateInventoryRepository($id: ID!, $input: UpdateRepositoryInput!) {
updateInventoryRepository(id: $id, input: $input) {
eventCount
inventoryRepository {
createdAt
createdBy
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
layout
locationID
name
parentID
tenantID
type
updatedAt
updatedBy
virtualRepo
}
transactionID
}
}

Variables

{
"id": "<repository ID>",
"input": {
"name": "Warehouse Shelf A1 Updated"
}
}