Files

Creates a file at the requested project path from a multipart upload or a JSON body. When that path already exists, a unique path is generated unless overwrite is set. Use multipart for large files.

post/files

Request

  • Base URL
    https://api.deepnote.com/v2
  • URL
    https://api.deepnote.com/v2/files
  • Auth
    HTTP bearer

Request body

projectIdstring uuid required

Project to create the file in.

pathstring required

Requested destination path within the project. If it already exists and overwrite is not set, a unique path is generated.

contentstring required

File content encoded as UTF-8 text or base64.

encoding'utf8' | 'base64'
overwriteboolean

Replace the file at path if it already exists instead of generating a unique path.

Response

File created

Changes

    • info

      the / response's property pattern was changed from ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ to ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ for the status

    • info

      added the new optional request property

    • info

      added the media type application/json to the request body