Skip to main content
POST
/
api
/
repos
/
{namespace}
/
{repo_name}
/
commits
/
upload_chunk
Upload data chunk
curl --request POST \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/commits/upload_chunk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/octet-stream' \
  --data '[
  1
]'
{
  "status": "<string>",
  "status_message": "<string>",
  "oxen_version": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

Namespace of the repository

repo_name
string
required

Name of the repository

hash
string
required
chunk_num
integer
required
Required range: x >= 0
total_chunks
integer
required
Required range: x >= 0
total_size
integer
required
Required range: x >= 0
is_compressed
boolean
required
filename
string | null
required

Body

application/octet-stream

Chunk of data (binary bytes)

Required range: x >= 0

Response

200 - application/json

Chunk uploaded successfully

status
string
required
status_message
string
required
oxen_version
string | null