How do I upload a file through the REST API?
In three steps:
- Start.
POST /v1/workspaces/{workspaceID}/uploadswithfileName,sizeBytesandcontentType. The answer holdspartSizeBytes,partCountand the addresses of the first 100 parts inpartURLs. - Send.
PUTeach part to itsurland keep each answer'sETag. - Complete.
POST .../uploads/{uploadID}/completewith{"parts": [{"partNumber": 1, "etag": "..."}, ...]}, then read the upload until it isreadyorrejected.