Skip to main content
POST
/
upload
/
multipart
/
{username}
/
{namespace}
/
{datasetName}
/
prepare
Prepare multipart upload
curl --request POST \
  --url https://api.datalinks.com/api/v1/upload/multipart/{username}/{namespace}/{datasetName}/prepare \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filename": "large-data.csv",
  "size": 73473457
}'
{
  "uploadId": "2~VmxqYXRlRDZWfjJrRWRiZ2FEQXk3dHI4DGhGLygtTmQNXEZPQXFzMVZOZTUgdEdrXCEyNStkQUp3U3Q2RjJqSkV4MFNBOWxJCk0yIHEkfcQ",
  "key": "uploads/data/20240301-143022-uuid.json",
  "partSize": 8388608,
  "presignedUrls": [
    {
      "url": "https://my-data-bucket.s3.amazonaws.com/uploads/data/20240301-143022-uuid.json?partNumber=1&uploadId=..."
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

username
string
required
namespace
string
required
datasetName
string
required

Body

application/json
filename
string
required
Example:
size
integer
required
Example:

Response

uploadId
string
required
Example:
key
string
required
Example:
partSize
integer
required
Example:
presignedUrls
object[]
required
Required array length: 1 - 10000 elements