Skip to content

InventoryPropertyUpdate

A batch of item property changes. Create it with startUpdateProperties(), add changes with the set and remove methods, then send it with submit(). Nothing changes until submit() resolves.

new InventoryPropertyUpdate(): InventoryPropertyUpdate

InventoryPropertyUpdate

remove(itemId, name): void

Removes a property from an item in this batch. Throws when Steam refuses it, when the batch was already submitted, or when the name contains a NUL character.

bigint

The instance id of the item, as a bigint.

string

The property name to remove.

void


setBool(itemId, name, value): void

Sets a boolean property on an item in this batch. Throws when Steam refuses it, when the batch was already submitted, or when the name contains a NUL character.

bigint

The instance id of the item, as a bigint.

string

The property name, made of ASCII letters, digits and underscores.

boolean

The new boolean value.

void


setFloat(itemId, name, value): void

Sets a float property on an item in this batch. Throws when Steam refuses it, when the batch was already submitted, or when the name contains a NUL character.

The value is stored as a 32-bit float, so precision beyond about seven digits is lost.

bigint

The instance id of the item, as a bigint.

string

The property name, made of ASCII letters, digits and underscores.

number

The new value.

void


setInt64(itemId, name, value): void

Sets a 64-bit integer property on an item in this batch. Throws when Steam refuses it, when the batch was already submitted, or when the name contains a NUL character.

bigint

The instance id of the item, as a bigint.

string

The property name, made of ASCII letters, digits and underscores.

bigint

The new value, as a bigint between -2^63 and 2^63 - 1.

void


setString(itemId, name, value): void

Sets a string property on an item in this batch. Throws when Steam refuses it, when the batch was already submitted, or when the name or value contains a NUL character.

Nothing changes until submit() resolves.

bigint

The instance id of the item, as a bigint.

string

The property name, made of ASCII letters, digits and underscores.

string

The new string value.

void


submit(timeoutMs?): Promise<InventoryResultData>

Sends the batch to Steam and changes the item properties of the user’s real inventory. This cannot be undone. Resolves with the updated items.

The batch can be submitted only once. Rejects when the batch was already submitted, when Steam refuses it, reports an error, or sends no answer in time. After a timeout the outcome is unknown, so check the inventory before retrying.

number | null

How long to wait for Steam, in milliseconds. Defaults to 30000.

Promise<InventoryResultData>

the items after the change, as Steam returns them.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.