Skip to main content
Mutation

mintProfileImageUpload

Returns a pre-signed URL to upload a profile's main image (a person's headshot or an organisation's logo). Requires being signed in and able to edit the profile (an owner or admin member, or a member of a space that manages it).

Arguments

  • contentTypeString!

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

  • profileIdID!

    ID of the profile.

  • sizeBytesBigInt!

    Image size in bytes. Images are limited to 10 MB.

Returns

ProfileImageUploadOutput!

Example

mutation MintProfileImageUpload($contentType: String!, $profileId: ID!, $sizeBytes: BigInt!) {
  mintProfileImageUpload(
    contentType: $contentType
    profileId: $profileId
    sizeBytes: $sizeBytes
  ) {
    expiresAt
    method
    objectKey
    uploadUrl
  }
}