Sync the repository now
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/repo/syncconst options = {method: 'POST'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/repo/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/repo/sync"
response = requests.post(url)
print(response.text){}Projects
Sync the repository now
Brings the project’s brain in step with the branch: changed files re-indexed, deleted ones removed. Handles up to 25 changed files per run and leaves the rest pending for the scheduled sweep (remaining in the answer). Pushes and a daily re-sync do this on their own. Needs write access to the project’s context; connected agents may.
POST
/
admin
/
api
/
projects
/
{project_id}
/
repo
/
sync
Sync the repository now
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/repo/syncconst options = {method: 'POST'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/repo/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/repo/sync"
response = requests.post(url)
print(response.text){}