Skip to main content
POST
/
{namespace}
/
{repo_name}
/
versions
Batch upload files (Multipart)
curl --request POST \
  --url https://hub.oxen.ai/{namespace}/{repo_name}/versions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "status": "<string>",
  "status_message": "<string>",
  "oxen_version": "<string>",
  "err_files": [
    {
      "error": "<string>",
      "hash": "<string>",
      "path": "<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

The namespace of the repository

repo_name
string
required

The name of the repository

Body

multipart/form-data

Multipart upload of files. Each form field 'file[]' or 'file' should contain the file content (optionally gzip compressed), and the filename should be the content hash (e.g., 'file.jpg' is not used, the hash is the identifier).

file
file
required

Response

Files successfully uploaded (check err_files for failures)

status
string
required
status_message
string
required
oxen_version
string | null
err_files
object[]