Skip to main content

imageUpload

Stores one multipart image upload and returns its metadata and public URL. Most raster formats are resized to fit 1024 by 1024 pixels; use imageUploadUrls for remote URLs. A file and site ID must be supplied. Requires a logged-in session.

imageUpload(
siteId: Int!
image: Upload
source: String
): Image!

Arguments​

imageUpload.siteId ● Int! non-null scalar​

Site ID from sites that the image is stored under.

imageUpload.image ● Upload scalar​

Multipart file upload; supply a file even though this argument is nullable in the schema.

imageUpload.source ● String scalar​

Source label stored with the image and matched by imageList.source; defaults to surveys.

Type​

Image object​

Stored image metadata returned by imageList, imageDetail, imageUpload and imageUploadUrls, with a derived public asset URL.