Skip to main content

updateAvatarAppState

Creates or replaces one avatar’s per-app state (upsert keyed by appId+avatarId; bumps updatedAt). OWNER-EXCLUSIVE: only the avatar’s owner may write (throws Unauthorized otherwise); every authenticated user can read it via avatarAppState/avatarAppStates. Requires a valid game token. input.state is base64-encoded binary (null clears it).

updateAvatarAppState(
input: UpdateAvatarAppStateInput!
): AppAvatarState!

Arguments

updateAvatarAppState.input ● UpdateAvatarAppStateInput! non-null input

Target appId, avatarId, and the new state blob (see UpdateAvatarAppStateInput).

Type

AppAvatarState object