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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InventoryPropertyUpdate():
InventoryPropertyUpdate
Returns
Section titled “Returns”InventoryPropertyUpdate
Methods
Section titled “Methods”remove()
Section titled “remove()”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.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”bigint
The instance id of the item, as a bigint.
string
The property name to remove.
Returns
Section titled “Returns”void
setBool()
Section titled “setBool()”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.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”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.
Returns
Section titled “Returns”void
setFloat()
Section titled “setFloat()”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.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”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.
Returns
Section titled “Returns”void
setInt64()
Section titled “setInt64()”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.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”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.
Returns
Section titled “Returns”void
setString()
Section titled “setString()”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.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”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.
Returns
Section titled “Returns”void
submit()
Section titled “submit()”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.
Parameters
Section titled “Parameters”timeoutMs?
Section titled “timeoutMs?”number | null
How long to wait for Steam, in milliseconds. Defaults to 30000.
Returns
Section titled “Returns”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.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
