Skip to main content
Mutation

mintCharacterLookImageUpload

Returns a short-lived upload target for a reference image of a character's look. Requires edit access to the project script.

Arguments

  • characterIdID!

    ID of the character.

  • contentTypeString!

    MIME type of the image: image/jpeg, image/png or image/webp.

  • imageIdID!

    ID you chose for the image. Each image of a look needs its own ID.

  • lookIdID!

    ID of the look.

  • projectIdID!

    ID of the project.

  • sizeBytesInt!

    Size of the file in bytes. Uploads are limited to 10 MB.

Returns

AssetUpload!

Example

mutation MintCharacterLookImageUpload($characterId: ID!, $contentType: String!, $imageId: ID!, $lookId: ID!, $projectId: ID!, $sizeBytes: Int!) {
  mintCharacterLookImageUpload(
    characterId: $characterId
    contentType: $contentType
    imageId: $imageId
    lookId: $lookId
    projectId: $projectId
    sizeBytes: $sizeBytes
  ) {
    assetId
  }
}