Skip to main content

updateAvatarState

Replaces an avatar’s publicState and/or privateState blobs (fields omitted from input are left unchanged). OWNER-EXCLUSIVE: only the owner may write (throws Unauthorized otherwise). Requires a valid game token. Both blobs are base64-encoded binary.

updateAvatarState(
id: BigInt!
input: UpdateAvatarStateInput!
): Avatar!

Arguments

updateAvatarState.id ● BigInt! non-null scalar

Avatar id to update (BigInt as a decimal string).

updateAvatarState.input ● UpdateAvatarStateInput! non-null input

New state blobs (see UpdateAvatarStateInput).

Type

Avatar object