Magidoc

File
Object

An attachment: either a file uploaded through Pie's separate HTTP upload endpoint or an external link created with createFile (url plus urlName as its display label). Exactly one nullable foreign key — projectId, sliceId, todoId, recipeId, recipeSliceId, recipeTodoId, or storeItemId — marks what it is attached to, and folderId optionally places it inside a Folder of the same container. location resolves to a UI path plus the project/slice/todo titles locating the attachment; deletedAt marks soft deletion. Fetched by the file query and the files fields on the attachment targets; managed with createFile, updateFile, updateFileDescription, updateFileFolder, deleteFile, deleteFiles, undoDeleteFile, and undoDeleteFiles.

Fields

#

deletedAt

description

folderId

iconFileId

id

insertedAt

location

mimeType

position

projectId

recipeId

recipeSliceId

recipeTodoId

sliceId

storeItemId

todoId

updatedAt

urlName

userId

userName

Usages

#

References

#