Import

Upload zip archive

Upload and decompress a zip archive into the repository and commit the contents.

post/api/repos/{namespace}/{repo_name}/import/upload/{resource}

Request

Path parameters

namespacestring required

Namespace of the repository

repo_namestring required

Name of the repository

resourcestring required

Destination path (including branch)

Request body multipart/form-data

commit_messagestring nullable
emailstring nullable
filestring binary required
namestring nullable

Example request

{
  "commit_message": "Importing full archive of grazing data",
  "email": "ox@oxen.ai",
  "file": "<binary zip data>",
  "name": "ox"
}

Response

Zip archive decompressed and committed

oxen_versionstring nullable
statusstring required
status_messagestring required

Example response

{
  "commit": {
    "author": "ox",
    "email": "ox@example.com",
    "id": "a1b2c3d4e5f67890abcdef1234567890",
    "message": "Refactor data loading pipeline.",
    "parent_ids": [
      "f1e2d3c4b5a67890fedcba9876543210"
    ],
    "timestamp": "2025-01-01T10:00:00Z"
  },
  "status": "success",
  "status_message": "resource_found"
}

Changes

No recorded changes to this operation across all 1 revision of this API.