Skip to content

updateItem

updateItem(itemId, updateDetails, appId?): Promise<UgcResult>

Updates an existing Workshop item on Steam. Every field of updateDetails is optional: a field that is left out keeps the item’s current value, so a call with only previewPath changes only the preview. The fields are checked first, and a bad YouTube video id or a string with a NUL byte rejects with the entry named, before anything is sent.

Once submitted, the change is applied to the item on Steam and cannot be cancelled. A running, logged-in Steam client is needed.

Resolves with the item id and needsToAcceptAgreement. Rejects when the update cannot be started, when Steam returns an error, or when no completion arrives; in that last case the outcome is unknown, so read the item before retrying.

bigint

the Workshop item to update (its published file id)

UgcUpdate

the fields to change; see UgcUpdate

number | null

defaults to the app id the client was initialized with

Promise<UgcResult>

the item id and whether the account still has to accept the Workshop legal agreement

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.