Prepare File Upload (Company)
GraphQL endpoint: /company
Prepares a file upload by returning a presigned PUT URL together with the file key to save. Upload the file to the URL, then pass the file key to the mutation that records it.
Query
mutation (
$fileName: String!
$contentType: String!
) {
prepareFileUpload (
fileName: $fileName
contentType: $contentType
) {
uploadUrl
fileKey
}
}
Variables
Response
Last updated