updateItemWithCallback
updateItemWithCallback(
itemId,updateDetails,appId,successCallback,errorCallback,progressCallback?,progressCallbackIntervalMs?):void
Updates an existing Workshop item on Steam, like updateItem, but reports the outcome through
callbacks instead of a promise. The call returns at once; the work continues in the background.
Its fields are checked the same way as in updateItem.
successCallback receives the UgcResult. errorCallback receives every failure, both the
check that runs before anything is sent and the errors Steam reports later. Nothing is thrown.
progressCallback receives an UpdateProgress right away and then every
progressCallbackIntervalMs, until the status is Invalid or CommittingChanges. The units of
progress and total are unverified against a live Steam client.
Once submitted, the change is applied to the item on Steam and cannot be cancelled. A running, logged-in Steam client is needed.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”bigint
the Workshop item to update (its published file id)
updateDetails
Section titled “updateDetails”the fields to change; see UgcUpdate
number | null | undefined
defaults to the app id the client was initialized with
successCallback
Section titled “successCallback”(data) => void
called with the UgcResult when Steam completes the update
errorCallback
Section titled “errorCallback”(err) => void
called with an Error when the update is refused or fails
progressCallback?
Section titled “progressCallback?”(data) => void
optional; called with the UpdateProgress while the update runs
progressCallbackIntervalMs?
Section titled “progressCallbackIntervalMs?”number | null
milliseconds between progress reports; defaults to 1000
Returns
Section titled “Returns”void
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:
