Open
Description
Your environment
SDK Version: 1.4.1
Connect Server Version: not relevant
OS: Ubuntu 24.04.2 LTS (WSL)
Node Version: 22.14.0
What happened?
When using OPConnect.updateItem(vaultId, item)
the vaultId is not set into the item like it's done for OPConnect.updateItem(vaultId, item)
in here.
You need to explicit set the vaultId
in item.vault.id
before using OPConnect.updateItem
What did you expect to happen?
the same behaviour regading the vaultId
for update and create
Steps to reproduce
// without explicit setting item.vault --> will fail
await this.apiClient.updateItem(vaultId, item);
// set vault.id before --> will succeed
item.vault = { id: vaultId };
await this.apiClient.updateItem(vaultId, item);