Skip to main content
POST
/
api
/
repos
/
{namespace}
/
{repo_name}
/
commits
/
synced
Mark commits as synced
curl --request POST \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/commits/synced \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hashes": [
    "abc1234567890def1234567890fedcba",
    "84c76a5b2e9a2637f9091991475c404d"
  ]
}
'
{
  "status": "<string>",
  "status_message": "<string>",
  "hashes": [
    "<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

Body

application/json

List of commit hashes successfully synced to the server.

hashes
string[]
required

Response

Commits marked as synced

status
string
required
status_message
string
required
hashes
string[]
required
oxen_version
string | null