Files

Upload a file to a project

Changed on

Sends a file to the machine holding your project and attaches it under parentId in the parts tree.

Send this to dataPlane.url, not to the control-plane host, with Authorization: Bearer {dataPlane.token}. Supply the session's own dataPlane.connectionId as connectionId; the upload is applied through the session's live connection, so any other value is rejected.

Bodies up to 2 GB are accepted and streamed rather than buffered.

post/api/v1/file/upload/{ownerId}/{userId}/{projectId}/{connectionId}/{parentId}

Request

  • Base URL
    https://davinci-app.com
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required
objectNamestring

Display name for the created object. Defaults to the filename.

keepAsArchiveboolean

Preserve a ZIP or 7z upload as one archive reference instead of extracting it immediately. Set this when the archive will be passed to session.extract_archive() later.

Response

The file was stored and attached.

objectobject required

Changes

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      endpoint added