Vai al contenuto principale
Mutation

mintProjectLogoUpload

Returns a short-lived upload target for one version of the project's main logo. Upload the image to the target; once it has arrived, the next read of the project shows it in logo. No further call is needed. Requires the project management access.

Argomenti

  • contentTypeString!

    MIME type of the logo: image/svg+xml (a vector logo, drawn as vectors in PDFs; text must be converted to outlines), image/png, image/jpeg or image/webp.

  • projectIdID!

    ID of the project.

  • sizeBytesInt!

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

  • variantLogoVariant!

    Which version to upload: for light or for dark backgrounds.

Restituisce

Upload!

Esempio

mutation MintProjectLogoUpload($contentType: String!, $projectId: ID!, $sizeBytes: Int!, $variant: LogoVariant!) {
  mintProjectLogoUpload(
    contentType: $contentType
    projectId: $projectId
    sizeBytes: $sizeBytes
    variant: $variant
  ) {
    target {
      expiresAt
      method
      objectKey
      uploadUrl
    }
  }
}