Skip to main content
PUT
/
api
/
v0
/
repositories
/
{repo_id}
/
commit-hash
Change the commit hash of an existing repository.
curl --request PUT \
  --url https://api.example.com/api/v0/repositories/{repo_id}/commit-hash \
  --header 'Content-Type: application/json' \
  --data '
{
  "commitHash": "<string>"
}
'
{
  "msg": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cantina.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

repo_id
string<uuid>
required

Body

application/json

Change the commit hash of a repository, deleting all existing files and re-importing from GitHub.

commitHash
string
required

Response

Commit hash changed and files re-imported