Talewright Docs Open the app

How do I upload a file through the REST API?

In three steps:

  1. Start. POST /v1/workspaces/{workspaceID}/uploads with fileName, sizeBytes and contentType. The answer holds partSizeBytes, partCount and the addresses of the first 100 parts in partURLs.
  2. Send. PUT each part to its url and keep each answer's ETag.
  3. Complete. POST .../uploads/{uploadID}/complete with {"parts": [{"partNumber": 1, "etag": "..."}, ...]}, then read the upload until it is ready or rejected.