---
title: "Upload commits DB"
method: POST
path: "/api/repos/{namespace}/{repo_name}/commits/upload"
tags: ["Commits"]
---

# Upload commits DB

`POST /api/repos/{namespace}/{repo_name}/commits/upload`

## Request

- Base URL: `https://hub.oxen.ai`
- URL: `https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/commits/upload`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oxen/apis/oxen-server/docs/api/repos/:namespace/:repo_name/commits/upload/post.ts> (a function with typed inputs; its response is checked against the schema)

Upload the commits database tarball to the server during push.

## Path parameters

- `namespace` string, required
- `repo_name` string, required

## Request body `application/octet-stream`

- integer[]

## Response `200`

Commits DB uploaded successfully

- StatusMessage
  - `oxen_version` string, nullable
  - `status` string, required
  - `status_message` string, required

---

[API](https://skmtc.dev/oxen/apis/oxen-server.md) - [All operations](https://skmtc.dev/oxen/apis/oxen-server/llms.txt) - [OpenAPI document](https://skmtc.dev/oxen/apis/oxen-server/revisions/2ae578129949?raw)
