Skip to main content

updateAvatar

Updates an avatar’s mutable fields (currently name) and returns it. OWNER-EXCLUSIVE: only the avatar’s owner may call this (throws Unauthorized otherwise). Requires a valid game token. To change state blobs use updateAvatarState.

updateAvatar(
id: BigInt!
input: UpdateAvatarInput!
): Avatar!

Arguments

updateAvatar.id ● BigInt! non-null scalar

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

updateAvatar.input ● UpdateAvatarInput! non-null input

Fields to change (see UpdateAvatarInput).

Type

Avatar object