# updateInventoryCollectionMovement

Audience: Developer

**Served by:** [inventory](https://docs.pyck.cloud/api/services/inventory.md)

## Arguments

| Name | Type |
| --- | --- |
| `id` | ID! |
| `input` | [UpdateInventoryCollectionInput](https://docs.pyck.cloud/api/inputs/updateinventorycollectioninput.md)! |

## Returns

[UpdateCollectionMovementOutput](https://docs.pyck.cloud/api/types/updatecollectionmovementoutput.md)

## Example

Updates an existing inventory collection movement. Only the handler field can be changed after creation.

```graphql
mutation UpdateInventoryCollectionMovement($id: ID!, $input: UpdateInventoryCollectionInput!) {
  updateInventoryCollectionMovement(id: $id, input: $input) {
    eventCount
    inventoryCollection {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      handler
      id
      tenantID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<collection movement ID>",
  "input": {
    "handler": "handler-updated-01"
  }
}
```
