文件
Path parameters
idintegerRequired
File ID
Responses
200
OK
application/json
attachmentIdintegerOptional
Associations - AttachmentID SET NULL for fast prep deletion, async cleanup
cidstringOptional
CID is the CID of the file.
directoryIdintegerOptional
hashstringOptional
Hash is the hash of the file.
idintegerOptional
lastModifiedNanointegerOptional
pathstringOptional
Path is the relative path to the file inside the storage.
sizeintegerOptional
Size is the size of the file in bytes.
500
Internal Server Error
application/json
get
/file/{id}Tells Singularity that something is ready to be grabbed for data preparation
Path parameters
idstringRequired
Preparation ID or name
namestringRequired
Source storage ID or name
Body
pathstringOptional
Path to the new file, relative to the source
Responses
200
OK
application/json
attachmentIdintegerOptional
Associations - AttachmentID SET NULL for fast prep deletion, async cleanup
cidstringOptional
CID is the CID of the file.
directoryIdintegerOptional
hashstringOptional
Hash is the hash of the file.
idintegerOptional
lastModifiedNanointegerOptional
pathstringOptional
Path is the relative path to the file inside the storage.
sizeintegerOptional
Size is the size of the file in bytes.
400
Bad Request
application/json
500
Internal Server Error
application/json
post
/preparation/{id}/source/{name}/fileLast updated
Was this helpful?