Skip to main content

uploadMedia Query

Returns a pre-signed URL for uploading the specified media file.

Input fields

ArgumentTypeDescription
objectIdID!The ID of the object with which to associate the media file.
fileNameString!The name of the media file.
mediaTypeMediaType!The relationship of the media file to the object.

Return fields (UploadMedia!)

error (String)

Contains any error message that occurred as part of generating the pre-signed URL.

objectUrl (String)

The URL where the file is located after being uploaded.

uploadUrl (String)

The pre-signed URL to which the file should be uploaded.