Create File
createFile Mutation
Creates a new File object.
Arguments
Name
Type
Description
input
CreateFileInput!
Input data for creating the file
Return Type
CreateFileResult - Contains the created file ID, the file object, and a pre-signed upload URL for the file content.
Input Fields
CreateFileInput:
Field
Type
Description
dataTypeID
UUID
Optional data type ID
dataTypeSlug
String
Optional data type slug
data
Map
Custom data associated with the file
refid
UUID!
Required reference ID
reftype
FileReftype!
Required reference type
description
String
Optional description
filename
String!
Required filename
size
Int!
Required file size in bytes
contentType
String!
Required content MIME type
Usage Example
Last updated
Was this helpful?
