Skip to main content
POST
/
v1
/
ingest
/
sources
/
{source_key}
/
uploads
/
complete
Complete a hosted upload
curl --request POST \
  --url https://api.withsplendor.com/v1/ingest/sources/{source_key}/uploads/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-splendor-tenant-id: <x-splendor-tenant-id>' \
  --data '
{
  "upload_session_id": "<string>",
  "parts": [
    {
      "etag": "<string>",
      "part_number": 5000
    }
  ]
}
'
{
  "bucket": "acme-uploads",
  "dataset_id": "app-logs",
  "etag": "\"abc123\"",
  "format": "jsonl",
  "key": "uploads/ups_01H8Z3/data.jsonl",
  "source": "app-logs",
  "source_id": 12,
  "tenant_id": "acme"
}

Authorizations

Authorization
string
header
required

API token issued from the Splendor console.

Headers

x-splendor-tenant-id
string
required

Selects the tenant (workspace) the request acts within.

Path Parameters

source_key
string
required

Body

application/json
upload_session_id
string
required
Required string length: 1 - 64
parts
HostedMultipartPart · object[]

Response

Successful Response

bucket
string
required
dataset_id
string
required
etag
string | null
required
format
string
required
key
string
required
source
string
required
source_id
integer | null
required
tenant_id
string
required