Magidoc

insertFile
Mutation

Creates a workspace file and returns a signed upload URL. PUT the bytes to uploadUrl with the same Content-Type, then call unsetFileLoading. To attach the file to an action, pass its ID to attachFilesToAction. The file is not added to the File Library. Access: Authenticated workspace members. Errors: Throws when workspace access is denied.

Arguments

#

workspaceId

ID !
Non-null

name

Non-null

contentType

Non-null

s3AccessType

Non-null

Use private.

size

Size in bytes.

Response

#

Returns FileUpload !.

Example

#