> For the complete documentation index, see [llms.txt](https://rqndomhax.gitbook.io/versaapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rqndomhax.gitbook.io/versaapi/inventorymanager/registering-an-inventory.md).

# Registering an inventory

{% content-ref url="/pages/-MkJ6g62E\_LLd4bh\_e1l" %}
[Inventory](/versaapi/inventorymanager/inventory.md)
{% endcontent-ref %}

{% hint style="info" %}
We need to register the inventory so it can be dynamic
{% endhint %}

```java
RInventory inventory = new InventoryTest(null, "Test inventory", 2*9);     // This is the inventory we made
String inventoryKey;      // Every inventory needs to have a key so it can be got by its name, if you don't care about the name, you can do a String.valueOf(UUID.randomUUID());
inventoryManager.addInventory(inventoryKey, inventory);
```
