Skip to main content
Mutation

mintSpaceLogoUpload

Returns a short-lived upload target for one version of the space's company logo. Upload the image to the target; once it has arrived, the next read of the space shows it in logo. No further call is needed. Requires the admin or owner role in the space.

Arguments

  • 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.

  • sizeBytesBigInt!

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

  • spaceIdID!

    ID of the space.

  • variantLogoVariant!

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

Returns

Upload!

Example

mutation MintSpaceLogoUpload($contentType: String!, $sizeBytes: BigInt!, $spaceId: ID!, $variant: LogoVariant!) {
  mintSpaceLogoUpload(
    contentType: $contentType
    sizeBytes: $sizeBytes
    spaceId: $spaceId
    variant: $variant
  ) {
    target {
      expiresAt
      method
      objectKey
      uploadUrl
    }
  }
}