Deepnote Public API v2
Files API
Project files and folders.
Base URL
https://api.deepnote.com/v2Create a file
Creates a file from a multipart upload at the requested project path, generating a unique path when that path already exists.
post
/filesRequest body
required
multipart/form-data
CreateFileMultipartBodyprojectIdrequiredstring:uuidProject to create the file in.
pathrequiredstringRequested destination path within the project. If it already exists, a unique path is generated.
filerequiredstring:binaryFile content to upload.
Responses
▸201File created
application/json
CreateFileResponsefilerequiredFileReference▸400Validation error
application/json
ErrorResponsemessagerequiredstring▸401Unauthorized
application/json
ErrorResponsemessagerequiredstring▸403Insufficient permissions
application/json
ErrorResponsemessagerequiredstring▸404Project not found
application/json
ErrorResponsemessagerequiredstring▸409Project is suspended
application/json
ErrorResponsemessagerequiredstring▸413File too large
application/json
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
application/json
ErrorResponsemessagerequiredstringDelete a file
delete
/filesParameters
projectIdqueryrequiredstring:uuidProject that contains the file.
pathqueryrequiredstringFile path within the project.
Responses
▸204File deleted
▸400Validation error
application/json
ErrorResponsemessagerequiredstring▸401Unauthorized
application/json
ErrorResponsemessagerequiredstring▸403Insufficient permissions
application/json
ErrorResponsemessagerequiredstring▸404File not found
application/json
ErrorResponsemessagerequiredstring▸409Project is suspended
application/json
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
application/json
ErrorResponsemessagerequiredstringCopy a file between projects
Copies a source file into another project, using the source file path as the target path.
post
/files/copyRequest body
required
application/json
CopyFileBodysourceProjectIdrequiredstring:uuidProject that contains the source file.
targetProjectIdrequiredstring:uuidProject to copy the file into.
sourceFilePathrequiredstringFile path within the source project. The same normalized path is used in the target project.
Responses
▸201File copied
application/json
CopyFileResponsefilerequiredFileReference▸400Validation error
application/json
ErrorResponsemessagerequiredstring▸401Unauthorized
application/json
ErrorResponsemessagerequiredstring▸403Insufficient permissions
application/json
ErrorResponsemessagerequiredstring▸404Project or file not found
application/json
ErrorResponsemessagerequiredstring▸409Project is suspended or target file already exists in the destination project
application/json
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
application/json
ErrorResponsemessagerequiredstring