Skip to main content
Mutation

mintWhiteboardImageUpload

Returns a short-lived upload target for an image on a whiteboard. Requires edit access to the project whiteboards.

Arguments

  • contentTypeString!

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

  • projectIdID!

    ID of the project.

  • sizeBytesInt!

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

Returns

AssetUpload!

Example

mutation MintWhiteboardImageUpload($contentType: String!, $projectId: ID!, $sizeBytes: Int!) {
  mintWhiteboardImageUpload(
    contentType: $contentType
    projectId: $projectId
    sizeBytes: $sizeBytes
  ) {
    assetId
  }
}