New: Kith open-sources its ATS.Read why
Skip to Content
Mutations

createUploadUrl

An address to upload one file to, and the key to name it by afterwards. Send the bytes to uploadUrl with an HTTP PUT and the same content type, then pass key to the mutation the file is for. Every key is made under the caller's own workspace (a prospect's video under a platform prefix instead), whatever is sent. Nothing is stored until the file is sent: a repeat makes another key, and an address never used leaves nothing behind. NOT_CONFIGURED when file storage is not set up, FORBIDDEN for a staff purpose asked by anyone else, and INVALID_INPUT for a file type the purpose does not take.

createUploadUrl(
  input: CreateUploadUrlInput!
): CreateUploadUrlPayload!

Arguments

createUploadUrl.input · CreateUploadUrlInput! non-null input

The file's name, type and purpose.

Type

CreateUploadUrlPayload object

Where to send the file, and what to call it afterwards.