Skip to content

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.

bigint

the Workshop item to update (its published file id)

UgcUpdate

the fields to change; see UgcUpdate

number | null | undefined

defaults to the app id the client was initialized with

(data) => void

called with the UgcResult when Steam completes the update

(err) => void

called with an Error when the update is refused or fails

(data) => void

optional; called with the UpdateProgress while the update runs

number | null

milliseconds between progress reports; defaults to 1000

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.